Skip to content

Instantly share code, notes, and snippets.

View wimarbueno's full-sized avatar

Wilzon MB wimarbueno

View GitHub Profile
#!/bin/bash
NAME="platzi"
VIRTUALENV="/home/platzi/venv/"
DJANGODIR="/home/platzi/platzi/"
USER=platzi
GROUP=sudo
NUM_WORKERS=3
DJANGO_WSGI_MODULE=platzi.wsgi
account create', 4, 'Syntax: .account create $account $password\r\n\r\nCreate account and set password to it.');
account delete', 4, 'Syntax: .account delete $account\r\n\r\nDelete account with all characters.');
account onlinelist', 4, 'Syntax: .account onlinelist\r\n\r\nShow list of online accounts.');
account set gmlevel', 4, 'Syntax: .account set gmlevel [$account] #level [#realmid]\r\n\r\nSet the security level for targeted player (can\'t be used at self) or for account $name to a level of #level on the realm #realmID.\r\n\r\n#level may range from 0 to 3.\r\n\r\n#reamID may be -1 for all realms.');
account set password', 4, 'Syntax: .account set password $account $password $password\r\n\r\nSet password for account.');
character erase', 4, 'Syntax: .character erase $name\r\n\r\nDelete character $name. Character finally deleted in case any deleting options.');
server exit', 4, 'Syntax: .server exit\r\n\r\nTerminate trinity-core NOW. Exit code 0.');
server set loglevel', 4, 'Syntax: .server set loglevel #
@wimarbueno
wimarbueno / docker-compose.yml
Created February 25, 2021 14:28 — forked from tomysmile/docker-compose.yml
konga docker-compose
version: '2'
volumes:
mongo_data:
cassandra_data:
services:
kong:
image: kong:latest
depends_on:
@wimarbueno
wimarbueno / Docker shell commands.sh
Created February 25, 2021 14:28 — forked from tomysmile/Docker shell commands.sh
A personal cheat sheet for running local Node project in a Docker container
# See list of docker virtual machines on the local box
$ docker-machine ls
NAME ACTIVE URL STATE URL SWARM DOCKER ERRORS
default * virtualbox Running tcp://192.168.99.100:2376 v1.9.1
# Note the host URL 192.168.99.100 - it will be used later!
# Build an image from current folder under given image name
$ docker build -t gleb/demo-app .
@wimarbueno
wimarbueno / mamp-php-gmp.md
Created February 24, 2021 14:40 — forked from aurelioluiz/mamp-php-gmp.md
How to install GMP extension for PHP 7.2 using MAMP

Installing GMP extension for PHP 7.2 using MAMP

You have to build the GMP extension from the PHP source code. First install Autoconf and GMP using Homebrew.

brew install autoconf gmp

Download and unpack PHP.

@wimarbueno
wimarbueno / default
Created January 20, 2021 15:22 — forked from badsyntax/default
My basic nginx config files for proxying to a node.js application
server {
listen YOUR_IP_ADDRESS:80 default_server;
root /var/www/nginx;
index index.html index.htm;
# This is just an invalid value which will never trigger on a real hostname.
server_name _;
server_name_in_redirect off;
@wimarbueno
wimarbueno / generate-ssh-key.sh
Created May 21, 2020 16:01 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@wimarbueno
wimarbueno / webstoemp-gulpfile.js
Created April 23, 2020 00:31 — forked from jeromecoupe/webstoemp-gulpfile.js
Gulp 4 sample gulpfile.js. For a full explanation, have a look at https://www.webstoemp.com/blog/switching-to-gulp4/
"use strict";
// Load plugins
const autoprefixer = require("autoprefixer");
const browsersync = require("browser-sync").create();
const cp = require("child_process");
const cssnano = require("cssnano");
const del = require("del");
const eslint = require("gulp-eslint");
const gulp = require("gulp");
@wimarbueno
wimarbueno / countries_codes_and_coordinates.csv
Created January 29, 2020 17:12 — forked from tadast/countries_codes_and_coordinates.csv
Countries with their (ISO 3166-1) Alpha-2 code, Alpha-3 code, UN M49, average latitude and longitude
Country Alpha-2 code Alpha-3 code Numeric code Latitude (average) Longitude (average)
Afghanistan AF AFG 4 33 65
Albania AL ALB 8 41 20
Algeria DZ DZA 12 28 3
American Samoa AS ASM 16 -14.3333 -170
Andorra AD AND 20 42.5 1.6
Angola AO AGO 24 -12.5 18.5
Anguilla AI AIA 660 18.25 -63.1667
Antarctica AQ ATA 10 -90 0
Antigua and Barbuda AG ATG 28 17.05 -61.8