Skip to content

Instantly share code, notes, and snippets.

View saitodisse's full-sized avatar

Julio M Saito saitodisse

  • Linx
  • São Paulo, Brasil
  • 08:02 (UTC -03:00)
View GitHub Profile
@saitodisse
saitodisse / one_line_util.md
Last active January 1, 2016 14:49
linux - my one-line reff

###shell

  • Install from INSTALLATION_FILE.tar.gz
    tar xzf INSTALLATION_FILE.tar.gz
    ./configure
    make
    sudo make install
@marioplumbarius
marioplumbarius / remover-acentos.js
Created October 10, 2013 18:27
Funcao marota para remover acentos de strings. Foi utilizado expressao regular em cima de caracteres representados na base hexadecimal.
/**
* Remove acentos de caracteres
* @param {String} stringComAcento [string que contem os acentos]
* @return {String} [string sem acentos]
*/
function removerAcentos( newStringComAcento ) {
var string = newStringComAcento;
var mapaAcentosHex = {
a : /[\xE0-\xE6]/g,
e : /[\xE8-\xEB]/g,
@metalivedev
metalivedev / gist:6085112
Created July 26, 2013 00:33
42 Layer Limit to AUFS using "base" image
Sample Dockerfile, then sample build output
#--------------
FROM base
RUN echo Layer 0 >> layerfile.txt
RUN echo Layer 1 >> layerfile.txt
RUN echo Layer 2 >> layerfile.txt
RUN echo Layer 3 >> layerfile.txt
RUN echo Layer 4 >> layerfile.txt
@tony4d
tony4d / p4merge4git.md
Created August 24, 2012 19:00
Setup p4merge as a visual diff and merge tool for git
@davatron5000
davatron5000 / gist:2254924
Created March 30, 2012 20:57
Static Site Generators

Backstory: I decided to crowdsource static site generator recommendations, so the following are actual real world suggested-to-me results. I then took those and sorted them by language/server and, just for a decent relative metric, their Github Watcher count. If you want a heap of other projects (including other languages like Haskell and Python) Nanoc has the mother of all site generator lists. If you recommend another one, by all means add a comment.

Ruby

@mxriverlynn
mxriverlynn / 1-ModelWithChangedEvents.js
Created June 15, 2011 03:12
simple backbone.js examples
var SomeModel = Backbone.Model.extend({});
someModel = new SomeModel();
someModel.bind("change", function(model, collection){
alert("You set some_attribute to " + model.get('some_attribute'));
});
someModel.set({some_attribute: "some value"});