Skip to content

Instantly share code, notes, and snippets.

View aramirez-es's full-sized avatar

Alberto Ramírez aramirez-es

View GitHub Profile

Keybase proof

I hereby claim:

  • I am aramirez-es on github.
  • I am aramirez_ (https://keybase.io/aramirez_) on keybase.
  • I have a public key whose fingerprint is 4897 EF85 15F4 0EB7 EDC0 D71A E111 E8CE E1D9 1D7B

To claim this, I am signing this object:

@aramirez-es
aramirez-es / .gitconfig
Last active March 31, 2016 13:52
git alias
[alias]
st = status --short
hist = log --color --graph --pretty=format:'%C(yellow)%h%Creset -%C(red)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
ls = log --pretty=format:\"%C(yellow)%h\\ %C(green)%ad%C(red)%d\\ %C(reset)%s%C(blue)\\ <%cn>\" --decorate --date=iso
c = config --global
la = !git config --get-regexp 'alias.*' | colrm | sed 's/[ ]/ = /'
alias = !git config --get-regexp 'alias.*' | colrm | sed 's/[ ]/ = /'
co = checkout
cb = checkout -b
ci = commit
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
<?php
// 1. Testing with a String.
php > var_dump( (object) "Hi Pedro" );
/* OUTPUT:
object(stdClass)#1 (1) {
["scalar"]=>
string(8) "Hi Pedro"
}
*/
# config/doctrine/schema.yml
Category:
columns:
id:
type: integer(11)
notnull: true
autoincrement: true
primary: true
unsigned: true