Skip to content

Instantly share code, notes, and snippets.

View jalquisola's full-sized avatar

Joseph Alquisola jalquisola

View GitHub Profile
@jalquisola
jalquisola / expressjs_deployment_using_opsworks.txt
Last active February 23, 2016 04:45
How to deploy Expressjs application using AWS Opsworks?
1. Login to your aws account.
2. Visit Opsworks, https://console.aws.amazon.com/opsworks/home.
3. Create new stack.
4. In Stack's Configuration Management, provide the following custom JSON:
{
"environment_variables": {
"NODE_ENV": "production"
},
"deploy": {
"YOUR_APP_NAME": {
@jalquisola
jalquisola / Linux Helpful Commands
Last active August 29, 2015 14:08
Linux Helpful Commands
1. Search or find big files Linux (50MB) in current directory:
>$ find . -type f -size +10000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
2. Truncate file:
>$ truncate file --size 0
@jalquisola
jalquisola / Install Phantomjs
Last active August 29, 2015 14:08
Install phantomjs in Yosemite
A. Install Using homebrew
brew install phantomjs
If you encounter error this error, phantomjs: OS X Mavericks or older is required for stable,
you can download phantomjs binary.
B. Install using binary
1. Download phantomjs binary, http://phantomjs.org/download.html
@jalquisola
jalquisola / SampleScreen.rb
Created June 16, 2014 05:07
Customize navigation bar using Rubymotion + ProMotion
class SampleScreen < Promotion::Screen
title "Sample" #pass empty string if you dont want to display title in nav_bar
def on_load
customize_nav_bar
end
private
def customize_nav_bar
#set nav bar buttons using ProMotion
@jalquisola
jalquisola / gist:89175c3d7dbbeba0a4a6
Created June 16, 2014 04:37
Applying .gitignore to committed files
Edit .gitignore to match the file you want to ignore
git rm --cached /path/to/file
@jalquisola
jalquisola / gist:9b69e7468b826e81bd7a
Created June 4, 2014 02:33
LoadError: cannot load such file -- sidekiq/capistrano for sidekiq >= 3.0
#Add gem into Gemfile and do bundle install
gem "capistrano-sidekiq"
#replace "require 'sidekiq/capistrano'" in Capfile
require 'capistrano/sidekiq'