Skip to content

Instantly share code, notes, and snippets.

View waitman's full-sized avatar

Waitman Gobble waitman

View GitHub Profile
@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.
@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 `}'
#!/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 / gist:9194649
Created February 24, 2014 19:02
rsyslogd 8.1.6 config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by rsyslog configure 8.1.6, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --prefix=/usr --enable-gnutls --enable-cached-man-pages
## --------- ##
## Platform. ##
@waitman
waitman / gist:9194685
Created February 24, 2014 19:04
rsyslogd 8.1.6 build.log
Script started on Mon Feb 24 10:55:21 2014
bash-4.2# make -j4
make all-recursive
make[1]: Entering directory '/sources/rsyslog-8.1.6'
Making all in doc
make[2]: Entering directory '/sources/rsyslog-8.1.6/doc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/sources/rsyslog-8.1.6/doc'
Making all in compat
make[2]: Entering directory '/sources/rsyslog-8.1.6/compat'
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# CMakeCPackOptions.cmake
# Tests/CMakeLists.txt
# Tests/RunCMake/CMakeLists.txt
@waitman
waitman / rfidgb
Created November 25, 2014 15:11
good read / bad read
Good Read:
Nov 25 07:01:06 afia rfid[5068]: Connected [/dev/cuaU0] [115200]
Nov 25 07:01:06 afia rfid[5068]: Data a0 6 ff 81 1 2 2 (d5)
Nov 25 07:01:06 afia rfid[5068]: Data a0 1d 1 81 0 1 14 30 0 15 5 0 0 76 6 1 52 5 90 d7 5f db 77 15 5 0 0 4 10 1 (47)
Nov 25 07:01:06 afia rfid[5068]: Received [Cmd 81] [DataLen 31] [ReadId 01]
Nov 25 07:01:06 afia rfid[5068]: Read Tag: Tag: [pc 30 0] [epc 15 5 0 0 76 6 1 52 5 90 d7 5f] [crc db 77] [data 15 5 0 0] [ant 1] [cnt 1]
Array
(
[0] => Array
(
[Block ID] => 0
[Block] => Array
(
[Block Number] => 0
[Block Type] => 0
[Block Length] => 34
[map[Block ID:0 Block:map[Block Type:0 Block Length:34 Is Last:false Max Blocksize:4096 Max Framesize:17217 MD5 Signature:903a2edd2b8e11b8200a6008831815d4 Block Number:0 Min Blocksize:4096 Min Framesize:4026 Sample Rate:88200 Channels:2 Bits Per Sample:24 Total Samples:3.5583931e+07]] map[Block ID:1 Block:map[Is Last:false Seek Points:41 Seek Data:[map[Point Number:0 Sample Number:0 Stream Offset:0 Frame Samples:4096] map[Point Number:1 Sample Number:880640 Stream Offset:3.016032e+06 Frame Samples:4096] map[Point Number:2 Sample Number:1.76128e+06 Stream Offset:6.21353e+06 Frame Samples:4096] map[Point Number:3 Sample Number:2.64192e+06 Stream Offset:9.445912e+06 Frame Samples:4096] map[Point Number:4 Sample Number:3.526656e+06 Stream Offset:1.2708595e+07 Frame Samples:4096] map[Point Number:5 Sample Number:4.407296e+06 Stream Offset:1.5997399e+07 Frame Samples:4096] map[Point Number:6 Sample Number:5.287936e+06 Stream Offset:1.9236562e+07 Frame Samples:4096] map[Point Number:7 Sample Number:6.172672e+06 Stre
@waitman
waitman / gist:847a8cae4a650a8898ee
Created November 30, 2014 23:37
json output from metaflac
[
{
"Block ID": 0,
"Block": {
"Block Number": 0,
"Block Type": 0,
"Block Length": 34,
"Is Last": false,
"Min Blocksize": 4096,
"Max Blocksize": 4096,