Skip to content

Instantly share code, notes, and snippets.

View venturion's full-sized avatar

Felipe Venturino venturion

View GitHub Profile
@venturion
venturion / str_replace_n.php
Created August 19, 2021 20:30 — forked from VijayaSankarN/str_replace_n.php
String replace nth occurrence using PHP
<?php
/**
* String replace nth occurrence
*
* @param type $search Search string
* @param type $replace Replace string
* @param type $subject Source string
* @param type $occurrence Nth occurrence
* @return type Replaced string
*/
@venturion
venturion / Deploy com Git
Created August 12, 2021 17:23 — forked from alanyoshida/Deploy com Git
Como fazer deploy para o servidor com o git
###############################################
# Como fazer deploy para o servidor com o git #
###############################################
# Na sua Maquina
# Crie uma pasta
$ mkdir repo && cd repo
# Inicie um repositorio vazio
@venturion
venturion / baixar_arquivos_do_repositorio_remoto.txt.txt
Last active October 18, 2020 00:58 — forked from vladimirtsyupko/gist:10964772
Git force pull to overwrite local files
git fetch --all
git reset --hard origin/master
git pull origin master