Prep: 20 minutes. Bake: around 1 hour.
- 380g sugar (2 cups ~ 470mL)
- 300g flour (3 cups ~ 710mL)
- 5g salt (teaspoon)
- 3-8g cinnamon (1-3 teaspoons)
shudder's guide to network programming in bash | |
============================================== | |
1. What's this? | |
I'm kind of a maniac when it's about doing nifty things with | |
tools not originally designed for that.that's why I wrote the "guide". | |
maybe there are some other resources that document this (not | |
counting the bash manual page) but I wanted to express my own | |
impressions on the possibilities of bash. |
// produce a wrapped promise generator whose promises regenerate instead of rejecting | |
export function retrying(func, n=Infinity) { | |
return n == 1 | |
? func | |
: () => func().catch(retrying(func, n - 1)); | |
} | |
// produce a wrapped promise generator whose promises ignore rejections | |
export function noreject(func) { | |
return () => func().catch(() => {}); |
/* | |
* _ _ | |
* | |__ | | ___ ___ _ __ ___ ___ _ __ | |
* | '_ \| |/ _ \ / _ \ '_ ` _ \ / _ \ '_ \ | |
* | |_) | | (_) | __/ | | | | | __/ | | | | |
* |_.__/|_|\___/ \___|_| |_| |_|\___|_| |_| | |
* ____ _ ____ | |
* | __ ) / \ | _ \ | |
* | _ \ / _ \ | | | | | |
* | |_) / ___ \| |_| | |
poweronstate 0 | |
rule1 | |
on system#boot do | |
ruletimer1 4 | |
endon | |
on rules#timer=1 do backlog | |
ruletimer2 1; | |
power1 1; | |
endon |
{ | |
"Statement": [ | |
{ | |
"Action": [ | |
"acm:ListCertificates", | |
"cloudfront:UpdateDistribution", | |
"route53:ChangeResourceRecordSets", | |
"route53:GetHostedZone", | |
"route53:ListHostedZones", | |
"route53:ListResourceRecordSets" |
import os | |
USERFILE = "config/loginusers.vdf" | |
OFFLINE_KEYS = ["WantsOfflineMode", "SkipOfflineModeWarning"] | |
with open(USERFILE, "r") as f: | |
lines = f.readlines() | |
with open(USERFILE, "w") as f: | |
nest = 0 |
/* Input a number and watch it get clobbered by another! */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define answer(__op1) __asm__ ( \ | |
"movl $42, %0\n\t" \ | |
: "=r" (__op1) \ | |
: "0" (__op1) \ | |
); |