Skip to content

Instantly share code, notes, and snippets.

View javasteve99's full-sized avatar

Steve Hickey javasteve99

View GitHub Profile
# GIT PUSH
$ git status $ g st // checks status of your current repo and branch
$ git add -A $ g aa // add all changed files to commit
$ git commit -m “message” $ g c “message” // commit to branch with commit message
$ git pull —rebase $ g plre // rewinds your commit, pulls previous commits from others, commits your changes
$ git push $ g ps // pushes files to master
$ git status $ g st // should now say “nothing to commit (working directory clean)”
generate random MAC address:
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'
Change current address to randomly generated one:
sudo ifconfig en0 ether <replace with new mac address>
@javasteve99
javasteve99 / crontab
Last active August 7, 2023 17:33
Blocked sites through host file === SUPER PRODUCTIVITY!!!
$ sudo crontab -e
# from https://unix.stackexchange.com/questions/41496/two-different-etc-hosts-depending-upon-the-time
0 9 * * 1-5 ln -f /etc/hosts_worktime /etc/hosts
0 16 * * 1-5 ln -f /etc/hosts_playtime /etc/hosts
@javasteve99
javasteve99 / grid.css
Created June 28, 2012 18:45
A method for creating a grid overlay on your site. Allows you to easily align design elements to your grid.
/* ==========================================================================
Grid Overlay Styles
Author: Steve Hickey | http://stevehickeydesign.com
Company: Fresh Tilled Soil | http://freshtilledsoil.com
========================================================================== */
div#gridOverlay {
position: absolute;
top: 0; right: 0; bottom: 0; left: 0;
width: 940px;
margin: 0 auto;
@javasteve99
javasteve99 / Preferences.sublime-settings
Last active October 6, 2015 13:28
Sublime Text 2 User Settings
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"draw_white_space": "all",
"font_face": "Source Code Pro Bold",
"font_size": 16.0,
"highlight_line": true,
"ignored_packages":
[