Skip to content

Instantly share code, notes, and snippets.

Building new teams at @justworkshr

Francis Gulotta reconbot

Building new teams at @justworkshr
View GitHub Profile

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real



digraph finite_state_machine {
	node [shape = doublecircle]; LR_0 LR_3 LR_4 LR_8;
	node [shape = circle];
	LR_0 -> LR_2 [ label = "SS(B)" ];
reconbot / mouse-parser.js
Last active Aug 24, 2019
This parses the ms serial mouse wire protol into randomly named events.
View mouse-parser.js
const { Transform } = require('stream')
const debug = require('debug')('serialport/mouse-parser')
const StartByteMarkerByte = 0b01000000
const LeftMouseButtonByte = 0b00100000
const RightMouseButtonByte = 0b00010000
const isStart = byte => byte & StartByteMarkerByte
const DEFAULT_STATE = Object.freeze({
View log.log
### STARTED Filters for GitHub Actions 03:52:54Z
Pulling image:
latest: Pulling from github-actions-images/action-runner
cd784148e348: Already exists
23e2dcc28013: Pulling fs layer
1b231fbdf683: Pulling fs layer
bd89504cdd3c: Pulling fs layer
ad8707eb42ef: Pulling fs layer
ad8707eb42ef: Waiting
reconbot / importing-exporting-examples.js
Last active Dec 4, 2018
CommonJS to ES modules test cases
View importing-exporting-examples.js
// CommonJS to ES modules test cases
// Importing
var foo = require('bar');
// becomes
import foo from 'bar';
// becomes
reconbot / .tesselinclude
Created Nov 26, 2018
My hanging js codee
View .tesselinclude
reconbot / dumpmysql.js
Created Oct 19, 2018
This dumps every table in every mysql db to a file in ndjson format for loading into bigquery
View dumpmysql.js
const { pipe, transform } = require('bluestream')
const mysql = require('mysql')
const { createWriteStream } = require('fs')
const connection = mysql.createConnection({
socketPath: '/var/run/mysqld/mysqld.sock',
user: 'root',
password: 'root',
dateStrings: true,
View linux-list.ts
import childProcess from 'child_process'
import { Readline } from '@serialport/parser-readline'
import { PortInfo } from '@serialport/binding-abstract'
// get only serial port names
function checkPathOfDevice(path: string) {
return /(tty(S|ACM|USB|AMA|MFD|O)|rfcomm)/.test(path) && path
reconbot / blperftest.js
Last active Oct 9, 2018
perf test indexof
View blperftest.js
const Benchmark = require('benchmark')
const Bl = require('./')
const smallBuffers = new Bl(new Array(100).fill(1).map(() => Buffer.alloc(8, 1)))
const largeBuffers = new Bl(new Array(100).fill(1).map(() => Buffer.alloc(1024, 1)))
const mixedBuffers = new Bl(new Array(100).fill(1).map((val, i) => Buffer.alloc(i ** 2 % 1024, 1)))
const veryLargeBuffers = new Bl(new Array(100).fill(1).map(() => Buffer.alloc(1024 * 1024, 1)))
const notFindableSmall = Buffer.alloc(7, 0)
const notFindableMedium = Buffer.alloc(510, 0)
View perftest.js
const Benchmark = require('benchmark')
const Bl = require('./bl')
Bl.prototype.oldSlice = function slice (start, end) {
if (typeof start == 'number' && start < 0){
start += this.length
if (typeof end == 'number' && end < 0){
end += this.length