Jump to content

User:Hashar

From Wikitech

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

Obsolete packages:

  aptitude search '~o'

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/operations/puppet.git
git clone https://gerrit.wikimedia.org/r/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