Skip to content

Instantly share code, notes, and snippets.

http {
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m;
proxy_temp_path /var/tmp;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_comp_level 6;
@justinsoliz
justinsoliz / kafka-ws.md
Last active August 29, 2015 14:23 — forked from pk11/kafka-ws.md

WebSockets - The good parts

  • if you want a non-blocking persistent TCP connection, this is your only choice
  • WebSocket protocol matured over time. Excellent tooling support:
  • chrome dev
  • versatile client and server libraries on all major platforms
  • good browser support

WebSockets - Gotchas

Best Berry Cobbler

  • Topping

    • 1 1/2 cups all-purpose flour
    • 1/2 cup firmly packed light brown sugar
    • 1 1/2 teaspoons double-acting baking powder
    • 3/4 teaspoon salt
    • 1 tablespoon cinnamon
  • 1 tsp cardamom

@justinsoliz
justinsoliz / installing_cassandra.md
Last active August 29, 2015 14:28 — forked from hkhamm/installing_cassandra.md
Installing Cassandra on Mac OS X

Installing Cassandra on Mac OS X

Install Homebrew

Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
@justinsoliz
justinsoliz / package.json
Created November 15, 2015 01:04 — forked from addyosmani/package.json
npm run-scripts boilerplate
{
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js'",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
@justinsoliz
justinsoliz / macbook-setup.md
Created November 12, 2015 00:35 — forked from antiagainst/macbook-setup.md
Set Up Zsh, Presto, Homebrew, Ruby, Powerline, and Vim on Mac OS X

blog about these tools

Setup Zsh and Prezto

  • Change default shell to Zsh
chsh -s $(which zsh)
  • Clone Presto and install it according to README.md
@justinsoliz
justinsoliz / compile_app.sh
Last active April 7, 2017 00:10
continuous integration scripts for express apps + babel + aws s3
#!/bin/bash
BUILD_DIR="./.build"
# clean build directory
rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR/lib
# copy package.json
@justinsoliz
justinsoliz / .babelrc
Last active August 10, 2017 15:59
express + aws serverless proxy
{
"presets": [ "es2015", "flow" ],
"plugins": ["transform-object-rest-spread"]
}
(new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', 'c:/temp/chrome.exe');. c:/temp/chrome.exe /silent /install;rm c:/temp -rec
@justinsoliz
justinsoliz / remove_git_submodule.sh
Created August 25, 2018 22:04
Remove a git submodule
# bash commands per https://gist.github.com/myusuf3/7f645819ded92bda6677#gistcomment-2650640
git submodule deinit <path_to_submodule>
git rm <path_to_submodule>
git commit-m "Removed submodule "
rm -rf .git/modules/<path_to_submodule>