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 | |
echo "Updating nativefier globally" | |
npm update -g nativefier@latest | |
echo "nativefier updated" |
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 | |
echo "Updating node-sass globally" | |
npm update -g node-sass@latest | |
echo "node-sass updated" |
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 | |
echo "Updating stylelint globally" | |
npm update -g stylelint@latest | |
echo "stylelint updated" |
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
// ---- | |
// Sass (v3.3.0.rc.2) | |
// Compass (v1.0.0.alpha.17) | |
// Harsh (v1.0.0) | |
// ---- | |
@import "harsh"; | |
html, body { | |
height: 100%; |
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
* Download PhantomJS here http://phantomjs.org/download.html | |
* Unzip and move /phantomjs-X.x.X-macosx/bin/phantomjs to Macintosh HD/bin/ | |
* test at least "Hello World!" and "Page Loading" in some random folder on your HDD | |
* make sure nodejs is installed | |
* install [pa11y](https://github.com/nature/pa11y) with 'sudo npm install -g pa11y' | |
* try some examples | |
** hello.js | |
** screenshot.js | |
** $ pa11y www.sub.uni-goettingen.de | |
** $ pa11y -r csv www.sub.uni-goettingen.de > report.csv |
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
-- quick and dirty, but works with latest Google Chrome and Mac OS X as of march 2013 | |
set theReturn to "" | |
tell application "Google Chrome" | |
set frontIndex to active tab index of front window | |
set theUrl to URL of tab frontIndex of front window | |
set theTitle to title of tab frontIndex of front window | |
set theReturn to theReturn & "[" & theUrl & " " & theTitle & "]" | |
end tell | |
set the clipboard to theReturn |
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 | |
sudo tmutil enable | |
sleep 2 | |
sudo tmutil setdestination /Volumes/data/ | |
growlnotify -a 'Time Machine' -m 'Time Machine enabled and /Volume/data/ mounted' | |
sleep 20 | |
tmutil startbackup | |
growlnotify -a 'Time Machine' -m 'Starting Time Machine Backup' |
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
set the clipboard to «class ktxt» of ((the clipboard as text) as record) | |
set theUrl to (the clipboard) | |
open location theUrl |
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
tell application "iTunes" | |
if selection is not {} then | |
set allTracks to selection | |
repeat with this_track in allTracks | |
set the file_to_delete to (get location of this_track) | |
set thisOne to this_track | |
delete (some track of library playlist 1 whose database ID is (get database ID of thisOne)) | |
tell application "Finder" to delete the file_to_delete | |
end repeat | |
end if |
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
# ToC | |
* Color Picker | |
# Color Picker | |
CTRL + C |
NewerOlder