Skip to content

Instantly share code, notes, and snippets.

View heldr's full-sized avatar
🍵

Helder Santana heldr

🍵
View GitHub Profile
@heldr
heldr / gist:6720204
Created September 26, 2013 20:40 — forked from snit-ram/gist:4557947
/*
* Copyright (c) 2011 Yahoo! Inc. All rights reserved.
*/
/*jslint nomen: true */
(function () {
'use strict';
function mix(target, source){
@heldr
heldr / 10things.md
Last active December 19, 2015 10:09
10 things to avoid if you attend a JS event
  • Freak douchebag guy with bob marley backpack
  • Lose control once you see a girl
  • Say coffee as possesive name
@heldr
heldr / sshfs
Created October 12, 2012 01:33
Create ssh drive using sshfs
sudo gpasswd -a $USER fuse
mkdir ~/drive_dir
sshfs -o idmap=user $USER@my_ip:/path ~/drive_dir
#umount
fusermount -u ~/drive_dir
@heldr
heldr / Fedora_17_required_libs_for_PHPENVPHPBUILD
Created September 24, 2012 22:23
Fedora 17 required libs to run PHPENV/PHPBUILD
sudo yum install gcc gpp make libxml2 re2c bison.x86_64 libxml2 libxml2-devel-2.7.8-7.fc17.x86_64 openssl.x86_64 openssl-devel.x86_64 libcurl.x86_64 libcurl-devel.x86_64 imagemagick imagemagick turbojpeg-devel.x86_64 openjpeg-devel.x86_64 aspell-devel curl-devel cyrus-sasl-devel e2fsprogs-devel freetype-devel glibc-devel keyutils-libs-devel krb5-devel libgcc libidn-devel libjpeg-devel libpng-devel libselinux-devel libsepol-devel libstdc++-devel libX11-devel libXau-devel libXdmcp-devel libxml2-devel libXpm-devel mysql-devel net-snmp-devel openldap-devel openssl-devel tcp_wrappers zlib-devel libtomcrypt-devel.x86_64 libmcrypt-devel.x86_64 readline.x86_64 readline-devel.x86_64 sqlite.x86_64 sqlite2.x86_64 sqlite2-devel.x86_64 sqlite-devel.x86_64 libtidy-0.99.0-22.20091203.fc17.x86_64 libtidy-devel.x86_64 libxslt-devel.x86_64
@heldr
heldr / ux_referencias
Created September 10, 2012 14:55 — forked from eshiota/ux_referencias
UX para Developers - Referências
# UX para Developers - Referências
## Soluções prontas
- jQuery Mobile (http://www.jquerymobile.com)
- HTML 5 Boilerplate (http://html5boilerplate.com)
## Ferramentas
- Spin.js (http://fgnass.github.com/spin.js)
@heldr
heldr / addfont.cmd
Last active March 25, 2024 14:14
add windows fonts by command line
REM http://www.msfn.org/board/topic/119612-how-to-install-a-font-via-the-command-line/
@ECHO OFF
TITLE Adding Fonts..
REM Filename: ADD_Fonts.cmd
REM Script to ADD TrueType and OpenType Fonts for Windows
REM By Islam Adel
REM 2012-01-16
REM How to use:
@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
@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 / 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 / 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;}