Skip to content

Instantly share code, notes, and snippets.

View skibish's full-sized avatar
🧘
everything is fine

Sergey Kibish skibish

🧘
everything is fine
View GitHub Profile
@skibish
skibish / yarn
Last active December 10, 2017 06:44
Dockerized yarn
#!/bin/bash
VERSION=8.9
docker run --rm \
--interactive \
--tty \
--net host \
--volume `pwd`:/app \
--workdir /app \

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

@skibish
skibish / clean-docker-for-mac.sh
Created December 17, 2016 20:49 — forked from MrTrustor/clean-docker-for-mac.sh
This script cleans the Docker.qcow2 file that takes a lot of disk space with Docker For Mac. You can specify some Docker images that you would like to keep.
#!/bin/bash
IMAGES=$@
echo "This will remove all your current containers and images except for:"
echo ${IMAGES}
read -p "Are you sure? [yes/NO] " -n 1 -r
echo # (optional) move to a new line
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
@skibish
skibish / gist:39f1b26b61c8ed7ffa7d21ff54276525
Created October 31, 2016 17:37 — forked from jimbojsb/gist:1630790
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@skibish
skibish / generate-pushid.js
Created October 17, 2016 15:35 — forked from mikelehen/generate-pushid.js
JavaScript code for generating Firebase Push IDs
/**
* Fancy ID generator that creates 20-character string identifiers with the following properties:
*
* 1. They're based on timestamp so that they sort *after* any existing ids.
* 2. They contain 72-bits of random data after the timestamp so that IDs won't collide with other clients' IDs.
* 3. They sort *lexicographically* (so the timestamp is converted to characters that will sort properly).
* 4. They're monotonically increasing. Even if you generate more than one in the same timestamp, the
* latter ones will sort after the former ones. We do this by using the previous random bits
* but "incrementing" them by 1 (only in the case of a timestamp collision).
*/
@skibish
skibish / DOMRouter.js
Created August 8, 2016 13:31
DOM router
/**
* DOMRouter enables loading of events based on data-controller and data-action attributes in body element
* appConfiguration should look like {someController: new Controller(), anotherController: new AnotherController()}
*
* Inspired by
* @link http://www.paulirish.com/2009/markup-based-unobtrusive-comprehensive-dom-ready-execution/
* @link https://www.viget.com/articles/extending-paul-irishs-comprehensive-dom-ready-execution
*/
class DOMRouter {
constructor(appConfiguration) {
@skibish
skibish / github_config.md
Last active August 29, 2015 14:05
GitHub configuration

To limit pushes to your current branch:

$ git config --global push.default simple

To default all new branches to fetch and rebase - not merge:

$ git config --global branch.autosetuprebase always