Skip to content

Instantly share code, notes, and snippets.

View romelgomez's full-sized avatar
:octocat:
https://www.linkedin.com/in/romelgomez/

Romel Gomez romelgomez

:octocat:
https://www.linkedin.com/in/romelgomez/
View GitHub Profile
@romelgomez
romelgomez / install_java.md
Last active November 27, 2018 14:33
Install JAVA

Install JAVA

# update-alternatives --install /usr/bin/java java /home/romel/JAVA/jdk1.7.0_45/bin/java 0
# java -version
  • JDK Java SE Development Kit
  • JRE Java SE Runtime Environment
@romelgomez
romelgomez / .bashrc
Last active November 26, 2018 20:21
Install NODE
# 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
@romelgomez
romelgomez / import_django_to_firebase.py
Created February 19, 2019 17:29
Import user of django to firebase
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
@romelgomez
romelgomez / .gitignore
Created September 9, 2019 02:12 — forked from n8henrie/.gitignore
Download and install Golang for Raspberry Pi
go*.linux-armv6l.tar.gz
@romelgomez
romelgomez / get_go.sh
Created September 9, 2019 02:12 — forked from Zate/get_go.sh
Shell script to download and install latest golang
#! /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)')
@romelgomez
romelgomez / superlog
Created October 10, 2019 18:00 — forked from gollum23/superlog
Superlog Curso git platzi
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"
@romelgomez
romelgomez / .bashrc
Created October 10, 2019 18:07
alias
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$
@romelgomez
romelgomez / gitcom.md
Created October 10, 2019 20:08 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

$ git init
@romelgomez
romelgomez / automation.md
Created October 10, 2019 20:09 — forked from cube-drone/automation.md
Automation For The People

Automation for the People

Long ago, the first time I read "The Pragmatic Programmer", I read some advice that really stuck with me.

"Don't Use Manual Procedures".

This in the chapter on Ubiquitous Automation. To summarize, they want you to automate all the things.

The trouble was that I hadn't much of an idea how to actually go

@romelgomez
romelgomez / docker.md
Created October 10, 2019 20:10 — forked from f3l1x/aliases
Docker - installation, tips, commands, aliases

Docker

Shortcuts

$ curl -fsSL https://raw.github.com/tcnksm/docker-alias/master/zshrc >> ~/.bashrc && source ~/.bashrc
# ------------------------------------