Skip to content

Instantly share code, notes, and snippets.

View tiagofaustino's full-sized avatar

Tiago Faustino tiagofaustino

View GitHub Profile
@whoisryosuke
whoisryosuke / Update-branch.md
Created September 17, 2019 17:38 — forked from santisbon/Update-branch.md
Bring your feature branch up to date with master. Deploying from Git branches adds flexibility. Bring your branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master

@rise-worlds
rise-worlds / For Mac 4.2.6 unlimited trial.md
Last active October 11, 2025 13:58 — forked from satish-setty/trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
@rponte
rponte / query-at-least-one-row.sql
Last active September 16, 2019 20:54
Oracle: generating at least one row in SQL
select b.*
from (
select 1 as ignore_me from dual
) a
LEFT JOIN (
-- your real query goes here
select cc.cod_filial as filial
,cc.cod_forca_venda as forca_venda
,cl.cod_cnpj_cliente as cliente_cnpj
from tb_clientes_crescimento cc
@rponte
rponte / import-certificate-to-all-cacerts.sh
Last active March 26, 2021 17:28
How to import a certificate into Java Certificates (cacerts)
# dica do Steimntz Figueiredo (@SaXeTz)
# https://twitter.com/saxetz/status/1070400310286389249?s=11
find / -name cacerts 2>/dev/null | xargs -I{} keytool -import -trustcacerts -alias paloalto -file SEU.CRT -storepass changeit -keystore {} --noprompt
@rponte
rponte / App.java
Last active August 10, 2018 23:29
Example of Environment class
/**
* Exemplo de uso
*/
public class App {
public static void main(String[] args) {
System.setProperty(EnvironmentFactory.ENV_VAR, "development"); // define ambiente
System.setProperty("support_mail", "[email protected]");
@steinwaywhw
steinwaywhw / Config.groovy
Created June 27, 2014 14:36
Sample log4j configuration for Grails application
import org.apache.log4j.*
import grails.util.Holders
myconfig {
myvariable {
workdir = 0
}
}
log4j = {
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007
@klauswuestefeld
klauswuestefeld / gist:1595701
Created January 11, 2012 17:22
O Ciclo Vicioso Do Software Retranqueiro
We couldn’t find that file to show.
@sergiolopes
sergiolopes / Periodo.java
Created October 19, 2009 21:32
exemplo de classe imutável usando flyweight
import java.util.Calendar;
public final class Periodo {
private final Calendar inicio;
private final Calendar fim;
public Periodo(Calendar inicio, Calendar fim) {
this((Calendar) inicio.clone(), (Calendar) fim.clone(), false);
}