I'm in a hospital in Spain and my MacBook was stolen.
Now I bought a new one and need to configure it. I have an external hard drive that backup everything using Time Machine, but I don't want all the crap I had in the old one.
I'm in a hospital in Spain and my MacBook was stolen.
Now I bought a new one and need to configure it. I have an external hard drive that backup everything using Time Machine, but I don't want all the crap I had in the old one.
| #!/bin/bash | |
| sleep 10 # give SuperDuper enough time to finish doing it's job | |
| /usr/sbin/diskutil umount bak > /dev/null | |
| # if you want to completely eject the disk when waking up to conserve battery life and stop the disk from spinning, then: | |
| # diskutil eject bak (you can get the disk name by running '''diskutil cs list''' source -> http://apple.stackexchange.com/questions/153307/how-can-change-hard-disk-name-not-partition) |
| sudo pmset -a disksleep 1 | |
| sudo pmset -b disksleep 1 |
| try{ | |
| whatever | |
| }catch(e){ | |
| windows.location.href = "http://stackoverflow.com/search?q=[js]+"+e.message; | |
| } |
| /** | |
| * Object Extending Functionality | |
| */ | |
| var extend = function(out) { | |
| out = out || {}; | |
| for (var i = 1; i < arguments.length; i++) { | |
| if (!arguments[i]) | |
| continue; | |
| for (var key in arguments[i]) { |
| #!/bin/bash | |
| # sleepwatcher script to dismount ext. drives on wake https://www.kodiakskorner.com/log/258 | |
| # checks if data & bak volumes are mounted, and if so dismounts | |
| if [[ $(mount | awk '$3 == "/Volumes/bak" {print $3}') != "" ]]; then | |
| diskutil umount bak | |
| fi |
| #!/bin/bash | |
| # To create in [.babun/]cygwin/usr/local/bin/subl with chmod +x | |
| ARGS="" | |
| while test $# -gt 0 | |
| do | |
| ARGS="$ARGS ${1#/cygdrive/[a-zA-Z]}"; # Remove /cygdrive and disk letter from the path | |
| shift | |
| done |
| #cross-sell .cross-sell img{ | |
| height: 200px; | |
| width: auto;} | |
| @media only screen and (max-width: 500px){ | |
| #cross-sell .cross-sell img { | |
| height: 100px; | |
| width: auto; }} | |
| @media only screen and (max-width: 979px) and (min-width: 501px){ | |
| #cross-sell .cross-sell img { |
| <style type="text/css"> | |
| @media only screen and (max-width: 768px) { | |
| /* For mobile phones: */ | |
| .xs-mobile-hide{ | |
| display:none !important} | |
| } | |
| @media only screen and (min-width: 769px) { | |
| /* For desktop phones: */ | |
| .xs-desktop-hide{ | |
| display:none !important} |