Skip to content

Instantly share code, notes, and snippets.

View liquid1982's full-sized avatar

Vincenzo Acinapura liquid1982

  • TrustLayer, Inc.
  • Miami, FL
View GitHub Profile
@liquid1982
liquid1982 / System Design.md
Created September 4, 2018 19:46 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
### Keybase proof
I hereby claim:
* I am liquid1982 on github.
* I am liquid1982 (https://keybase.io/liquid1982) on keybase.
* I have a public key ASA-HnMitlBbQatXYUAGuxbF_SRPP5dlfEL6gPWm1d6oPwo
To claim this, I am signing this object:
@liquid1982
liquid1982 / react-hello-world
Created December 16, 2016 04:44
React Hello World directory tree
This file has been truncated, but you can view the full file.
Last login: Thu Dec 15 20:28:08 on ttys001
vincenzo:~/ $ cd dev/sandbox/hello-world [20:34:48]
vincenzo:hello-world/ $ tree . [20:35:00]
.
├── README.md
├── node_modules
│ ├── abab
│ │ ├── CHANGELOG.md
│ │ ├── README.md
│ │ ├── index.js
@liquid1982
liquid1982 / get
Created June 24, 2015 12:43
jsonapi example
curl -X GET http://localhost:3100/v2/job_positions/1?include=author,company,hiring_team_members&fields[company]=name&fields[author]=name&fields[hiring_team_members]=name,permissions

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@liquid1982
liquid1982 / listingDetail.js
Created January 31, 2014 12:58
gromia-payload.js
var gr = gr || {};
gr.listingDetail = {
// (string) `id`
"id": "526c4ff4d9464da9f800ff7f",
// (string) `category` - "residential"
"category": "residential",
// (string) `grouping` - "entirely" | "rooms"
@liquid1982
liquid1982 / Gemfile
Created September 30, 2013 06:42 — forked from zernel/Gemfile
gem 'devise'
gem 'omniauth'
gem 'omniauth-github'
gem "omniauth-twitter"
gem "omniauth-facebook"
gem "omniauth-google-oauth2"
#!/sbin/runscript
# GitLab init script for Gentoo Linux
# see https://github.com/gitlabhq/gitlabhq/blob/master/doc/installation.md
GITLAB_BASE=/home/gitlab/gitlab
GITLAB_USER=gitlab
depend() {
need net mysql redis
}
#! /bin/bash
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the unicorn web server
# Description: starts unicorn
include Tire::Model::Search
include Tire::Model::Callbacks
settings :analysis => {
:filter => {
:ngram_filter => {
:type => 'edgeNGram',
:min_gram => 1,
:max_gram => 10,
:side => 'front'