Skip to content

Instantly share code, notes, and snippets.

Working from home

Alejandro Ventura alexventuraio

Working from home
View GitHub Profile
alexventuraio / xterm-256color.svg
Created Aug 22, 2020 — forked from jasonm23/xterm-256color.svg
Xterm 256color mode color chart, organised into sections.
View xterm-256color.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
alexventuraio / install react-devtools v3
Created Sep 19, 2019 — forked from oztune/install react-devtools v3
How to install React Dev Tools v3 so that you can have highlight updates again
View install react-devtools v3
1. Somewhere on your machine clone the project.
> git clone
> cd react-devtools
2. Switch to the v3 branch
> git checkout v3
alexventuraio / railscasts.rb
Created Dec 9, 2016 — forked from samqiu/railscasts.rb
Download free Railscast video
View railscasts.rb
require 'rss'
# Usage
# $ ./railscasts.rb\/
# episodes.rss
# OR
# $ ./railscasts.rb
p 'Downloading rss index'
alexventuraio /
Created Sep 22, 2016 — forked from learncodeacademy/
Deploy Node.js app on Ubuntu as Upstart Service - instead of using Forever

Deploying a node app with Forever is great...until your server restarts unexpectedly. Then your app stops running and you have to re-deploy.

To get around this, we're going to run our node app as an Upstart service. Upstart services are great, because, once started, the system auto-restarts them if they fail, or if the server restarts.

###Step 1: Create a service for your node app

  • ssh in as root ssh root@youripaddress
  • Create a node-app.conf file in /etc/init
    IMPORTANT: whatever filename you pick is what you will use to start|stop|restart your service i.e. service node-app start
alexventuraio /
Created Sep 22, 2016 — forked from learncodeacademy/
Deploy Node.js Apps with Flightplan

##Setup your server (this would ideally be done with automated provisioning)

  • add a deploy user with password-less ssh see this gist
  • install forever npm install -g forever

##Install flightplan

  • npm install -g flightplan
  • in your project folder npm install flightplan --save-dev
  • create a flightplan.js file
alexventuraio / rails-postgres-backbone-bootstrap-bootswatch
Created Aug 7, 2016 — forked from sionc/rails-postgres-backbone-bootstrap-bootswatch
Instructions on creating a new app using Ruby on Rails, Postgresql, Backbone.js, Twitter Boostrap, Bootstwatch
View rails-postgres-backbone-bootstrap-bootswatch
- 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
alexventuraio /
Created May 7, 2016 — forked from willurd/
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000