I hereby claim:
- I am nilswindisch on github.
- I am nilswindisch (https://keybase.io/nilswindisch) on keybase.
- I have a public key whose fingerprint is CB23 39F2 53C3 566B 401C 5FB9 86D0 0E68 16AD 39F8
To claim this, I am signing this object:
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 |
set the clipboard to «class ktxt» of ((the clipboard as text) as record) | |
set theUrl to (the clipboard) | |
open location theUrl |
#!/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' |
-- 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 |
* 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 |
// ---- | |
// Sass (v3.3.0.rc.2) | |
// Compass (v1.0.0.alpha.17) | |
// Harsh (v1.0.0) | |
// ---- | |
@import "harsh"; | |
html, body { | |
height: 100%; |
# ToC | |
* Focus Sidebar | |
* open File | |
* Pretty Print JSON | |
* Toggle Sidebar | |
* Wrap in Tag | |
## Focus Sidebar | |
CTRL + 0 |
I hereby claim:
To claim this, I am signing this object:
# ToC | |
* Color Picker | |
# Color Picker | |
CTRL + C |
#!/bin/bash | |
echo "Updating stylelint globally" | |
npm update -g stylelint@latest | |
echo "stylelint updated" |