Skip to content

Instantly share code, notes, and snippets.

View paoloumali's full-sized avatar

Paolo Umali paoloumali

View GitHub Profile
@paoloumali
paoloumali / gist:0e5640634591a96843c0
Created August 15, 2014 03:53
fix phpunit git bash colors
Just like what they said, this worked for me.
Go to .bashrc in your ~/ directory and add
alias phpunitc="phpunit "$@" 2>&1 | perl -pe 's/(?<=\e[)2;//g'"
Then I just use phpunitc in git bash.
@paoloumali
paoloumali / gist:bd1887afd67601f4bd86
Last active August 29, 2015 14:05
composer php56
cd $HOME
ln -s `which php56` ~/bin/php
export PATH=$HOME/bin:$PATH
curl -sS https://getcomposer.org/installer | php56
echo -e "\n# Composer\nalias composer=\"php56 \$HOME/composer.phar\"" >> $HOME/.bash_profile
source $HOME/.bash_profile
@paoloumali
paoloumali / gist:0575674af6234e910b70
Last active August 29, 2015 14:06
Working with the soon-to-be-released Laravel 5

Start new l5 project

  • $ git touch readme.md
  • $ git ac 'start'
  • $ git remote add laravel https://github.com/laravel/laravel.git
  • $ git fetch laravel --no-tags
  • $ git checkout -b laravel5
  • $ git merge laravel/develop
  • $ git checkout -b dev
  • $ git checkout master
@paoloumali
paoloumali / gist:306bfc1ca18f4b23f3d3
Last active August 29, 2015 14:06
Domain Specific Language (DSL)
Modelling domain
- https://www.youtube.com/watch?v=lm4jEcnWeKI
- an attempt to represent real world situation in a way that is easier to consume for programming
- makes complex problems simpler
- used in solving the problem
Test Driven Development (TDD) - writing tests by yourself
Behavioral Driven Development (BDD) - customer tests
@paoloumali
paoloumali / gist:86f69a7717207e082ea9
Created January 19, 2015 05:11
Philippine provinces
<select class="gwt-ListBox" id="gwt-debug-latin-individual-address_form_admin_area_input"><option value="Abra">Abra</option><option value="Agusan del Norte">Agusan del Norte</option><option value="Agusan del Sur">Agusan del Sur</option><option value="Aklan">Aklan</option><option value="Albay">Albay</option><option value="Antique">Antique</option><option value="Apayao">Apayao</option><option value="Aurora">Aurora</option><option value="Basilan">Basilan</option><option value="Bataan">Bataan</option><option value="Batanes">Batanes</option><option value="Batangas">Batangas</option><option value="Benguet">Benguet</option><option value="Biliran">Biliran</option><option value="Bohol">Bohol</option><option value="Bukidnon">Bukidnon</option><option value="Bulacan">Bulacan</option><option value="Cagayan">Cagayan</option><option value="Camarines Norte">Camarines Norte</option><option value="Camarines Sur">Camarines Sur</option><option value="Camiguin">Camiguin</option><option value="Capiz">Capiz</option><option value="C
@paoloumali
paoloumali / gist:078fe76e45f2038893ce
Created January 26, 2015 08:26
xampp: allow remote/non-local access
comment out the following:
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
@paoloumali
paoloumali / errands.md
Last active May 8, 2020 00:28
Salesforce errands
  • Setup Chatter
    • enable OOO for users
    • branding email settings
    • lead, in feed, feed tracking what I follow
  • Salesforce Access
    • Organization (IP ranges, login hours)
    • Object (profiles access, permissions)
    • Roles
  • Field access- field-level security
@paoloumali
paoloumali / SSH.md
Last active May 13, 2020 16:52
SSH keys
ssh-keygen -t rsa -b 4096 -C "paoloumali" -f id_paoloumali
@paoloumali
paoloumali / .vimrc
Last active May 13, 2020 16:50
Vim
"copy pasting
noremap <Leader>y "*y
noremap <Leader>p "*p
noremap <Leader>Y "+y
noremap <Leader>P "+p
@paoloumali
paoloumali / utils-installation.md
Last active May 15, 2020 20:41
Installing utilities in ubuntu 20.04

Node

Composer

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer