Skip to content

Instantly share code, notes, and snippets.

View damienix's full-sized avatar
🏠
Working from home

Damian Skrodzki damienix

🏠
Working from home
View GitHub Profile
@dinvlad
dinvlad / retries.ts
Last active February 2, 2024 16:18
Retries with exponential backoff and jitter for idempotent background Google Cloud Functions
// one can also use Google Cloud Firestore library,
// with a slight change in semantics
import { firestore } from 'firebase-admin';
import { EventContext, runWith } from 'firebase-functions';
import { promisify } from 'util';
const eventCollection = 'function-events';
enum EventStatus {
RUNNING = 'running',
// ==UserScript==
// @name Agile Poker Fullscreen
// @namespace http://tampermonkey.net/
// @version 0.2
// @updateURL https://gist.github.com/zzak/2dc3c582db686c02b4ec1fd313bb6e42/raw/agile-poker-fullscreen.user.js
// @description Make the Agile Poker modal dialog fullscreen (desktop friendly)
// @author Zachary Scott <zzak>
// @match https://agile-poker-production.herokuapp.com/*
// @require https://cdnjs.cloudflare.com/ajax/libs/arrive/2.4.1/arrive.min.js
// @grant GM_addStyle
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: