Skip to content

Instantly share code, notes, and snippets.

Avatar

Bea Hughes barn

View GitHub Profile
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.
@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"
@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
View gist:2316183
[ben@enlil:puppetlabs-modules]% git add foo.pp ; git commit -m "test" foo.ppWorking on foo.pp
WARNING: double quoted string containing no variables on line 1
WARNING: line has more than 80 characters on line 1
ERROR: trailing whitespace found on line 1
Puppet lint failed on foo.pp with 1
View gist:2502002
warren#show vlan id 8
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
8 regul8 active
View gist:2511200
macro index \ea ":set mime_forward=yes\n:set mime_forward_rest=yes\n" "Set attachment forwarding"
macro index \eA ":set mime_forward=no\n:set mime_forward_rest=no\n" "Unset attachment forwarding"
View gist:2578602
#!/bin/bash
# Requires bash, as it uses the [[]] syntax.
#
# If it's puppet code, lint it up.
# I we don't have puppet-lint, so just exit and leave them be.
which puppet-lint >/dev/null 2>&1 || exit
# Stuff goes here
declare -a FILES
View gist:2580692
[root@mundilfari:~]# cd ;time puppet agent -t --environment solarisnagios --trace 1
info: Retrieving plugin
info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
info: Loading facts in /var/lib/puppet/lib/facter/printers.rb
info: Loading facts in /var/lib/puppet/lib/facter/haszfs.rb
info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
info: Loading facts in /var/lib/puppet/lib/facter/certname.rb
info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
info: Loading facts in /var/lib/puppet/lib/facter/systemid.rb
info: Loading facts in /var/lib/puppet/lib/facter/confenv.rb
View gist:2638702
[mundilfari:trunk]% mgar package 2
[===== NOW BUILDING: puppet-2.7.14 =====]
[prerequisite] complete for puppet.
[fetch] complete for puppet.
[checksum] complete for puppet.
[checksum-global] complete for puppet.
[checksum-modulated] complete for puppet.
[===== NOW BUILDING: puppet-2.7.14 MODULATION global: ISA= =====]
[extract-modulated] complete for puppet.
[===== Building modulation 'isa-sparcv8plus' on host '' =====]
View gist:2649683
ody@orihime:[dist]% which git-subtree git-subtree () {
( cd $(git rev-parse --show-toplevel) && HOME/local/bin/git-subtree $* )
}
You can’t perform that action at this time.