Skip to content

Instantly share code, notes, and snippets.

View ninjatux's full-sized avatar

Valerio Barrila ninjatux

View GitHub Profile
@ninjatux
ninjatux / bigONotation.js
Created August 6, 2020 06:25 — forked from jhwheeler/bigONotation.js
Big O Notation Exercises
// 1. Even or odd
function isEven(value){
if (value % 2 == 0){
return true;
}
else
return false;
}
@ninjatux
ninjatux / kubernetes.md
Created May 15, 2019 13:38 — forked from yogendra/kubernetes.md
Kubernetes tutorial steps

1. Create cluster

Cluster up and running

minikube version
minikube start
kubectl version
@ninjatux
ninjatux / mysql-docker.sh
Created April 9, 2019 08:31 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@ninjatux
ninjatux / Makefile
Last active May 25, 2023 14:31 — forked from isaacs/Makefile
Makefile bootstrap
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@ninjatux
ninjatux / keybase.md
Last active May 24, 2019 08:50
keybase

Keybase proof

I hereby claim:

  • I am ninjatux on github.
  • I am ninjatux (https://keybase.io/ninjatux) on keybase.
  • I have a public key ASDo6dPPal4uLYzcfqF2gvlHi9FzbgPsRdzSSEi4ppR0Ogo

To claim this, I am signing this object:

@ninjatux
ninjatux / Makefile
Created June 28, 2017 15:23 — forked from pgporada/Makefile
Terraform Makefile
.ONESHELL:
.PHONEY: help set-env init update plan plan-destroy show graph apply output taint
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
set-env:
@if [ -z $(ENVIRONMENT) ]; then\
echo "ENVIRONMENT was not set"; exit 10;\
fi
@ninjatux
ninjatux / Resources.md
Last active February 21, 2019 12:29 — forked from plentz/nginx.conf
NGINX conf for improved security and performance