Skip to content

Instantly share code, notes, and snippets.

View marcelosantos's full-sized avatar

Marcelo Santos marcelosantos

View GitHub Profile

Show git config local

git config --local --list

Change author with amend

git commit --amend --author "New Author Name <[email protected]>" 

Fix bower problem colision path cache

Change you .bowerrc like below

{
  "directory": "YOU_PATH_FOR_LIBs",
  "storage": {
    "packages": ".bower-cache",
    "registry": ".bower-registry"
 },

How to remove signature from apk files

$ zip -d HelloWorld-new.apk META-INF/*

Angular Google Maps Options

Hide controll

$scope.map = {
        center: {
            latitude: -3.7718620,
            longitude: -38.5266700
        },

Ordering result from a shell list directories by folder size

$ du -sh * | sort -h

Setup an IP address for bind rails start serve

rails s -b 192.168.2.1

@marcelosantos
marcelosantos / Adding-modified-files-to-stage.md
Created May 12, 2017 19:21
Adding only modified files to git stage

Adding only modified files to git stage

git ls-files --modified | xargs git add

@marcelosantos
marcelosantos / upgrade-postgres-9.3-to-9.5.md
Created June 2, 2017 11:21 — forked from johanndt/upgrade-postgres-9.3-to-9.5.md
Upgrading PostgreSQL from 9.3 to 9.5 on Ubuntu

TL;DR

Install Postgres 9.5, and then:

sudo pg_dropcluster 9.5 main --stop
sudo pg_upgradecluster 9.3 main
sudo pg_dropcluster 9.3 main