Skip to content

Instantly share code, notes, and snippets.

View heldr's full-sized avatar
🍵

Helder Santana heldr

🍵
View GitHub Profile

SSHFS on OSX Lion with Homebrew

NOTE: If you recently upgrade to Mountain Lion you probably need fix Homebrew + GCC

Change the /usr/local permission to yourself:

$ chown -R `whoami` /usr/local

Make sure you have a clean installation, if you had installed MacFuse before or you need uninstall it first:

@heldr
heldr / SassMeister-input-HTML.html
Created June 3, 2014 21:53
Generated by SassMeister.com.
<article class="post">
<h1 class="post__title">Title</h1>
<picture class="post__picture">
<img src="article/picture.jpg" alt="Something" />
</picture>
<p class="post__description">
Lorem ipsum...
</p>
</article>
<article class="post post--highlight">
@heldr
heldr / gist:bfa814b7350559823112
Created September 30, 2014 21:58
Togglable CSS Debug bookmarklet
//based on https://gist.github.com/addyosmani/fd3999ea7fce242756b1
javascript:!function(a){for(a.__CSSDebug__=!a.__CSSDebug__,i=0;A=document.all[i++];)A.style.outline=a.__CSSDebug__?"solid hsl("+9*(A+A).length+",99%,50%)1px":null}(window);
@heldr
heldr / dabblet.css
Created April 29, 2012 01:39
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@heldr
heldr / dabblet.css
Created April 29, 2012 05:30
Untitled
/*Blueprint CSS Reset
http://blueprintcss.org*/
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}
body {line-height:1.5;}
table {border-collapse:separate;border-spacing:0;}
caption, th, td {text-align:left;font-weight:normal;}
table, td, th {vertical-align:middle;}
blockquote:before, blockquote:after, q:before, q:after {content:"";}
blockquote, q {quotes:"" "";}
a img {border:none;}
@heldr
heldr / dabblet.css
Created April 29, 2012 04:45
Untitled
/*Blueprint CSS Reset
http://blueprintcss.org*/
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}
body {line-height:1.5;}
table {border-collapse:separate;border-spacing:0;}
caption, th, td {text-align:left;font-weight:normal;}
table, td, th {vertical-align:middle;}
blockquote:before, blockquote:after, q:before, q:after {content:"";}
blockquote, q {quotes:"" "";}
a img {border:none;}
@heldr
heldr / dabblet.css
Created April 29, 2012 05:38
Untitled
/*Blueprint CSS Reset
http://blueprintcss.org*/
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}
body {line-height:1.5;}
table {border-collapse:separate;border-spacing:0;}
caption, th, td {text-align:left;font-weight:normal;}
table, td, th {vertical-align:middle;}
blockquote:before, blockquote:after, q:before, q:after {content:"";}
blockquote, q {quotes:"" "";}
a img {border:none;}
@heldr
heldr / windowAttentionHandler.js
Created July 3, 2012 19:21
Avoid skype window attention on Cinnamon
// sudo vim /usr/share/cinnamon/js/ui/windowAttentionHandler.js
_onWindowDemandsAttention : function(display, window) {
// We don't want to show the notification when the window is already focused,
// because this is rather pointless.
// Some apps (like GIMP) do things like setting the urgency hint on the
// toolbar windows which would result into a notification even though GIMP itself is
// focused.
// We are just ignoring the hint on skip_taskbar windows for now.
@heldr
heldr / file.js
Created July 30, 2012 03:51
file utils
var request = require('request'),
fs = require('fs');
module.exports = {
getRemoteContent: function( url, cb, browserUserAgent){
var requestConfig = {
uri : url
}
if ( browserUserAgent ) {
@heldr
heldr / apacheSetup
Created August 17, 2012 19:26 — forked from caycefischer/apacheSetup
Apache Setup (Mountain Lion)
# a script following this guide:
# http://coolestguyplanettech.com/downtown/install-and-configure-apache-mysql-php-and-phpmyadmin-osx-108-mountain-lion
# for enabling apache on OS X Mountain Lion
# ---
#start up apache
sudo apachectl start
# create ~/Sites