#Mac OS X
This file contains hidden or 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 | |
computer_name=$(scutil --get ComputerName) | |
login() { | |
/usr/bin/osascript << EOF | |
tell application "System Events" | |
keystroke "${1}" | |
keystroke return | |
delay 1 |
This file contains hidden or 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
table <emerging_threats> persist file "/etc/emerging-Block-IPs.txt" | |
block log from <emerging_threats> to any |
The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.
You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.
- Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.
This file contains hidden or 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
echo "" | |
echo "--Uninstalling pow..." | |
curl get.pow.cx/uninstall.sh | sh #if you have pow installed | |
echo "" | |
echo "--Modifying pow configuration..." | |
echo 'export POW_DST_PORT=88' >> ~/.powconfig | |
echo "" | |
echo "--Modifying Apache configuration..." |
This file contains hidden or 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
dscl . -read /Users/username JPEGPhoto | tail -1 | xxd -r -p > /path/to/accountImage.jpg |
This file contains hidden or 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
d='dirs -v | head -10' | |
egrep='egrep --color=auto' | |
fgrep='fgrep --color=auto' | |
g=git | |
ga='git add' | |
gb='git branch' | |
gba='git branch -a' | |
gc='git commit -v' | |
gca='git commit -v -a' | |
gcl='git config --list' |
This file contains hidden or 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
<?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>Label</key> | |
<string>org.sacredsf.wifi.plist</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/libexec/add_wifi.sh</string> | |
</array> |