Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Alejandro Ventura alexventuraio

🏠
Working from home
View GitHub Profile
@alexventuraio
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@alexventuraio
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 https://github.com/facebook/react-devtools.git
> cd react-devtools
```
2. Switch to the v3 branch
```
> git checkout v3
```
@alexventuraio
alexventuraio / railscasts.rb
Created Dec 9, 2016 — forked from samqiu/railscasts.rb
Download free Railscast video
View railscasts.rb
#!/usr/bin/ruby
require 'rss'
# Usage
# $ ./railscasts.rb http://railscasts.com/subscriptions/YOURRAILSCASTRSS/\/
# episodes.rss
# OR
# $ ./railscasts.rb
p 'Downloading rss index'
@alexventuraio
alexventuraio / node-deploy-as-upstart-service.md
Created Sep 22, 2016 — forked from learncodeacademy/node-deploy-as-upstart-service.md
Deploy Node.js app on Ubuntu as Upstart Service - instead of using Forever
View node-deploy-as-upstart-service.md

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
alexventuraio / flightplan-deploy.md
Created Sep 22, 2016 — forked from learncodeacademy/flightplan-deploy.md
Deploy Node.js Apps with Flightplan
View flightplan-deploy.md

##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
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
alexventuraio / web-servers.md
Created May 7, 2016 — forked from willurd/web-servers.md
Big list of http static server one-liners
View web-servers.md

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