Skip to content

Instantly share code, notes, and snippets.

@sheki
sheki / postgres_explain
Created March 6, 2017 05:57
Postgres Explain output
Aggregate (cost=174102.12..174102.13 rows=1 width=0) (actual time=5506.364..5506.365 rows=1 loops=1)
-> Nested Loop (cost=172835.96..174092.73 rows=3757 width=0) (actual time=5506.355..5506.355 rows=0 loops=1)
-> HashAggregate (cost=172835.54..172849.83 rows=1429 width=4) (actual time=3607.213..3925.629 rows=245353 loops=1)
Group Key: clients_service_offerings.service_offering_id
-> Bitmap Heap Scan on clients_service_offerings (cost=14777.92..172280.98 rows=221823 width=4) (actual time=1042.575..3220.471 rows=245353 loops=1)
Recheck Cond: (client_id = 10350)
Filter: ((service_offering_type)::text = 'Rates::OceanFclOffering'::text)
Rows Removed by Filter: 201256
Heap Blocks: exact=125924
-> Bitmap Index Scan on index_clients_service_offerings_on_client_id (cost=0.00..14722.46 rows=412004 width=0) (actual time=1011.142..1011.142 rows=446609 loops=1)

Hey ex-Fbers Our company FiveStars just moved into a new space with extra footage and are subleasing some of the space. If you're interested feel free to ping our broker directly or you can ping me at [email protected]. Location is 340 Bryant (2nd and Bryant) in SOMA. Here are the details from our office manager.

We are subleasing a fully furnished space in our building that is available NOW! We are located in SOMA on 2nd and Bryant. The space can accommodate up to 98 people, and we're open to leasing smaller sections if you're open to sharing the space with other subtenants. Features: Dog friendly Bike storage Kitchen space with dishwasher, microwave, dishware, and shared coffee/water Bathrooms with shower and locker space

syntastic: 4.403597: system: command run in 0.022483s
syntastic: 4.404135: javascript/flow: getVersion: 'flow --version': ['Warning: `flow --version` is deprecated in favor of `flow version`', 'Flow, a static type checker for JavaScript, version 0.30.0', '']
syntastic: 4.404485: javascript/flow: flow version = [0, 30, 0]
syntastic: 4.405381: javascript/closurecompiler: g:syntastic_javascript_closurecompiler_path = ''
syntastic: 4.405686: javascript/closurecompiler: filereadable('') = 0
syntastic: 14.744610: &shell = '/bin/zsh', &shellcmdflag = '-c', &shellpipe = '2>&1| tee', &shellquote = '', &shellredir = '>%s 2>&1', &shellslash = 0, &shelltemp = 1, &shellxquote = '', &shellxescape = ''
syntastic: 14.746582: UpdateErrors: default checkers
syntastic: 14.747092: CacheErrors: default checkers
syntastic: 14.748036: g:syntastic_aggregate_errors = 0
@sheki
sheki / hapi.js
Created August 24, 2016 19:53
where is my honey
import _ from 'lodash';
import Honeycomb from 'libhoney';
const writeKey = _.get(config, 'honeycomb.writeKey', '');
const honey = new Honeycomb({
apiHost: 'node-api', // docker hides this.
dataset: 'node-api',
writeKey,
});
curl -w %{time_connect}:%{time_starttransfer}:%{time_total} -v 'https://instagram.felp1-1.fna.fbcdn.net/t51.2885-19/10727731_309098359282038_186676558_a.jpg' -H 'Referer: https://www.instagram.com/' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36' --compressed -o /dev/null
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 66.208.120.96...
* Trying 2604:d600::12:face:b00c:3333:a3f...
* Immediate connect fail for 2604:d600::12:face:b00c:3333:a3f: No route to host
* Trying 2604:d600::12:face:b00c:3333:a3f...
* Immediate connect fail for 2604:d600::12:face:b00c:3333:a3f: No route to host
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0* Connected to instagram.felp1-1.fna.fbcdn.net (66.208.120.96)

| Category | Affirm | Dropbox | Gusto | | --- | --- | --- | --- | --- | | pay (worst case) | πŸ˜• | πŸ˜€ | 😐 | | pay(best case) | πŸ˜€ | 😐 | πŸ˜• | | learning | πŸ˜€ | 😐 | πŸ˜• | | brand (helps get the next job) | 😐 | πŸ˜€ | πŸ˜• | | work life balance | πŸ˜• | 😐 | πŸ˜€ | | network | πŸ˜€ | 😐 | 😐 |

@sheki
sheki / booya.md
Last active April 15, 2016 06:47

| Category | Affirm | Dropbox | Gusto | | --- | --- | --- | --- | --- | | pay (worst case) | πŸ˜• | πŸ˜€| 😐| | pay(best case) | 1 | 2 | 3 | | learning | 1 | 2 | 3 | | brand (helps get the next job) | 2 | 1 | 3 |

import React from 'react';
import ReactDOM from 'react-dom';
let fbInjected = false;
let fbLoaded = !!window.FB;
let fbCallbacks = [];
function onFbLoad() {
fbLoaded = true;
fbCallbacks.forEach((cb) => {
@sheki
sheki / mockable.js
Created March 31, 2016 01:18
mockable.js
import _ from 'lodash';
const mockMap = new Map();
export function mock(name, obj) {
if (process.env.BRIGHT_ENV === 'prod') {
return obj;
}
if (!_.isObject(obj)) {
@sheki
sheki / test.vim
Created March 17, 2016 16:31
Per project ctrlp cache
function GetDir()
return split(getcwd(), "/")[-1]
endfunction
let g:ctrlp_cache_dir = $HOME.'/.cache/ctrlp-'.GetDir()