User:Hashar

From Wikitech
Jump to: navigation, search

Nodepool instances:

  Instance Host Launch Time
Ci-jessie-wikimedia-84900.contintcloud.eqiad.wmflabs labvirt1008 27 April 2016 15:04:20
Ci-jessie-wikimedia-64870.contintcloud.eqiad.wmflabs labvirt1007 29 March 2016 11:24:21


Maven magic:

    mvn fr.jcgay.maven.plugins:buildplan-maven-plugin:list-phase

Profile system calls:

   strace -c -p 1234

Stacktrace:

  gdb --q --n --ex bt --batch --pid

Running Dump test suite and investigating disk slowness (bug 41607)

Transfer file between servers:

By Jaime on https://gerrit.wikimedia.org/r/#/c/293743/

 dd if=/dev/sda | pv | pigz -c | openssl aes-256-cbc -salt \ -k $pass | nc $backup-host 4444 tar cvf - /srv/sqldata | pv | pigz -c > /mnt/sqldata.tar.gz

Package building:

uscan --download-current-version --rename --verbose
debuild -us -uc --lintian-opts -i

Or gitbuildpackage:

Need a debian/gbp.conf file

mkdir ../{tarballs,build-area}; uscan --download-current-version --destdir ../tarballs; git-buildpackage

Puppet local hacking:

cd /tmp
git clone https://gerrit.wikimedia.org/r/p/operations/puppet.git
git clone https://gerrit.wikimedia.org/r/p/labs/private.git /tmp/puppet/private

Then:

puppet apply --noop \
 --modulepath /tmp/puppet/modules:/tmp/puppet/private/modules \
 --templatedir /tmp/puppet/templates \
 manifests/site.pp

Or --execute