Skip to content

Instantly share code, notes, and snippets.


Arthur Molina arthurmolina

View GitHub Profile
arthurmolina / deploy.rb
Created Feb 14, 2018
mina + puma + nginx
View deploy.rb
require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
require 'mina/rvm' # for rvm support. (
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 / index.erl
Last active Mar 10, 2017
Week 2 - Assignment - Erlang Course
View index.erl
% 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 / nginx.conf
Created Jan 31, 2017 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
View designer.html
<link rel="import" href="../notification-elements/notification-alert.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../cool-clock/cool-clock.html">
<link rel="import" href="../chart-js/chart-js.html">
<polymer-element name="my-element">
:host {
View gist:6527354
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 | bash -s stable --rails --autolibs=enabled