Skip to content

Instantly share code, notes, and snippets.

@arcadoss
arcadoss / parse_crashdump.sh
Created January 29, 2014 17:43
Extremly helpfull scripts for debugging c++ application on linux.
#!/bin/bash
# This script parses crashdump and print lines from source files
LOGFILE=$1
NUM_SRC_CONTEXT_LINES=3
old_IFS=$IFS # save the field separator
IFS=$'\n' # new field separator, the end of line
@arcadoss
arcadoss / vim-clean-swp.sh
Created January 20, 2014 12:13
Clean vim swap files
#!/bin/sh
find . -regex '.*/\.[^/]*\.sw[ijklmnop]' 2>/dev/null -delete
@arcadoss
arcadoss / ini.reader.sh
Created January 15, 2014 14:53
ini config parser for shell it bug when values or keys contains a ‘#’ sign see also http://ajdiaz.wordpress.com/2008/02/09/bash-ini-parser
#!/bin/sh
# Author: CJ
# Date..: 01/03/2013
## sample INI file save below to a file, replace "^I" with tab
#^I [ SECTION ONE ]
#TOKEN_TWO^I ="Value1 two "
#TOKEN_ONE=Value1 One
#TOKEN_THREE=^I"Value1^I three" # a comment string
#TOKEN_FOUR^I=^I"^IValue1 four"
@arcadoss
arcadoss / domain_policy.conf
Created January 4, 2014 13:57
Enhanced tomoyo rules for skype x64
<kernel>
use_profile 0
use_group 0
<kernel> /usr/bin/skype
use_profile 3
use_group 0
misc env \*