Skip to content

Instantly share code, notes, and snippets.

View onecooltaco's full-sized avatar

Jeremy Leggat onecooltaco

  • Arizona State University
  • Phoenix, AZ
View GitHub Profile
@simonoff
simonoff / gist:750379
Created December 21, 2010 19:01
unicorn init script
#!/bin/sh
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the unicorn web server
# Description: starts unicorn
@bruvik
bruvik / Makefile
Created March 4, 2011 07:40
Build local user on Mac OS X using the luggage.
# Luggage recipe to create a package that creates a local user
# (C) 2011 Anders Bruvik
# a.s.bruvik@usit.uio.no
#
include /usr/local/share/luggage/luggage.make
# Edit the following parameters:
PACKAGE_VERSION=1.0.0
REVERSE_DOMAIN=no.uio
@emiliano-poggi
emiliano-poggi / call-posh-funct.bat
Created April 8, 2011 20:35
BATCH: Call from batch file a function inside a powershell script
powershell ". .\MyFunctions.ps1; MyFunction -Param1 \"String\" -Param2 777"
@azatoth
azatoth / multiline echo
Created June 16, 2011 19:50
echo static multi line data in makefile
define data
foo
bar
baz
endef
export data
all:
@echo "$$data"
@beddari
beddari / gist:1099289
Created July 22, 2011 11:41
Homebrew Packaging Guide
Homebrew Packaging Guide
From OS X Deployment and Management
Jump to:navigation, search
This guide is for setting up homebrew to build individual packages that can be deployed with munki or ARD.
Scripts
/opt/homebrew/bin/rebuild-homebrew-pkgs
@mxcl
mxcl / uninstall_homebrew.sh
Created August 26, 2011 11:25
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@talkingmoose
talkingmoose / pvt.talkingmoose.LaunchTextEdit.plist
Last active May 17, 2023 22:41
Example: How to launch a GUI application using launchd
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>pvt.talkingmoose.LaunchTextEdit</string>
<key>ProgramArguments</key>
<array>
@oodavid
oodavid / README.md
Last active April 6, 2024 18:45 — forked from aronwoost/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/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
#
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 10, 2024 21:24
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname