Source: https://opensource.com/business/16/2/top-6-open-source-crm-tools-2016
EspoCRM `github.com/espocrm/espocrm`_ PHP http://www.espocrm.com
ZSH_THEME="agnoster" | |
plugins=(git ssh-agent) | |
export DISABLE_UPDATE_PROMPT=true |
Host github.com | |
User git | |
Hostname github.com | |
PreferredAuthentications publickey | |
IdentityFile ~/.ssh/github-asus |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" | |
" ██╗ ██╗██╗███╗ ███╗██████╗ ██████╗ | |
" ██║ ██║██║████╗ ████║██╔══██╗██╔════╝ | |
" ██║ ██║██║██╔████╔██║██████╔╝██║ | |
" ╚██╗ ██╔╝██║██║╚██╔╝██║██╔══██╗██║ | |
" ╚████╔╝ ██║██║ ╚═╝ ██║██║ ██║╚██████╗ | |
" ╚═══╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ | |
" | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
if [ -z "$SSH_AUTH_SOCK" ] ; then | |
eval `ssh-agent -s` | |
ssh-add | |
fi |
--- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md | |
--- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192 | |
-- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB. | |
------------ | |
-- Basics -- | |
------------ | |
-- Get indexes of tables |
<?php | |
// routes/console.php | |
// quickly create an user via the command line | |
Artisan::command('user:create', function () { | |
$name = $this->ask('Name?'); | |
$email = $this->ask('Email?'); | |
$pwd = $this->ask('Password?'); | |
// $pwd = $this->secret('Password?'); // or use secret() to hide the password being inputted | |
\DB::table('users')->insert([ |
<?php | |
/** | |
* Error Log Tail | |
* @author Gustavo Novaro | |
* @version 1.0.3 | |
* Set in php.ini error_log= | |
*/ | |
// Linux Path | |
$log_path = '/var/log/php_error.log'; | |
// Windows path |
#!/bin/bash | |
# One Click LAMP Server Installer (Ubuntu/Debian) - Roskus | |
# @author Gustavo Novaro | |
# @version 3.3.1 | |
# @url https://gist.github.com/gnovaro/5295150774be1794028c15c83313c16e | |
# Run: sudo ./lamp_setup.sh | |
############################################### | |
#Servidor Web http | |
apt-get install -y nginx |
function formatCrediCard(cardtype, number) | |
{ | |
let format; | |
if(cardtype == 'amex') | |
{ | |
//XXXX XXXXXX XXXXX | |
format = number.substr(0,4)+" "+number.substr(4,6)+" "+number.substr(10,5); | |
} else { | |
//XXXX XXXX XXXX XXXX | |
format = number.substr(0,4)+" "+number.substr(4,4)+" "+number.substr(8,4)+" "+number.substr(12,4); |