Skip to content

Instantly share code, notes, and snippets.

View sachsgit's full-sized avatar

Sachs sachsgit

View GitHub Profile
@hvmonteiro
hvmonteiro / notepad_plus_log4j.xml
Created September 26, 2016 12:25
Notepad++ User Defined Language Syntax Highlight: Log4J
<NotepadPlus>
<UserLang name="Log4J" ext="log" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="2" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00 01 02 03 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@n-st
n-st / sort-gitconfig.sh
Created March 24, 2016 21:51
Sort the sections of a Git config file (and the contents of the sections) alphabetically
awk '{ if ($1 ~ /^\[/) { section=$0; print $0 } else { printf section; print $0 } }' gitconfig | sort -t ']' -k1,1 | sed 's/\[.\+\]\([^\s]\+\)/\1/' > gitconfig.new
mv gitconfig.new gitconfig
@jacoby
jacoby / .perltidyrc
Created April 26, 2012 13:54
My .perltidyrc -- configuration for Perltidy
# my .perltidyrc config file
# http://perldoc.perl.org/perlstyle.html
--backup-and-modify-in-place
#--cuddled-else
--continuation-indentation=4
--indent-columns=4
#--maximum-line-length=78
#--line-up-parentheses
--opening-brace-always-on-right