Skip to content

Instantly share code, notes, and snippets.

Avatar

Bea Hughes barn

View GitHub Profile
@barn
barn / nmap-rspec-fail.rb
Last active Aug 29, 2015 — forked from garethr/nmap-rspec.rb
Building on @garethr's work on nmap-rspec, this adds being able to do multiple hosts, rather than just a single IP/host. Just specify more of those blocks...
View nmap-rspec-fail.rb
[ben@laptop:nmap-rspec2]% rspec -f d -c nmap-rspec.rb
the scan of the IP ranges
Starting Nmap 6.46 ( http://nmap.org ) at 2014-07-06 23:21 EDT
Nmap scan report for 141.101.117.49
Host is up (0.26s latency).
PORT STATE SERVICE
20/tcp filtered ftp-data
21/tcp filtered ftp
22/tcp filtered ssh
View gist:2649683
ody@orihime:[dist]% which git-subtree git-subtree () {
( cd $(git rev-parse --show-toplevel) && HOME/local/bin/git-subtree $* )
}
@barn
barn / gist:1511084
Created Dec 22, 2011 — forked from jorilallo/gist:1509950
Grove's weechat config
View gist:1511084
# Add new server for organization YYYYYY, password is case sensitive.
/server add grove YYYYYY.irc.grove.io/6697 -ssl
/set irc.server.YYYYYY.password "YYYYYY"
/set irc.server.YYYYYY.ssl_verify no
# Set your username to BBBB
/set irc.server.YYYYYY.username "BBBB"
/set irc.server.YYYYYY.nicks "BBBB"
# Set _your_ password
@barn
barn / gist:1511082
Created Dec 22, 2011 — forked from jorilallo/gist:1509950
Grove's weechat config
View gist:1511082
# Add new server for organization YYYYYY
/server add grove YYYYYY.irc.grove.io/6667
/set irc.server.YYYYYY.password "YYYYYY"
# Set your username to BBBB
/set irc.server.YYYYYY.username "BBBB"
/set irc.server.YYYYYY.nicks "BBBB"
# Set your password
/set irc.server.YYYYYY.command "/msg NickServ identify xxxxxx"
View gist:1456194
# Less Colors for Man Pages
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold
export LESS_TERMCAP_me=$'\E[0m' # end mode
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode
export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box
export LESS_TERMCAP_ue=$'\E[0m' # end underline
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline
export LESS_TERMCAP_zz=$'\E[0m' # make 'export' output not now all be colourised.
You can’t perform that action at this time.