Skip to content

Instantly share code, notes, and snippets.

View marcelosantos's full-sized avatar

Marcelo Santos marcelosantos

View GitHub Profile
@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

Setup an IP address for bind rails start serve

rails s -b 192.168.2.1

Ordering result from a shell list directories by folder size

$ du -sh * | sort -h

Angular Google Maps Options

Hide controll

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

How to remove signature from apk files

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

Fix bower problem colision path cache

Change you .bowerrc like below

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

Show git config local

git config --local --list

Change author with amend

git commit --amend --author "New Author Name <[email protected]>" 
@marcelosantos
marcelosantos / Splash-screen-time.md
Last active May 5, 2017 16:05
Tip for ionic splash screen time

This is a workaround for issue with the white screen:

In config.xml file I have set:

preference name="SplashScreenDelay" value="20000"
preference name="SplashShowOnlyFirstTime" value="false" 
preference name="AutoHideSplashScreen" value="false"