Skip to content

Instantly share code, notes, and snippets.

View maxarouca's full-sized avatar

Max Arouca maxarouca

View GitHub Profile
<script type="module">
    import loader from 'https://hub-pagamentos-dev.msalso.com/static/js/loader.js';
    const config = {
      colors: {
        "background": "#FFF",
        "text": "#282828",
        "primary": "#DB0786",
 "secondary": "#F8981D",
2gua.rainbow-brackets
adampalhazi.vscode-debug-arrow-function
alexcvzz.vscode-sqlite
alfnielsen.vsc-organize-imports
aliariff.auto-add-brackets
andys8.jest-snippets
antfu.iconify
antfu.vite
apollographql.vscode-apollo
arcticicestudio.nord-visual-studio-code
{
"git.enableSmartCommit": true,
"workbench.editor.decorations.colors": true,
"editor.minimap.enabled": false,
"editor.accessibilitySupport": "off",
"zenMode.hideLineNumbers": false,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"tailwindCSS.includeLanguages": {
"typescriptreact": "html",
"plaintext": "html",
@maxarouca
maxarouca / deploy.md
Last active October 5, 2020 18:04
Deploy node apis or static websites on digital ocean droplet

NOVA API IM DIGITAL OCEAN DROPLET

CRIAR UM NGINX CONF

  • Lembrar de alterar a porta que vai rodar o serviço e o endereço da api.
  • Criar o arquivo na pasta /etc/nginx/sites-enabled com o nome do dominio escolhido
server
{
@maxarouca
maxarouca / docker-compose.yml
Last active June 16, 2020 01:10
Nginx for Wordpress in Docker with SLL
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: wproot
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: "stable",
@maxarouca
maxarouca / string-utils.js
Created April 3, 2020 12:22 — forked from jonlabelle/string-utils.js
Useful collection of JavaScript string utilities.
// String utils
//
// resources:
// -- mout, https://github.com/mout/mout/tree/master/src/string
/**
* "Safer" String.toLowerCase()
*/
function lowerCase(str) {
return str.toLowerCase();
@maxarouca
maxarouca / .editorconfig
Last active January 9, 2020 20:00
React + Eslint + Prettier + editorConfig
root = true
[*]
end_of_line = lf
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

DigitalOcean Dokku / Node.js Cloud Environment

Custom recipe to get full Node.js Cloud Environment in DigitalOcean Dokku droplet running from scratch. Yes. Your own Heroku for $5 per month.

I use this gist to keep track of the important configuration steps required to have a functioning system after fresh install.

When you have executed that's all step by step you will get a new working and stable system which is ready to host & serve your Node.js application and databases.