Skip to content

Instantly share code, notes, and snippets.

@barn
barn / mutt-hash-fingerprints-patch.diff
Created July 14, 2015 22:00
Patch for mutt 1.5.23 to show more hash fingerprints for unknown certificates.
--- a/mutt_ssl.c Sun Jul 05 13:38:39 2015 -0700
+++ b/mutt_ssl.c Tue Jul 14 19:00:46 2015 +0100
@@ -551,7 +551,7 @@
return ret;
}
-static void x509_fingerprint (char *s, int l, X509 * cert)
+static void x509_fingerprint_md5 (char *s, int l, X509 * cert)
{
unsigned char md[EVP_MAX_MD_SIZE];
[:~]% ls -l sb3*
-rw-r--r--@ 1 bhughes staff 23225244 27 Jul 21:29 sb3.mp3
-rw-r--r-- 1 bhughes staff 22159194 27 Jul 21:29 sb3_gz.mp3.gz
-rw-r--r-- 1 bhughes staff 21887200 27 Jul 21:29 sb3_xz.mp3.xz
# 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 December 22, 2011 17:23 — forked from jorilallo/gist:1509950
Grove's weechat config
# 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 December 22, 2011 17:24 — forked from jorilallo/gist:1509950
Grove's weechat config
# 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
[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
warren#show vlan id 8
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
8 regul8 active
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"
#!/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
[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