Skip to content

Instantly share code, notes, and snippets.

View razola's full-sized avatar

Sebastian Razola razola

View GitHub Profile
@razola
razola / gist:083f2f8557a3266659348ad491a2870d
Created March 16, 2017 10:00
fried-chicken-and-pizza-kissimmee.json
{
"is_closed": false,
"photos": [
"https://s3-media2.fl.yelpcdn.com/bphoto/3bsM4hvPGSRpoTg1M85CZw/o.jpg"
],
"transactions": [],
"review_count": 1,
"name": "Fried Chicken & Pizza",
"is_claimed": false,
"location": {
@razola
razola / ToggleDesktop.scpt
Created December 7, 2011 17:31
Applescript that toggles the desktop
try
do shell script "defaults read com.apple.finder CreateDesktop"
do shell script "defaults delete com.apple.finder CreateDesktop"
on error
do shell script "defaults write com.apple.finder CreateDesktop -bool FALSE"
end try
tell application "Finder" to quit
delay 0.5
tell application "Finder" to launch
@razola
razola / ToggleHiddenFiles.scpt
Last active February 18, 2017 22:51
Applescript that toggles hidden files
try
set state to do shell script "defaults read com.apple.finder AppleShowAllFiles" as string
if state is "OFF" then
do shell script "defaults write com.apple.finder AppleShowAllFiles ON"
else
do shell script "defaults write com.apple.finder AppleShowAllFiles OFF"
end if
on error
do shell script "defaults write com.apple.finder AppleShowAllFiles ON"
end try