Skip to content

Instantly share code, notes, and snippets.

View arthurmolina's full-sized avatar

Arthur Molina arthurmolina

View GitHub Profile
@arthurmolina
arthurmolina / CONTRIBUTING.md
Created January 31, 2023 15:04
Good documentation about contributing to the project and showing guildelines to make better commits (using semantic commits) and PRs

Contributing

Help us to make this project better by contributing. Whether it's new features, bug fixes, or simply improving documentation, your contributions are welcome. Please start with logging a github issue or submit a pull request.

Before you contribute, please review these guidelines to help ensure a smooth process for everyone.

Thanks.

Issue Reporting

@arthurmolina
arthurmolina / deploy.rb
Created February 14, 2018 22:41
mina + puma + nginx
require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
require 'mina/rvm' # for rvm support. (http://rvm.io)
require 'mina/puma'
# Basic settings:
# domain - The hostname to SSH to.
# deploy_to - Path to deploy into.
# repository - Git repo to clone from. (needed by mina/git)
@arthurmolina
arthurmolina / index.erl
Last active March 10, 2017 02:03
Week 2 - Assignment - Erlang Course
-module(index).
-export([get_dickens/0,get_gettysburg/0]).
% Used to read a file into a list of lines.
% Example files available in:
% gettysburg-address.txt (short)
% dickens-christmas.txt (long)
% Get the contents of a text file into a list of lines.
@arthurmolina
arthurmolina / nginx.conf
Created January 31, 2017 18:59 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
sudo apt-get --force-yes install build-essential openssl libreadline6 libreadline6-dev curl git-core \
zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev \
libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison
&&
\curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled
&&