Skip to content

Instantly share code, notes, and snippets.

Avatar

Sean Escriva webframp

View GitHub Profile
@webframp
webframp / hack.sh
Created Mar 31, 2012 — forked from erikh/hack.sh
OSX For Hackers
View hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
View gist:2307768
// -*- mode: Javascript -*-
// SETTINGS
// use history
url_completion_use_history = true;
// set emacs as external editor
editor_shell_command = 'emacs'
// run_external_editor_function = function (file) {
// keywords(arguments);
View gist:2347244
#!/bin/zsh
# At the moment, weather, battery bar, time
# TODO:
# mail, cputemp, system load
#
DATE_FORMAT='%A, %Y.%m.%d %H:%M:%S'
GMAIL_CHECK=$HOME/scripts/dzenGmailNotify.py
COC_CHECK=$HOME/scripts/dzgetCOCstats.py
ICONPATH=$HOME/.dzen/icons/dzen_bitmaps
MOCP=/usr/bin/mocp
View gist:2347251
#!/bin/sh
# Last Modified: 2009 Jan 30 Fri - 00:13:22
FG='#171717' # dark gray
W=1920
if [ `xrandr | grep -c 3840` -ne 0 ]; then
BG='#aeaeae' # light gray
X=1920
Y=0
else
BG='#cfbfad' # off white
View gist:2484514
I, [2012-04-24T23:11:46.256106 #5452] INFO -- : [validate] -- configuration valid -- running {"timestamp":"2012-04-24T23:11:46. %6N+0000","message":"[validate] -- configuration valid -- running","level
":"info"}
/opt/ruby-enterprise/lib/ruby/gems/1.8/gems/amqp-0.7.4/lib/amqp/client.rb:45:in `initialize': Could not connect to server 192.168.168.47:5671 (AMQP::Error)
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/amqp-0.7.4/lib/amqp/client.rb:109:in `call'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/amqp-0.7.4/lib/amqp/client.rb:109:in `unbind'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/eventmachine-1.0.0.beta.4/lib/eventmachine.rb:942:in `call'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/eventmachine-1.0.0.beta.4/lib/eventmachine.rb:942:in `run_deferred_callbacks'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/eventmachine-1.0.0.beta.4/lib/eventmachine.rb:939:in `each'
from /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/eventmachine-1.0.0.beta
View gist:2631753
template "#{node['apache']['dir']}/sites-available/nagios3.conf" do
source "apache2.conf.erb"
mode 0644
variables :public_domain => public_domain
if ::File.symlink?("#{node['apache']['dir']}/sites-enabled/nagios3.conf")
notifies :reload, "service[apache2]"
end
end
View Xdefaults
! first disable Keycap Picture insert mode
URxvt.iso14755: false
URxvt.iso14755_52: false
URxvt.background: black
URxvt.foreground: white
URxvt*font: xft:Inconsolata:pixelsize=16
!URxvt.font: xft:terminus:pixelsize=16
URxvt.perl-ext-common: default,url-select
URxvt.keysym.M-u: perl:url-select:select_next
URxvt.urlLauncher: /usr/bin/conkeror
View gist:2846577
"languages": {
"ruby": {
"platform": "x86_64-linux",
"version": "1.9.3",
"release_date": "2011-10-30",
"target": "x86_64-pc-linux-gnu",
"target_cpu": "x86_64",
"target_vendor": "pc",
"target_os": "linux",
"host": "x86_64-pc-linux-gnu",
View ubuntu_base.rb
name "ubuntu_base"
description "base role for ubuntu servers"
run_list [
"recipe[apt]",
"recipe[sudo]",
"recipe[openssh]",
"recipe[openssh::firewall]",
"recipe[users::sysadmins]",
"recipe[zsh]",
View gist:2879068
apt_repository "rabbitmq" do
uri "http://www.rabbitmq.com/debian/"
distribution "testing"
components ["main"]
key "http://www.rabbitmq.com/rabbitmq-signing-key-public.asc"
action :add
notifies :run, resources(:execute => "apt-get-update"), :immediately
end