Skip to content

Instantly share code, notes, and snippets.

View dysinger's full-sized avatar
🏠
Working from home

Dysinger dysinger

🏠
Working from home
  • Independent
  • Nearby
View GitHub Profile
@dysinger
dysinger / build.escript
Created November 2, 2009 15:56
Simple Erlang Build File
#!/usr/bin/env escript
%% -*- erlang -*-
main([]) -> build(compile);
main(Tasks) -> [build(list_to_atom(Task)) || Task <- Tasks].
build(clean) ->
[ok = file:delete(X) || X <- filelib:wildcard(filename:join("ebin","*"))],
ok = file:del_dir("ebin");
Sonian is looking for an experienced Senior Systems Automation Engineer
to join our team. We are looking for a highly motivated, goal-oriented &
team-focused engineer.
Responsibilities
• Deliver recipies with Chef, Nanite & Cucumber (Ruby).
• Flawless automated maintenence of 100+ node systems.
• Plan automated backups and fail-over configurations.
• Keep centralized logging and monitoring on clusters.
• Work with other Engineers to profile and optimize.
(when window-system
(color-theme-blackboard)
(when (equal system-type 'darwin)
(setq ispell-program-name "~/Homebrew/bin/aspell")
(dolist (dir '("/usr/local/bin" "/usr/X11/bin"
"~/Homebrew/sbin" "~/Homebrew/bin"
"~/Library/Python/2.6/bin" "~/.gem/ruby/1.8/bin"
"~/bin"))
(let ((path (expand-file-name dir)))
(setenv "PATH" (concat (format "%s:" path) (getenv "PATH")))
[11/11/09 1:53:09 PM] Tim Dysinger: gcc -c  -Demacs -DHAVE_CONFIG_H  -I. -I/Users/tim/src/emacs/src -Dtemacs    -g -O2 -Wno-pointer-sign   dispnew.c
gcc -c  -Demacs -DHAVE_CONFIG_H  -I. -I/Users/tim/src/emacs/src -Dtemacs    -g -O2 -Wno-pointer-sign   frame.c
gcc -c  -Demacs -DHAVE_CONFIG_H  -I. -I/Users/tim/src/emacs/src -Dtemacs    -g -O2 -Wno-pointer-sign   scroll.c
gcc -c  -Demacs -DHAVE_CONFIG_H  -I. -I/Users/tim/src/emacs/src -Dtemacs    -g -O2 -Wno-pointer-sign   xdisp.c
gcc -c  -Demacs -DHAVE_CONFIG_H  -I. -I/Users/tim/src/emacs/src -Dtemacs    -g -O2 -Wno-pointer-sign   menu.c
menu.c: In function ‘Fx_popup_menu’:
menu.c:1076: error: ‘EmacsMenu’ undeclared (first use in this function)
menu.c:1076: error: (Each undeclared identifier is reported only once
menu.c:1076: error: for each function it appears in.)
menu.c:1076: error: ‘pmenu’ undeclared (first use in this function)
namespace(:git) do
def all
`find . -name .git -type d`.reject {|d| d =~ /.hudson.*/}.each do |prj|
Dir.chdir(File.dirname(File.expand_path(prj))) do |d|
puts(d)
begin
yield
rescue Exception => e
puts(e.message)
end
say <<EOF
Fitter, happier, more productive,
comfortable,
not drinking too much,
regular exercise at the gym
(3 days a week),
getting on better with your associate employee contemporaries,
at ease,
eating well
(no more microwave dinners and saturated fats),
namespace(:cookbooks) do
desc "make per-cookbook branches from the opscode cookbook repository"
task(:branch) do
Dir.glob("*").select {|x| FileTest.directory?(x) }.each do |path|
`git checkout master`
`git branch -D #{path}`
`git checkout -b #{path}`
`git filter-branch --tree-filter \
'rm -rf .gitignore #{Dir.glob("*").reject {|x| x == path}.join(" ")}' \
--prune-empty HEAD`
namespace(:cookbooks) do
#
# This rake script enables merging in public "cookbooks" from
# opscode into your local "chef-repo"
#
# generating per-cookbook branches takes a while. run this task on
# your opscode cookbooks git clone and you'll end up with a zillion
# branches with one cookbook per branch
#
# if you like just skip to "option #2" below to play around with this.
#!/bin/sh
# 1 - install emacs on the server w/ the same version as your desktop
# cd ~/src/emacs && ./configure --prefix=$HOME --without-x && make install
# 2 - install screen on the server w/ suid bit turned on for multi-user
# sudo chmod 4755 `which screen`
# 3 - start a local emacs daemon on your desktop
# emacs --daemon --eval '(setq server-use-tcp t)'
#!/bin/sh
# on the laptop add to .emacs
# (setq server-use-tcp t) (server-start)
# then ssh w/ port forwarding to a public box
ssh -R 22:127.0.0.1:43210 dev.sa2s.us
# on the public pairing box
ssh -p 43210 localhost