Create an empty git repo or reinitialize an existing one
$ git initCreate an empty git repo or reinitialize an existing one
$ git init| alias dev="git checkout dev" | |
| alias master="git checkout master" | |
| alias pull="git pull" | |
| alias push="git push" | |
| alias fe="git fetch" | |
| git config --global alias.superlog "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(rese$ | |
| git config --global alias.superlog "log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all" |
| #! /bin/bash | |
| # [get_golang.sh](https://gist.github.com/n8henrie/1043443463a4a511acf98aaa4f8f0f69) | |
| # Download latest Golang release for AMD64 | |
| # https://dl.google.com/go/go1.10.linux-amd64.tar.gz | |
| set -euf -o pipefail | |
| # Install pre-reqs | |
| sudo apt-get install python3 git -y | |
| o=$(python3 -c $'import os\nprint(os.get_blocking(0))\nos.set_blocking(0, True)') |
| go*.linux-armv6l.tar.gz |
| import re | |
| import base64 | |
| from passlib.hash import pbkdf2_sha256, django_pbkdf2_sha256 | |
| from passlib.utils import to_bytes, to_native_str | |
| """ | |
| The django password property has the hash in base64, and the salt not, so, the salt must have to be pass to base64 format to make it work. | |
| auth:import y auth:export docs: https://firebase.google.com/docs/cli/auth?hl=es-419 |
| # NODE | |
| export PATH=$PATH:$HOME/workpace/node/node-v4.4.4-linux-x64/bin | |
| # https://github.com/nodejs/help/wiki/Installation | |
| ### How to install Node.js via binary archive on Linux? | |
| 1. Unzip the binary archive to any directory you wanna install Node, I use `/usr/lib/nodejs` | |
| ``` | |
| sudo mkdir /usr/lib/nodejs |
| #!/bin/bash | |
| sudo npm cache clean -f | |
| sudo npm install -g n | |
| sudo n stable | |
| if [[ ! -d "$NODE_PATH" ]]; then | |
| export NODE_PATH=/usr/local/lib/node_modules | |
| echo 'export NODE_PATH=/usr/local/lib/node_modules' >> ~/.bashrc | |
| fi |
| 'use strict'; | |
| angular.module('app',[ | |
| 'ngRoute', | |
| 'siteConfig', | |
| 'angular-loading-bar', | |
| 'filters', | |
| 'validators', | |
| 'firebase', | |
| 'routes', |