Skip to content

Instantly share code, notes, and snippets.

@zegomesjf
zegomesjf / README-Template.md
Created May 29, 2018 14:25 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

# www.guepardolabs.com -> guepardolabs.com
# www.guepardolabs.com.br -> guepardolabs.com
# www.guepardolabs.net -> guepardolabs.com
# guepardolabs.com.br -> guepardolabs.com
# guepardolabs.net -> guepardolabs.com
require 'rack-rewrite'
use Rack::Rewrite do
r301 %r{.*}, 'http://guepardolabs.com$&', :if => Proc.new {|rack_env|
rack_env['SERVER_NAME'] != 'guepardolabs.com'
}
;var FooBar = (function($, window, document, undefined) {
'use strict';
/**
* Constructor method
*
* @author Gustavo Franco
* @since 2013-06-27
*/
function FooBar() {

Atualizando o branch de trabalho

Supondo que se está no branch de trabalho chamado work

git checkout master

git pull origin master

git checkout work

@zegomesjf
zegomesjf / remove_dups.rb
Created June 18, 2012 16:18 — forked from urubatan/remove_dups.rb
Ruby script to remove duplicated files, I created it when migrating my pictures collection from iPhoto to picasa, and merged some independent collections, it created a real mess, and the result of this big mess is this gist.
require 'digest/sha1'
require 'fileutils'
directories = [
"SOURCE DIR 1",
"SOURCE DIR 2"
]
files = {}
directories.each do |dir_name|
puts "Scanning Directory: #{dir_name} "
Dir.glob("#{dir_name}/**/*.*") do |file_name|