Skip to content

Instantly share code, notes, and snippets.

View schesnowitz's full-sized avatar

Stephen Chesnowitz schesnowitz

View GitHub Profile
@schesnowitz
schesnowitz / Setup Ruby On Rails on Ubuntu 16.04.md
Last active June 29, 2018 10:19
Setup Ruby On Rails on Ubuntu 16.04
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs

RVM Setup

sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
{
"files.autoSave": "afterDelay",
"editor.tabSize": 2,
"editor.fontSize": 20,
"window.zoomLevel": 2,
"editor.wordWrap": "wordWrapColumn",
"editor.tabCompletion": true,
"emmet.includeLanguages": {"erb": "html"},
"files.associations": {"*.erb": "html"},
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
@schesnowitz
schesnowitz / set_up_redis_ubuntu.rb
Last active September 21, 2017 08:30
Set Up Redis Ubuntu
sudo apt-get update
sudo apt-get upgrade
# Once the upgrade is completed you can move on to the next step.
# Install Redis on Ubuntu 16.04
# Installing Redis on an Ubuntu VPS is simple. Run the command below to install Redis on your machine:
sudo apt-get install redis-server
# If you are planning on using Redis as an object cache for WordPress or any other PHP-based application, you need to install the following package too:
@schesnowitz
schesnowitz / postgres.md
Last active November 10, 2017 09:22
Postgres C9
sudo service postgresql start
sudo sudo -u postgres psql
ALTER USER postgres WITH PASSWORD 'password';
@schesnowitz
schesnowitz / mail.md
Last active November 23, 2017 13:16
Mailer Configuration
   config.action_mailer.delivery_method = :smtp
     config.action_mailer.smtp_settings = {
       address: "smtp.gmail.com",
       port: 587,
       domain: "example.com",
       authentication: "plain",
 enable_starttls_auto: true,
run.config:
engine: ruby
engine.config:
runtime: ruby-2.4
extra_packages:
- nodejs
- nginx
- pkgconf
- libxml2
- libxslt
run.config:
engine: ruby
engine.config:
runtime: ruby-2.4
extra_packages:
- nodejs
- nginx
- pkgconf
- libxml2
- libxslt
run.config:
engine: ruby
engine.config:
runtime: ruby-2.4
extra_packages:
- nodejs
- nginx
- pkgconf
- libxml2
- libxslt
default: &default
adapter: postgresql
encoding: unicode
pool: 5
timeout: 5000
host: <%= ENV['DATA_DB_HOST'] %>
username: <%= ENV['DATA_DB_USER'] %>
password: <%= ENV['DATA_DB_PASS'] %>
development:
default: &default
adapter: mysql2
encoding: utf8
reconnect: false
pool: 5
timeout: 5000
host: <%= ENV['DATA_DB_HOST'] %>
username: <%= ENV['DATA_DB_USER'] %>
password: <%= ENV['DATA_DB_PASS'] %>
socket: /tmp/mysql.sock