Skip to content

Instantly share code, notes, and snippets.

View eaglerockdude's full-sized avatar

ken mcfadden eaglerockdude

View GitHub Profile
@eaglerockdude
eaglerockdude / railsport
Created February 25, 2017 14:56
Port 3000 use
lsof -wni tcp:3000
then kill it.
@eaglerockdude
eaglerockdude / gist:8722fb018c472e55435031f852c194e1
Last active August 16, 2017 15:54
Set up fresh rails environment on UBUNTU
ken@ken-XPS-M1330:~$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.04
DISTRIB_CODENAME=zesty
DISTRIB_DESCRIPTION="Ubuntu 17.04"
NAME="Ubuntu"
VERSION="17.04 (Zesty Zapus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 17.04"
@eaglerockdude
eaglerockdude / rails-postgres-backbone-bootstrap-bootswatch
Created August 29, 2017 16:52 — forked from sionc/rails-postgres-backbone-bootstrap-bootswatch
Instructions on creating a new app using Ruby on Rails, Postgresql, Backbone.js, Twitter Boostrap, Bootstwatch
- Check rails version
$ rails -v
- To update rails
$ gem update rails
- Creating a new rails app using postgresql
$ mkdir rails_projects
$ cd rails_projects
$ rails new myapp --database=postgresql
@eaglerockdude
eaglerockdude / format$PATH command
Created May 9, 2018 00:06
echo $PATH | tr ":" "\n" | nl
makes it easier to read