Skip to content

Instantly share code, notes, and snippets.

Automating things!

Evert Ramos evertramos

Automating things!
View GitHub Profile
iamnewton /
Last active May 26, 2022
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
mvadu / grafana custom.ini
Last active May 5, 2022
nginx config for using grafana, Influxdb via reverse proxy with authentication
View grafana custom.ini
# The full public facing url
#root_url = %(protocol)s://%(domain)s:%(http_port)s/
root_url = http://localhost:80/grafana/
coolaj86 /
Last active Apr 30, 2022
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm config set "Your Name"
npm config set ""
npm config set "https:/"

npm config set init.version "1.0.0"
samsch /
Last active Jan 20, 2021
Run a postgres container and connect with pgadmin (in another container)

Start a postgres server:

docker run -v postgres:/var/lib/postgresql/data --name postgres-test -e POSTGRES_PASSWORD=mysecretpassword -d postgres

Start pgadmin

Connect with a one-off docker container in current process:

docker run -v pgadmin4:/home/pgadmin/.pgadmin -p 5050:5050 --link postgres-test:postgres-test --rm meedan/pgadmin
2called-chaos /
Created Mar 3, 2013
enable nginx vim syntax highlighting (on Ubuntu/Debian)
mkdir -p ~/.vim/syntax/
cd ~/.vim/syntax/
mv download_script.php\?src_id\=19394 nginx.vim
cat > ~/.vim/filetype.vim <<EOF
au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/conf/* if &ft == '' | setfiletype nginx | endif
lavary /
Last active Jun 17, 2018
Making multiple menus in a Bootstrap navbar

#Laravel Menu: Bootstrap Navbar

It is possible to create multiple menu instances in a single navbar. I'm going to use Bootstrap default navbar for this demonstration:

First of all we create our menu objects in app/routes.php or app/start/global.php or any other place you desire as long as it is auto loaded when a request hits your application.


HSBallina / .profile
Last active Aug 29, 2017
Git aliases with autocompletion
View .profile
#Add this to your home as .profile (or any other script to fit your needs) and download the git-completion.bash
#file (save as .git-completion.bash).
echo "Hello World!
alias g="git"
alias ga='git add '
alias gb='git branch '
alias gc='git commit'