boot into single user mode:
hit any key, hit 'a' to append arguments, add 'single' to end of arguments
check that is has an ip (VMware needs to be in bridged mode):
ip addr
dhclient eth0
ping google.com
Show full path in Finder window | |
~ $ defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES | |
~ $ killall Finder | |
Change screenshot location | |
- $ defaults write com.apple.screencapture location ~/Documents/screenshots | |
Change network locations bases on wifi SSiD | |
# https://github.com/sashagavrilov/locationchanger | |
curl -L https://github.com/sashagavrilov/locationchanger/raw/master/locationchanger.sh | bash |
// Question 1 | |
// Write a for loop that counts 1 - 4. | |
// It should output "Output " plus the current count | |
// Example: wait 2 seconds then "Output 1", wait 2 seconds then "Output 2", ... wait 2 seconds then "Output 4" | |
// If you they need help getting start you can use this block | |
(function() { | |
for(var i=1; i<5; i++) { | |
setTimeout(function() { console.log('Output ' + i) }, 2000) | |
} |
wget --no-check-certificate -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py | |
chmod +x speedtest-cli | |
./speedtest-cli |
sudo apt-get upgrade; sudo apt-get update | |
wget http://nodejs.org/dist/v0.10.12/node-v0.10.12-linux-arm-pi.tar.gz | |
mkdir ~/src | |
cd ~/src | |
cp ~/node-v0.10.12-linux-arm-pi.tar.gz . | |
tar -xvzf node-v0.10.12-linux-arm-pi.tar.gz | |
#add to ~/.bashrc | |
NODE_JS_HOME=/home/pi/src/node-v0.10.12-linux-arm-pi |
for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.1.$ip UP" || : ; done |
#!bin/bash | |
mkdir /mnt/cdrom | |
mount -r /dev/cdrom /mnt/cdrom | |
cd /tmp | |
tar zxf /mnt/cdrom/VMwareTools-*.tar.gz | |
./vmware-tools-distrib/vmware-install.pl --default |
slmgr –rearm |
function(key) { | |
var q = location.search.replace('?','').split('&'), | |
obj = new Object(); | |
q.forEach(function(item) { | |
var splits = item.split('='); | |
obj[splits[0]] = splits[1]; | |
}); | |
return (key) ? obj[key] : obj; |
$(img.currentTarget).animate({ | |
'position': 'absolute', | |
'height': (function() { return $('#slider').slider('value') * 1.1 + '%' })(), | |
'width': (function() { return $('#slider').slider('value') * 1.1 + '%' })(), | |
'z-index': '10', | |
'margin': '-15px -15px -15px -15px'}, | |
0, | |
function() {} | |
}) |
boot into single user mode:
hit any key, hit 'a' to append arguments, add 'single' to end of arguments
check that is has an ip (VMware needs to be in bridged mode):
ip addr
dhclient eth0
ping google.com