Skip to content

Instantly share code, notes, and snippets.

Avatar
🐳
Automating things!

Evert Ramos evertramos

🐳
Automating things!
View GitHub Profile
@iamnewton
iamnewton / bash-colors.md
Last active May 26, 2022
The entire table of ANSI color codes.
View bash-colors.md

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
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
coolaj86 / how-to-publish-to-npm.md
Last active Apr 30, 2022
How to publish packages to NPM
View how-to-publish-to-npm.md

Getting Started with NPM (as a developer)

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

npm config set init.author.name "Your Name"
npm config set init.author.email "you@example.com"
npm config set init.author.url "https:/yourblog.com"

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

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
2called-chaos / install_nginx_vim.sh
Created Mar 3, 2013
enable nginx vim syntax highlighting (on Ubuntu/Debian)
View install_nginx_vim.sh
#!/bin/sh
mkdir -p ~/.vim/syntax/
cd ~/.vim/syntax/
wget http://www.vim.org/scripts/download_script.php?src_id=19394
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
EOF
@lavary
lavary / bootstrap-navbar.md
Last active Jun 17, 2018
Making multiple menus in a Bootstrap navbar
View bootstrap-navbar.md

#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.

routes.php

php
@HSBallina
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'