Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View richardaum's full-sized avatar
🐈

Richard Lopes richardaum

🐈
View GitHub Profile
@richardaum
richardaum / pm2.config.js
Last active November 6, 2021 20:10
FBG PM2
/** @type import('pm2').StartOptions */
const pwd = "/home/richardaum/projects/FreeBoardGames.org";
module.exports = {
apps: [
{
cwd: `${pwd}/web`,
name: "i18n",
script: "npm",
@richardaum
richardaum / README.md
Last active July 24, 2020 19:07
Create/generate a KML file withing multiple circles varying its radius, central point, and number of points to represent the circle

Script created to generate KML with circles using multiple points generated from a lat long coordinates. Currently, it is being used with 17 points to fulfil a requriment from Consumer app.

Requirements

Ruby (thanks to https://github.com/mbrookes/kml_polygon for the polygon algorithm) Node

Usage

node circle.js > area-de-entrega.kml

@richardaum
richardaum / gist:d3436ef5fbfd5c7a0ff6fa768e7aa2fc
Created April 19, 2020 17:38
Add VisualStudioCode as default git editor on Linux
git config --global core.editor "code --wait"
@richardaum
richardaum / scale-screen.sh
Last active February 2, 2020 19:08
Scaling screen on ElementaryOS (GNOME3)
#!/bin/bash
gsettings set org.gnome.desktop.interface text-scaling-factor 0.9375
# H60 NGNIX ports
#
# ports:
# hamburgueria60.com, delivery.hamburgueria60.com ..... 3000
#
# preview.delivery.hamburgueria60.com ................. 3010
# Unknown service (probably socket) ................... 8000
#
# restaurant.hamburgueria60.com ....................... 3020
# preview.restaurant.hamburgueria60.com ............... 3021
@richardaum
richardaum / install.sh
Created June 20, 2019 01:23
docker and docker-compose installation
#!/bin/bash
# Install docker
sudo apt install docker.io
# Install docker-compose
sudo curl -L \
https://github.com/docker/compose/releases/download/1.24.0/docker-compose-`uname -s`-`uname -m` \
-o /usr/local/bin/docker-compose
@richardaum
richardaum / time api
Created August 16, 2016 15:50
Time API
http://www.timeapi.org/utc/now
@richardaum
richardaum / adjust-brightness.sh
Last active August 13, 2016 14:23
Adjust screen brightness from Ubuntu
xrandr --output LVDS1 --brightness 0.7