This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: ./map-subnet.sh 129.38.11 | |
# | |
SUBNET=$1 | |
for n in {1..254}; do | |
ADDR=${SUBNET}.${n} | |
echo -e "${ADDR}\t$(dig -x ${ADDR} +short)" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "clamp" | |
class ProjectSpace < Clamp::Command | |
#PROJECT_SPACE_ROOT = "/afs/rcf/project/" | |
PROJECT_SPACE_ROOT = "/Users/jmaziarz/" | |
option ["-v", "--version"], :flag, "Print version" do | |
puts "Version 0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jer's Honey BBQ Sauce | |
Ingredients: | |
* 1-1/4 cups ketchup | |
* 1/3 cup white vinegar | |
* 1/4 cup molasses | |
* 1/4 cup honey | |
* 1 teaspoon liquid smoke flavoring | |
* 1/2 teaspoon salt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Download and install terminal-notifier from https://github.com/alloy/terminal-notifier/downloads | |
2. Put the iOS7 checker script somewhere in your home directory | |
3. Activate cron on MacOS | |
$ [sudo] touch /etc/crontab | |
4. Install the crontab | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Fork repo from https://github.com/someuser/somerepo.git | |
2. Clone forked repo | |
$ git clone https://github.com/your_username/somerepo.git | |
$ cd somerepo | |
3. Setup upstream to someuser's repo | |
$ git remote add upstream https://github.com/someuser/somerepo.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given: | |
$ git branch -a | |
production | |
* master | |
remotes/origin/5-4-stable | |
remotes/origin/6-0-stable | |
remotes/origin/6-1-stable | |
remotes/origin/6-2-stable | |
remotes/origin/6-3-stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# test-attributes-1/attributes/default.rb | |
default['test-attributes']['exclude'] = [ 'one', 'two', 'three' ] | |
# test-attributes-2/attributes/default.rb | |
default['test-attributes']['exclude'] = [ 'three', 'four', 'five' ] | |
# test-attributes-1/recipes/default.rb | |
include_recipe 'test-attributes-2' | |
Chef::Log.info(node['test-attributes']['exclude'].join(' ')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Our nsswitch.conf from our production configuration | |
$ cat /etc/nsswitch.conf | |
passwd: compat [NOTFOUND=continue] pgsql | |
shadow: files | |
group: files pgsql | |
hosts: files dns | |
bootparams: files | |
ethers: files | |
netmasks: files |