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
#Gleemed from atom site: https://discuss.atom.io/t/how-to-completely-uninstall-atom-for-mac/9084/12 | |
rm -rf ~/.atom | |
rm /usr/local/bin/atom | |
rm /usr/local/bin/apm | |
rm ~/Library/Preferences/com.github.atom.plist | |
rm -rf ~/Library/Application Support/com.github.atom.ShipIt | |
rm -rf ~/Library/Application Support/Atom/ |
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
#Gleemed from stackoverflow: http://stackoverflow.com/questions/17625622/how-to-completely-uninstall-android-studio | |
rm -Rf /Applications/Android\ Studio.app | |
rm -Rf ~/Library/Preferences/AndroidStudio* | |
rm ~/Library/Preferences/com.google.android.studio.plist | |
rm -Rf ~/Library/Application\ Support/AndroidStudio* | |
rm -Rf ~/Library/Logs/AndroidStudio* | |
rm -Rf ~/Library/Caches/AndroidStudio* | |
#if you would like to delete all projects: |
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 |
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
// Shia Do-It motivational overlay | |
// Found @ https://github.com/etaheri/do-it-chrome-extension | |
// Forked here https://github.com/ubergoob/do-it-chrome-extension | |
// assets can be gotten from either. | |
// Edit path to the video and the selector to hook. | |
<div class="shia-do-it"><div class="container"><video width="960" height="540" name="media" src="http://HOST/PATH/output.webm" style="visibility: hidden;"><source type="video/webm"></video></div></div> | |
<script type="application/javascript"> | |
$(document).ready(function() { |
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
#run command from root of node project after npm install has been run. | |
ls node_modules | xargs -I % grep \"_id\" node_modules/%/package.json |
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
#clear you npm cache | |
sudo npm cache clean -f | |
#install "n" (this might take a while) | |
sudo npm install -g n | |
#upgrade to lastest version | |
sudo n stable |
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
/* | |
The below img error snippet will instantly hide any broken image placeholders | |
although it appears there's extra steps happening here (hidding and unhiding), | |
The reason is that the split second delay of reloading a new placeholder image | |
can cause the ugly missing image placeholder to flash if we don't hide it instantly on err. | |
*/ | |
$("img").error(function () { | |
$(this).css({visibility:"hidden"}); | |
$(this).attr({src:'/images/theme/no_logo_placeholder.png'}); |
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
app.use(function(req, res, next) { | |
res.header("Access-Control-Allow-Origin", "*"); | |
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); | |
next(); | |
}); |
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
var app = express(); | |
app.use(function (req, res, next) { | |
res.setHeader('Access-Control-Allow-Origin', req.headers.origin); | |
res.setHeader('Access-Control-Allow-Methods', 'GET, POST, OPTIONS, PUT, PATCH, DELETE'); | |
res.setHeader('Access-Control-Allow-Headers', 'X-Requested-With,content-type'); | |
next(); | |
}); |
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
defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES |