Skip to content

Instantly share code, notes, and snippets.

View waitman's full-sized avatar

Waitman Gobble waitman

View GitHub Profile
#!/bin/bash
#create a backup of /etc using the date in the archive name.
#set schedule in cron
#example:
# 17 * * * * /backup-etc.sh
DATE=$(date +"%Y%m%d%H%M")
touch /var/opt/etc-backup-$DATE.tar.gz
chmod 600 /var/opt/etc-backup-$DATE.tar.gz
tar czfP /var/opt/etc-backup-$DATE.tar.gz /etc
@waitman
waitman / b8
Created February 8, 2014 11:17
break frame 8
(gdb) b /usr/ports/graphics/rawtherapee/work/rawtherapee-4.0.12/rtgui/rtimage.cc:101
Breakpoint 1 at 0x5fc449: file /usr/ports/graphics/rawtherapee/work/rawtherapee-4.0.12/rtgui/rtimage.cc, line 101.
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/local/bin/rawtherapee
[New LWP 100203]
[New Thread 80c006400 (LWP 100203)]
/usr/local/share/rawtherapee/themes/25-Gray-Gray.gtkrc:96: error: unexpected identifier `colorize_scrollbar', expected character `}'
@waitman
waitman / bt full
Created February 8, 2014 11:09
totally full
(gdb) bt full
#0 0x0000000808d3e7ca in thr_kill () from /lib/libc.so.7
No symbol table info available.
#1 0x0000000808df48e9 in abort () from /lib/libc.so.7
No symbol table info available.
#2 0x000000080847f7da in ?? () from /lib/libcxxrt.so.1
No symbol table info available.
#3 0x0000000802266e68 in Glib::ConvertError::throw_func(_GError*) ()
from /usr/local/lib/libglibmm-2.4.so.1
No symbol table info available.