This file contains hidden or 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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class Pages extends CI_Controller { | |
public function __construct() { | |
parent::__construct(); | |
session_name('lpi_luiscoms'); //load session name | |
session_start(); | |
} |
This file contains hidden or 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
/** | |
* Allow server to debug information | |
*/ | |
SET SERVEROUTPUT ON; | |
DECLARE | |
crCursor SYS_REFCURSOR; | |
res VARCHAR2(200); | |
BEGIN |
This file contains hidden or 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 | |
# replace config | |
REMOTEUSER="luiscoms" | |
REMOTEHOST="example.com" | |
# generate ssh key if not exits | |
if [ ! -f ~/.ssh/id_dsa.pub ];then | |
ssh-keygen -t dsa | |
fi |
This file contains hidden or 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/sh | |
usage() { | |
mesy "Usage: "`basename $0`" -p <project> -b <branch> -t <tag> | |
" | |
} | |
# green | |
mesg() { | |
[ -t 1 ] && echo "\033[1;32m#####" $* "#####\033[0m" || echo -n "#####" $* "#####" |
This file contains hidden or 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
[user] | |
name = Luis Fernando Gomes | |
email = [email protected] | |
[core] | |
ignorecase = false | |
[push] | |
default = current |
This file contains hidden or 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
. "$HOME/.improvedbash/pretty-log.sh" | |
. "$HOME/.improvedbash/selfupdate.sh" -d | |
. "$HOME/.improvedbash/colors.sh" | |
. "$HOME/.improvedbash/ps1.sh" | |
# colorize bash commands | |
if uname -a | grep -qi linux; then | |
eval `dircolors -b` | |
alias ls='ls --color=auto' |
NewerOlder