Skip to content

Instantly share code, notes, and snippets.

View shayfrendt's full-sized avatar

Shay Frendt shayfrendt

View GitHub Profile
@shayfrendt
shayfrendt / about.md
Created May 14, 2024 16:36 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@shayfrendt
shayfrendt / gist:1503580
Created December 20, 2011 22:27 — forked from wayneeseguin/gist:1503575
SM Framework PostgreSQL Extension Set

Install PostgreSQL Extension Set

[root@sl2 ~]# sm set install postgresql
  [✔] postgresql head                         

Replication

Setup

postgres@replica$ sm postgresql replication configure master 10.0.5.211 replica 10.0.5.212
# Textmate essential bundles
cd /Applications/TextMate.app/Contents/SharedSupport/Bundles
# mkdir -p cd /Applications/TextMate.app/Contents/SharedSupport/Bundles
git clone git://github.com/protocool/ack-tmbundle.git Ack.tmbundle
git clone git://github.com/textmate/ruby-haml.tmbundle.git
git clone git://github.com/seaofclouds/sass-textmate-bundle.git "Ruby Saas.tmbundle"
git clone git://github.com/bmabey/cucumber-tmbundle.git Cucumber.tmbundle
git clone git://github.com/karnowski/blue-ridge-tmbundle.git JavaScript\ Blue\ Ridge.tmbundle
git clone git://github.com/johnmuhl/nginx-tmbundle.git nginx.tmbundle
#!/bin/sh
# Install ImageMagick on Snow Leopard: by kain, improved by mislav and samsoffes
# http://www.icoretech.org/2009/08/install-imagemagick-in-leopard-snow-leopard/
# Work with 64bit kernel mode
set -e
PREFIX=/usr/local
# Passenger users: amend your Apache global configuration with the following directive
# SetEnv PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
@shayfrendt
shayfrendt / gist:267429
Created January 2, 2010 08:58 — forked from retr0h/gist:132506
Ubuntu Chef Bootstrapper
#!/bin/sh
trap "exit 2" 1 2 3 13 15
##
# Ubuntu.
if [ -f "/etc/lsb-release" ]; then
### Supported releases.
#ISSUE="`awk '{print $2}' /etc/issue`"
ISSUE="`awk -F"[ |.]" '{print $2$3}' /etc/issue`"
# app:sync
# Local and production synchronization
# - require yaml_db plugin
namespace :app do
namespace :sync do
task :all => [:files, :db]
task :files do
`rsync -azv user@host:'/apps/myawesomeapp/shared/files/' #{Rails.root + 'files'}`