This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am gastonnina on github. | |
* I am gastonnina (https://keybase.io/gastonnina) on keybase. | |
* I have a public key ASApuYI9RGq-y86qWcHOe0Yody9qf4-8juDLSNpoV848xgo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# @author Gaston Nina | |
# Copy this to ".git/hooks" inside your current repo | |
# Permite buscar solo los que estan dentro de la carpeta sql y son nuevos, Estos son rodenandos a-z mejor si se pone notacion 20170801_01_algo.sql | |
files="$(git diff-tree -r --name-only --diff-filter=A HEAD^ HEAD | grep '^sql/' | sort -n)" | |
# dir_base="${PWD}/../../" | |
dir_base="${PWD}/" | |
# echo "dir_base-->$dir_base" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# check ubuntu version | |
lsb_release -a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
abstract class LogF{ | |
static $namefile; | |
static $fp; | |
public static function setFileName($nameFile='logf'){ | |
self::$namefile= $nameFile; | |
$file_log=self::$namefile.'_'.date('Ymd').'.txt'; | |
self::$fp= fopen($file_log, "a+"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#git | |
alias gupdate='sh /home/gaston/rutine/git.sh $1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$> printenv | |
$> source /home/usuario/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
les dejo un #tip sobre #git para ver datos de usuario "git var -l" |