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
# Deletes Spotify Cache | |
# (Run this when app starts running slow) | |
spotifycache() { | |
# (zshell only) Do not query the user before executing ‘rm *’ or ‘rm path/*’. | |
setopt localoptions rmstarsilent | |
# Clear cache files | |
\rm -fr ~/Library/Caches/com.spotify.client/Browser/* | |
\rm -fr ~/Library/Caches/com.spotify.client/Data/* | |
\rm -fr ~/Library/Caches/com.spotify.client/fsCachedData/* |
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
# ------------------------------------------------- | |
# Protect your .git directory! | |
# (You don't want anyone to download a copy of your website) | |
# ------------------------------------------------- | |
# Add to .htaccess | |
# For Apache 2.4 | |
<DirectoryMatch "^/.*/\.git/"> |
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
/** | |
* Replace Layer Name | |
* | |
* Paste here: | |
* /Applications/Adobe Photoshop Version/Presets/Scripts/Replace Layer Name.jsx | |
*/ | |
var docRef = app.activeDocument; | |
cTID = function(s) { return app.charIDToTypeID(s); }; |
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
include ShopifyAPI | |
# Reference: https://help.shopify.com/api/reference | |
objects = [ 'Blog', 'Article', 'Page', 'SmartCollection', 'Product', 'CustomCollection' ] | |
# Create directory if it doesn't exists | |
directory_name = "data" | |
Dir.mkdir(directory_name) unless File.exists?(directory_name) | |
# puts(variable); # Log |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |