Skip to content

Instantly share code, notes, and snippets.

View jeekl's full-sized avatar
💩

Jeff Eklund jeekl

💩
View GitHub Profile
@strokirk
strokirk / Zankoku-SE.txt
Last active August 4, 2017 12:33
Zankoku na tenshi no Teeze - på svenska!
Som en ängel som inte har nån' medkänsla
Res dig pojke mot himmelen som en hjälte.
Himmel blå, och molnfri som få.
Ler mot dig och knackar på ditt hjärtas dörr.
En blå vind som yr, och från urtiden flyr, i takt med din hjärtas andetag.
Någon som vidrör dig mjukt. Som du ej kan se men du vill söka upp.
Ditt öde är gömt där du inte kan se med dina naiva ögon.
Two packages. Same name. Same file. Different epoch.
Both installed simultaneously.
rpm.
pork(~/projects/fpm) % rpm -ql fizz
/tmp/test
/tmp/test
@jtimberman
jtimberman / gist:3382041
Created August 17, 2012 19:57
My recent homebrew, Scotch/Scottish Ale style, with honey
Scotch/Scottish Ale style, with honey.
8 pounds light malt extract syrup
3 pounds raw, natural honey
1 pound Crystal 40 grain
2 oz Fuggles hops
2 Edinburgh Ale yeast
Typical extract procedure:
@magnars
magnars / goto-line-with-feedback.el
Created August 8, 2012 06:42 — forked from joshwnj/goto-line-with-feedback.el
Emacs: Show line numbers temporarily, while prompting for the line number input
;; turn line numbers off by default
(global-linum-mode -1)
(defun goto-line-with-feedback (&optional line)
"Show line numbers temporarily, while prompting for the line number input"
(interactive "P")
(if line
(goto-line line)
(unwind-protect
(progn
@atomic-penguin
atomic-penguin / symbol_to_string.sh
Created June 21, 2012 20:35
Foodcritic FC001 fixer script.
#!/bin/bash
if [ "$#" -eq 0 ]; then
echo "Usage: `basename $0` <cookbook directory>"
elif [ "$#" -eq 1 ]; then
find $1 -name "*[.md|.rb]" ! -name "*.git" ! -name "*.erb" | xargs perl -p -e 's!\[:([a-z0-9_]+)\]![\x27$1\x27]!gi' -i
echo "Commit message:"
echo "FC001: Use strings in preference to symbols to access node attributes"
fi
@frimik
frimik / post-receive.irc
Created February 13, 2012 23:13
git post-receive IRC notification
#!/bin/bash
#
# IRC notification post-receive hook.
# Based on https://wiki.icinga.org/display/community/GIT+Commit+Bot
#
# Author: Mikael Fridh <frimik@gmail.com>
#
# This script pulls out the commit information and sends it to
# the Notify plugin in supybot via localhost 5050.
#
@uriel1998
uriel1998 / volume.rb
Created February 10, 2012 17:55 — forked from jaspervdj/volume.rb
Set PulseAudio volume, mute, unmute, and change default sink (and automagically switch running audio streams) from the commandline
#!/usr/bin/ruby
#
# Moved to: https://github.com/uriel1998/volumerb
#
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
# Unported License. To view a copy of this license, visit
# http://creativecommons.org/licenses/by-sa/3.0/.
#
# Forked/derived from original by Jasper Van der Jeugt (jaspervdj);
@jtimberman
jtimberman / network_addr.rb
Created June 22, 2011 16:53
Ohai plugin to provide semantically nice attributes for network interfaces
#
# Author:: Joshua Timberman (<joshua@opscode.com>)
# Copyright:: Copyright (c) 2011 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@someara
someara / gist:673693
Created November 12, 2010 03:40
chef hostname
bash -c '
echo <%= @config[:chef_node_name] %> > /tmp/chef_node_name
cat /tmp/chef_node_name | cut -d. -f1 > /tmp/proper_hostname
cat /tmp/chef_node_name | cut -d. -f2 | tr -d "\n" > /tmp/proper_dnsdomainname
echo -n "." >> /tmp/proper_dnsdomainname
cat /tmp/chef_node_name | cut -d. -f3 >> /tmp/proper_dnsdomainname
IPV4ADDR=`ip addr | grep eth0 | grep "inet " | cut -d " " -f 6 | cut -d \/ -f 1`