Skip to content

Instantly share code, notes, and snippets.

@receptor
receptor / http2redis.ts
Created March 20, 2019 02:03
Publish HTTP request to Redis channel
process.on("SIGINT", () => process.exit());
import * as bodyParser from "body-parser";
import express from "express";
import redis from "redis";
// logger
const now = () => new Date().toISOString();
const loggerFacility = console;
const logger = {
### Keybase proof
I hereby claim:
* I am receptor on github.
* I am sebp (https://keybase.io/sebp) on keybase.
* I have a public key ASBlTt0ie4yELLDigD6AcIH-B-AqIIlEONlZEZ2MnwRp4Qo
To claim this, I am signing this object:
@receptor
receptor / learn-git-the-hard-way.txt
Created March 14, 2018 21:36
Learn Git the hard way
1) Reference
Many will know this already, but I need to make sure you know it because it’s so fundamental.
A ‘reference’ is a string that points to a commit.
There are four main types of reference: HEAD, Tag, Branch, and Remote Reference.
HEAD
HEAD is a special reference that always points to where the git repository is.
If you checked out a branch, it’s pointed to the last commit in that branch.