20 06 2016
Step 1: use 7z. The compression is far superior compared to other archivers, because the compression dictionary is reused between files. Compressing one file with 7z and compareing to e.g. gzip will show similar results. Compressing two similar files with 7z as opposed to gzip, will show dramatic differences in compression ratio between 7z and […]
20 06 2016
Wanted: remove leading and trailing whitespaces from variables or cat’d lines from a textfile. – Simple solution: echo ” a b c d ” | awk ‘{$1=$1};1’ prints: “a b c d” For convenience, i created /usr/bin/trim with this content: #!/bin/bash awk ‘{$1=$1};1’ which then allows echo ” a b c d ” | trim
20 06 2016
Source: http://unix.stackexchange.com/questions/40242/scroll-inside-screen-or-pause-output#40243 Add this to your ~/.screenrc # Enable mouse scrolling and scroll bar history scrolling termcapinfo xterm* ti@:te@
17 06 2016
LINDY’s IP Power Switch Classic 8 is a wonderful device that i really like. Not only does it offer a http Administration (the https panel doesn’t really work for me though, due to ssl protocol fuckup – hopefully they will fix this in a firmware upgrade soon). Anyways, the more beautiful alternative to the HTTP […]
15 06 2016
gparted … https://www.gnu.org/software/parted/ https://gparted.org/download.php first boot into gparted, rightlick on the locked LVM areas and click “disable”. the lock disappears. then resize them to maximum, then open terminal: useful sample commands: (WARNING: DO *NOT* USE THESE COMMANDS UNLESS YOU KNOW EXACTLY WHAT YOU ARE DOING! They are *NOT* thought to be copy/pasted, it’s just a […]
13 06 2016
mount -t btrfs -o compression=lzo /root/btrfs.img /mnt/btrfs or mount -t btrfs -o compression=zlib /root/btrfs.img /mnt/btrfs where lzo is faster. Useful commands for testing: dd if=/dev/zero of=btrfs.img bs=1M count=100 mkfs.btrfs ./btrfs.img mkfs.btrfs -O list-all mount -t btrfs -o compress=lzo ./btrfs.img /mnt/btrfs ATTENTION: the mount options for compression will ONLY be taken over from THE FIRST TIME […]
6 06 2016
tried printing Microsoft’s BingAds invoices with lp/cups. Result: prints blank pages 😉 Solution: run through imagemagick’s “convert”. gives a warning (see below), but works: ATTENTION: New, better solution (way faster!). The old solution stopped working (upgraded to Ubuntu 16.04 und changed cups printer setup. can’t tell what exactly was breaking it): pdftk “$infile” output “$outfile” […]
4 06 2016
“Person who say it cannot be done should not interrupt person doing it.” –Chinese Proverb
25 05 2016
change the .po file using vi … then recompile .po to .mo, e.g. … msgfmt -cv -o de_DE.mo de_DE.po msgfmt -cv -o en_US.mo en_US.po
14 05 2016
install asterisk 13.9.x: apt-get install aclocal automake autoconf libsrtp-devel wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz aclocal autoconf automake -a ./configure make make menuselect #make sure res_srtp is enabled! make install Asterisk TLS/ZRTP setup: Specifically for blink: https://wiki.asterisk.org/wiki/display/AST/Secure+Calling+Tutorial install chan_dongle (hint: setting the branch “asterisk13” is crucial!): git clone -b asterisk13 https://github.com/oleg-krv/asterisk-chan-dongle.git cd asterisk-chan-dongle aclocal autoconf automake -a ./configure make […]