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 | |
# Create OSX Yosemite Installer for VirtualBox using iesd gem | |
gem install iesd | |
iesd -i /Applications/Install\ OS\ X\ Yosemite.app/ -o yosemite.dmg -t BaseSystem | |
hdiutil convert yosemite.dmg -format UDSP -o yosemite.sparseimage | |
ls -lh yo* | |
hdiutil mount /Applications/Install\ OS\ X\ Yosemite.app/Contents/SharedSupport/InstallESD.dmg | |
hdiutil mount yosemite.sparseimage | |
cp /Volumes/OS\ X\ Install\ ESD/BaseSystem.* /Volumes/OS\ X\ Base\ System/ | |
hdiutil detach /Volumes/OS\ X\ Install\ ESD/ |
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
Nexus vlan assigned but not created | |
asw1-p05-0-lab# sh int eth1/17 sw | |
Name: Ethernet1/17 | |
Switchport: Enabled | |
Switchport Monitor: Not enabled | |
Operational Mode: access | |
Access Mode VLAN: 200 (Vlan not created) | |
Trunking Native Mode VLAN: 1 (default) | |
Trunking VLANs Allowed: 1-4094 |
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
#Service receives *no input* in *any application* | |
# bind to ctrl-alt-l in keyboard shortcuts | |
on run {input, parameters} | |
tell application "System Events" to start current screen saver | |
return input | |
end run |
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 'arpa/racktastic/racktastic' | |
require 'arpa/racktastic/config' | |
require 'arpa/racktastic/data/data' | |
require 'sinatra' | |
require 'arpa/racktastic/controller/catalyst4948_switch_controller' | |
require 'arpa/racktastic/accessor/factory' | |
require 'pp' |
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
## | |
# Key reference | |
# | |
# C-a c -- new window | |
# C-a A -- rename window | |
# C-a <#> -- switch window | |
# C-a k -- kill window | |
# C-a h -- hardcopy | |
# C-a H -- toggle log |
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 |
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
mibs +ALL | |
defVersion 2c | |
defCommunity public |
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 python | |
from time import time | |
import random | |
random.seed(time()) | |
print random.randint(0,9999) |
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 | |
git config --add remote.origin.fetch +refs/pull/*/head:refs/remotes/origin/pr/* | |
git config -l | |
git fetch origin |
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 bash | |
AWK="`which awk`" | |
BASENAME="`which basename`" | |
DATE="`which date`" | |
FIND="`which find`" | |
GIT="`which git`" | |
GREP="`which grep`" | |
LESS="`which less`" | |
PRINTF="`which printf`" |