Know-How / Wissenswertes
6 07 2016
Usecase: import multiple entries into “Billings OSX”. We are using sqlite3 (as Billings OSX saves all its data into a Sqlite3 Database). This is just my very personal cheatsheet but anayone who’s interested might just use it for learning purposes. sqlite3 “/Users/user/Library/Application Support/Billings/Database/billings.bid” .table # OR: .tables .schema Invoice — .mode list .separator “, ” […]
1 07 2016
The quality of my MacBook Pro 2012’s internal mic is simply the best. For a long time i wanted to do all my phonecalls using a headset instead of my phone, so finally i can do regular phone calls from both OSX and Linux via SIP over Asterisk/chan_dongle. Because of my dual-boot Linux setup Apple’s […]
27 06 2016
https://blogs.msdn.microsoft.com/meason/2016/06/17/intro-to-kernel-debugging-1/
27 06 2016
https://security-onion-solutions.github.io/security-onion/
21 06 2016
From a security point of view, WordPress seems to be a nightmare. The default setup exposes hundrets of .php include files in wp-includes/ and wp-content/ that may be directly called. And indeed, many robots out there are scanning the whole internet for these kind of files. Here are some ideas to improve security. Step 1: […]
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 […]