Skip to content

Instantly share code, notes, and snippets.

View GarciaSouza's full-sized avatar

Garcia Souza GarciaSouza

  • São Paulo, Brasil
View GitHub Profile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
alias gs='git status'
alias gsw='git show'
alias ga='git add'
alias gap='git add --patch'
alias gl='git log'
alias gpl='git pull'
alias gps='git push'
alias gc='git commit'
alias gck='git checkout'
alias gck-='git checkout --'
https://code.facebook.com/projects/
https://github.com/spotify
https://github.com/Netflix
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
EmployeeCollection.GroupBy(x => new{x.fName, x.lName}).Select(g => g.First());
@GarciaSouza
GarciaSouza / gist:3742915
Created September 18, 2012 12:49
Sublime Text 2 Install Script on Ubuntu 12
tar xf "Sublime Text 2.0.1 x64.tar.bz2"
mv "Sublime Text 2" "/opt/sublime_text_2"
echo "PATH=\$PATH:/opt/sublime_text_2" >> ~/.bashrc
source ~/.bashrc
@GarciaSouza
GarciaSouza / gist:2967776
Created June 21, 2012 18:55
base64 to decode
ZnJlcXVlbmNpYS92X2xpc3RhZGlzY2NvbmZwcmVzZW5jYS5waHA=
ZnJlcXVlbmNpYS92X2xpc3RhYWx1bm9zZnJlcXVlbmNpYS5waHA=
ZnJlcXVlbmNpYS92X2xpc3RhYWx1bm9zZnJlcXVlbmNpYS5waHA=
@GarciaSouza
GarciaSouza / gist:2950102
Created June 18, 2012 19:03
Oracle PT-BR Date
select to_char(sysdate, 'DD "de" fmMonth "de" YYYY','NLS_DATE_LANGUAGE=PORTUGUESE') from dual;
@GarciaSouza
GarciaSouza / gist:2950097
Created June 18, 2012 19:03
Oracle Version Query
select * from v$version where banner like 'Oracle%';
@GarciaSouza
GarciaSouza / gist:2950082
Created June 18, 2012 19:02
Oracle Resource Query
SELECT RESOURCE_NAME, LIMIT FROM DBA_PROFILES
WHERE PROFILE='DEFAULT';
ALTER USER [USERNAME] IDENTIFIED BY [PASSWORD] ACCOUNT UNLOCK;