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 | |
# Interactive wizard to walk the user through a process. | |
# Tracks steps completed; allows user to exit at any point and pick back up there. | |
function step1 () { | |
read -p "step 1 ok, $1? " ok | |
} | |
function step2 () { |
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
echo "................................................................................" && | |
echo "Hi! This will update 2 .plist files to disable Adobe Updates as recommended by" && | |
echo "Adobe on http://kb2.adobe.com/cps/408/kb408711.html" && | |
echo "and http://kb2.adobe.com/cps/404/kb404813.html." && | |
echo "Therefore you have to enter your password here. Open this file in TextEdit to see for yourself if you don't trust me." && | |
echo "................................................................................" && | |
sudo defaults write /Library/Preferences/com.adobe.AdobeUpdater.Admin 'Disable.Update' -bool 'YES' && | |
sudo defaults write /Library/Preferences/com.adobe.CSXSPreferences 'UpdatesAllowed' -string '0' && | |
echo "Settings updated. Reboot and have fun." | |
echo "................................................................................" |
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
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
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
// See comments below. | |
// This code sample and justification brought to you by | |
// Isaac Z. Schlueter, aka isaacs | |
// standard style | |
var a = "ape", | |
b = "bat", | |
c = "cat", | |
d = "dog", |
NewerOlder