Skip to content

Instantly share code, notes, and snippets.

View ef2k's full-sized avatar
🏀

Eddie Flores ef2k

🏀
  • Brooklyn, NY
View GitHub Profile
@ef2k
ef2k / gist:4013443
Created November 4, 2012 20:08
Fix for slow network reconnection after suspend
change in /usr/lib/pm-utils/sleep.d/55NetworkManager
from:
thaw|resume)¶
resume_nm¶
to:
thaw|resume)¶
@ef2k
ef2k / usr_bin_subl.sh
Last active August 10, 2016 20:16
Detach sublime from terminal (/usr/bin/subl)
#!/bin/bash
# Detach sublime from terminal
nohup /opt/sublime_text_2/sublime_text --class=sublime-text-2 "$@" 2>/dev/null &
@ef2k
ef2k / regulate_usage.js
Last active December 15, 2015 12:09
Sample usage for Regulate.
// usage.js
$(function() {
Regulate('sampleForm',
[{
name: 'username',
min_length: 6,
max_length: 18,
display_as: 'Username',
@ef2k
ef2k / regulate_usage.html
Last active December 15, 2015 14:19
sample usage html
<form id="sampleForm">
<input type="text" name="username" placeholder="Username"/>
<div id="username-error" class="help-inline cr-error"></div>
<input type="text" name="email" placeholder="Email"/>
<div id="email-error" class="help-inline cr-error"></div>
<input type="password" name="password1" placeholder="Password"/>
<div id="password1-error" class="help-inline cr-error"></div>
@ef2k
ef2k / howtoReleaseAtmosphere
Created June 24, 2013 04:03
Releasing to atmosphere
* Update version on smart.json
* Commit and push to master
* Do `mrt release .`, it will tag and publish to atmosphere.
@ef2k
ef2k / gist:6203981
Created August 11, 2013 08:24
iPlastic2 - Sublime color scheme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Eddie Flores, Jeroen van der Ham</string>
<key>name</key>
<string>iPlastic2</string>
<key>settings</key>
<array>
* SublimeLinter
* Minifier
* Emmet
* Emmet CSS
* GitGutter
* Color Highlighter
* LiveReload
* Markdown
@ef2k
ef2k / github-icon.css
Created August 31, 2013 17:08
Cool little Github Icon
.icon-github {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9wJGBYxHYxl31wAAAHpSURBVDjLpZI/aFNRFMZ/973bJqGRPopV4qNq/+SpTYnWRhCKilShg9BGcHOM+GfQoZuLk4iLgw4qZNBaHLuIdBNHl7Ta1qdNFI3SihnaNG1MpH3vuiQYQnwZvHCG893zffc751z4z6PX5T5gA1DAKnAaOAQEgAfAVeCpl+CeCrlRuEC6maO4h0A1wl4tPAHMqNUthvrDdHYY7A3t4rDVjeO6rBU2FaABM1WCrBNoi48Mi+nH9yj+KtPibAKwJXfQ5vcRG7soUnYmWEuQgAEIYBv4cGpoILI0Z4tyYYPegS6UguyijZQ6J45GSNmZHzUcJYD2ii2Ajv7efZ8WZ6ZwXFj79hXpayW4O0SL1Nl/8jzZlZ9dQLFS70pgvZKIyGD0yvu5eRmMnrk1PjI81ir1qBACTdPevXj95mVuNX8XKDQc/+T334bZZ104cvzYw2s3J3qAL5WXSsDbf61NNMBu+wOBs+VSyQ84Nfhg028ZGx3/qyy0lC7lgi7lghBitoon03lvB8l0/k7Wnk+8mny0cyXzEcfZxgwfZPTyRMHsOzAFXE9YhtNQIJnOx4FpJXT1eSkn2g0frqMoFrfoCXcqlCOAGwnLuO/l4JymcWl5uRxzXUKghBAiZ5r+WaV4lrCM555zqO+x2d0ftGmpiA/0k70AAAAASUVORK5CYII=);
width: 16px;
height: 16px;
display: inline-block;
}
@ef2k
ef2k / gist:6956450
Created October 13, 2013 00:12
Git config to push to multiple destinations.
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "all"]
url = git@github.com:3DprintFIT/skeinforge-online.git
url = ssh://f52a1f8774514090a8f72131741fee7f@skeinforge-hroncok.rhcloud.com/~/git/skeinforge.git/
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
@ef2k
ef2k / gist:7157599
Created October 25, 2013 16:33
Clone and add remote branches to your project.
git clone https://github.com/brooklyndevs/metroly-html5.git
git branch dev origin/dev
# At this point you have master and dev branch
# You can check what branch you are on by typing:
git branch
# To switch between branches use the git checkout followed by the branch name:
git checkout dev