Editing
Command line tools
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
* st - simple statistics from the command line interface [https://github.com/nferraz/st] * pk - A field extraction utility [https://github.com/johnmorrow/pk] * z - jump around directories [https://github.com/rupa/z] * kpartx - setup partitions in full disk image via loop, so they can be mounted [http://nfolamp.wordpress.com/2010/08/16/mounting-raw-image-files-and-kpartx/] * xmount - disk image conversion (VMware, RAW, virtualbox etc.) [https://www.pinguin.lu/index.php] * qemu-img - qemu-img convert -O vmdk imagefile.dd vmdkname.vmdk [https://stackoverflow.com/questions/454899/how-to-convert-flat-raw-disk-image-to-vmdk-for-virtualbox-or-vmplayer] * jacksum - use CRC64 to check if file contains only zeroes [http://www.jonelo.de/java/jacksum/index_de.html] find . -type f -not -size 0 -print0 | xargs -0 java -jar ~/Documents/src/jacksum-1.7.0/jacksum.jar -a crc64 | grep ^0000000000000000 * rmate - execute textmate via SSH [https://github.com/textmate/rmate] * vimdiff - as git mergetool [[vimdiff]] == Shell Stuff == * zsh - Z Shell * oh my zsh - A community-driven framework for managing your zsh configuration [https://github.com/robbyrussell/oh-my-zsh] == TMux == * copy from buffer **go to buffer history with '''ctrl-b [''' **begin selection with '''ctrl-space''' **copy to clipboard '''ctrl-w''' **paste from clipboard '''ctrl-b =''' * open tmux sessions in seperate windows (iTerm) tmux -CC == Configuration == * etckeeper - keep track of your etc settings in a git [http://evilrouters.net/2011/02/18/using-etckeeper-with-git-on-ubuntu/] == Ubuntu Packaging == * Debug build: export DEB_BUILD_OPTIONS=nostrip,noopt [http://jameswestby.net/tips/tips/compiling-debian-package-for-debug.html] * Build from git: git-buildpackage -uc -us [https://github.com/zfsonlinux/grub/tree/readme] * Signed built: gbp buildpackage -k7EC5B966 --git-sign-tags --git-retag --git-tag * Make sure to clean your directory (e.g. you used dpkg-buildpackage before) rm .gitignore; git clean -f -d; git reset --hard * For patches use git-dpm [http://git-dpm.alioth.debian.org/examples.html] * Install build dependencies apt-get build-dep package-name * Override a package file with a local file (original file is moved file.distrib) dpkg-divert --local --rename --add /usr/sbin/grub-probe * Force IPv4 for apt-get [https://unix.stackexchange.com/questions/9940/convince-apt-get-not-to-use-ipv6-method] apt-get -o Acquire::ForceIPv4=true update * Find files not in package [https://unix.stackexchange.com/a/256334/235563] ( export LC_ALL=C; comm -23 <(find /etc/init -xdev -type f | sort) <(sort -u /var/lib/dpkg/info/*.list); ) == Postfix == * checking the mail queue: mailq postcat -q <queueid> To Delete: postsuper -d <queueid>
Summary:
Please note that all contributions to Jan's Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Jan's Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information