Skip to content

Instantly share code, notes, and snippets.

View cazepeda-zz's full-sized avatar

cazepeda cazepeda-zz

View GitHub Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@cazepeda-zz
cazepeda-zz / renaming-spaces-to-hypens
Created July 14, 2014 16:20
Renaming spaces to hypens on the command-line
for f in * ; do mv "$f" $( echo $f | tr ' ' '-' ) ; done
@cazepeda-zz
cazepeda-zz / yosemite-dark-light-prefs
Last active August 29, 2015 14:03
Yosemite Dark / Light Theme CLI Command
// Dark Theme
$ sudo defaults write /Library/Preferences/.GlobalPreferences AppleInterfaceTheme Dark
$ killall Dock; killall SystemUIServer
// Light Theme
$ sudo defaults write /Library/Preferences/.GlobalPreferences AppleInterfaceTheme Light
$ killall Dock; killall SystemUIServer
@cazepeda-zz
cazepeda-zz / gist:8876300
Created February 8, 2014 03:30
Open Dyslexic Bookmarklet
javascript:(function()%7Bvar%20s=document.createElement('link');s.setAttribute('href','http://dyslexicfonts.com/plugin/easyread.css');s.setAttribute('rel','stylesheet');s.setAttribute('type','text/css');document.getElementsByTagName('head')%5B0%5D.appendChild(s);%7D)();
@cazepeda-zz
cazepeda-zz / inject css bookmarklet
Created November 6, 2012 13:59
Inject CSS onto webpage
javascript:(function(){var s=document.createElement('link');s.setAttribute('href','http://websitename.com/styles.css');s.setAttribute('rel','stylesheet');s.setAttribute('type','text/css');document.getElementsByTagName('head')[0].appendChild(s);alert('Stylesheet injected!');})();
@cazepeda-zz
cazepeda-zz / window.location.href
Created October 28, 2012 02:02
Bookmarklet to append a string to the end of a URL
window.location.href
====================
Bookmarklet to append a string to the end of the URL.
1. Create bookmark.
2. Edit bookmark URL(Chrome) / Location(Firefox) to include this code: javascript:window.location.href=window.location.href+'REPLACETHIS';
3. Now make use of that bookmarklet.