Skip to content

Instantly share code, notes, and snippets.

@fightingtheboss
fightingtheboss / README.md
Created October 24, 2015 05:03
Links for Programming 101 Workshop
@fightingtheboss
fightingtheboss / Preferences.sublime-settings.json
Last active October 27, 2015 04:39
List of useful Sublime Text Packages
{
"auto_complete_commit_on_tab": true,
"copy_with_empty_selection": false,
"ensure_newline_at_eof_on_save": false,
"highlight_line": true,
"ignore_packages":
[
"Vintage"
],
"tab_size": 2,
Verifying that +minamikhail is my blockchain ID. https://onename.com/minamikhail
@fightingtheboss
fightingtheboss / deploy.rb
Last active August 30, 2016 07:58
Capistrano deploy script for deploying multiple app instances of a Meteor app to a single private VPS on different ports.
# This deploy script takes a parameter to define the number of instances to deploy (default is 1)
# ex: cap deploy -s instances=3
set :application, "YOUR_APP_NAME"
set :repository, "git@YOUR_GIT_REPOT.git"
set :scm, :git
set :deploy_via, :remote_cache
set :user, "deploy"
set :deploy_to, "/home/deploy/www/#{application}"
@fightingtheboss
fightingtheboss / deploy.rb
Created June 22, 2013 22:46
A Capistrano deploy script for deploying a Meteor app to multiple EC2 Ubuntu instances in parallel. Requires AWS EC2 Tools to be properly installed locally to work.
# The goal will be to ultimately make a Capistrano deploy script that does
# what meteor.sh is doing, but in parallel.
# This assumes you're using an AMI with Node, NPM, Meteor, Forever and
# optionally Meteorite installed
set :application, "YOUR_APP_NAME"
set :repository, "git@YOUR_GIT_REPO.git"
set :scm, :git
@fightingtheboss
fightingtheboss / ruby-2.3.0.rb
Last active May 3, 2017 22:24
Examples of new features in Ruby 2.3.0
# These are examples of new features in Ruby 2.3.0
#---------------------------------------------------------------------------
## Did You Mean?
"Typos suck less now".revers
# NoMethodError: undefined method `revers' for "Typos suck less now":String
# Did you mean? reverse
# reverse!
@fightingtheboss
fightingtheboss / nginx.conf
Created June 23, 2013 01:13
Nginx configuration file for private VPN deployment of a Meteor app with HAProxy handling load balancing
upstream haproxy {
server 127.0.0.1:9000;
}
upstream stats {
server 127.0.0.1:9999;
}
server {
listen 80; ## listen for ipv4; this line is default and implied
@fightingtheboss
fightingtheboss / haproxy.cfg
Created June 23, 2013 01:17
HAProxy configuration file for deploying Meteor application to private VPN. Fronted by nginx for static assets, backed by multiple app instances. See https://gist.github.com/fightingtheboss/5843323 for Nginx setup.
global
daemon
defaults
mode http
timeout connect 86400000
timeout server 86400000
timeout client 86400000
timeout check 5s
@fightingtheboss
fightingtheboss / blockstack.txt
Created October 18, 2017 17:03
Blockstack ID verification
Verifying my Blockstack ID is secured with the address 19ChEZZGAuJpxqxYiHnEFxE1dYiE8aPJ9o
@fightingtheboss
fightingtheboss / configuration.yml
Last active September 15, 2023 07:29
An Amazon Elastic Beanstalk configuration file for a Meteor project. This file needs to be saved in the .ebconfiguration/ directory at the root of your project. Deployed with `git aws.push`. Replace MONGO_URL with the URL to your MongoDB instance (I use MongoHQ).
packages:
yum:
git: []
files:
/opt/elasticbeanstalk/hooks/appdeploy/pre/51install_meteor.sh:
mode: "000755"
user: root
group: root
encoding: plain