Skip to content

Instantly share code, notes, and snippets.

Uilian Souza uilian

Block or report user

Report or block uilian

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
uilian / oracle-schema-objects-size.sql
Created Apr 26, 2018
Tamanho dos objetos em um schema oracle
View oracle-schema-objects-size.sql
-- Todos os objetos do schema
sum(bytes)/1024/1024/1024 schema_size_gig
group by
-- Tamanho por tipo de objeto
uilian /
Created Jan 26, 2018
Remove unused docker objects
#remove stoped containers
docker rm $(docker ps -a -q)
# remove images without references
docker rmi $(docker images -f "dangling=true" -q)
# remove volumes without references
docker volume rm $(docker volume ls -qf dangling=true)
uilian / docker-compose.yml
Created Jan 24, 2018
docker-compose nginx
View docker-compose.yml
version: '2'
image: nginx:stable-alpine
- ./code:/usr/share/nginx/html
- "8080:80"
uilian / python-server
Created Jan 23, 2018
Python as a HTTP server
View python-server
# Python has a HTTP server built into the
# standard library. This is super handy for
# previewing websites.
# Python 3.x
$ python3 -m http.server
# Python 2.x
$ python -m SimpleHTTPServer 8000
uilian / git diff
Created Nov 9, 2017
Git diff between branches
View git diff
# diff between two branches
git diff [commit id 1] [commit id 2]
# diff between current branch and another
git diff [commit id]
uilian / git log graph
Created Nov 9, 2017
Better git log graph
View git log graph
git log --all --graph --pretty=format:'%C(auto)%h%C(auto)%d %s %C(dim white)(%aN, %ar)'
uilian / files in git commit
Last active Nov 9, 2017
List files in git commit
View files in git commit
git diff-tree --no-commit-id --name-status -r [commit id]
# The --no-commit-id suppresses the commit ID output.
# The --pretty argument specifies an empty format string to avoid the cruft at the beginning.
# The --name-status argument shows the file names that were affected and the status.
# The -r argument is to recurse into sub-trees
uilian / git find file
Created Nov 9, 2017
Find file in git history
View git find file
git log --all --full-history -- [path/file]
uilian / index.html
Created Oct 20, 2017
Generate browser unique fingerprint
View index.html
src="" ></script>
<script type="text/javascript">
uilian /
Last active Sep 29, 2017
Run Genymotion emulator
# pass the device name as parameter
$GENY_HOME/player --vm-name $1
You can’t perform that action at this time.