Skip to content

Instantly share code, notes, and snippets.

Tim Post tinkertim

Block or report user

Report or block tinkertim

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tinkertim
tinkertim / SoyaRoastChicken.md
Last active Feb 5, 2019
Recipe for Tim's "soya" roast chicken.
View SoyaRoastChicken.md

Sweet & Spicy Soya Roast Chicken

A twist on a comfort dish that's popular around S.E. Asia, Hong Kong & Macau. I've enjoyed this dish many times in The Philippines and Hong Kong, it really brings back memories. I've done my own thing with it, but left it mostly as I found it, and I hope that you enjoy it and do your own thing with it too.

Soy Garlic Chicken

This is a semi-traditional "soya" roast chicken recpipe that's relatively common in many parts of S.E. Asia as well as Hong Kong and Macau. It's juicy, delectable, and with a combination of sweet, spicy, salty, sour & savory, it's hard to stop eating.

You'll find it chopped on the bone and served in bite-sized pieces with fragrant rice, or de-boned, sliced, and served with egg noodles in soup.

@tinkertim
tinkertim / simple-egg-pasta.md
Last active Sep 4, 2019
Simple yet semi-foolproof egg pasta dough
View simple-egg-pasta.md

Description

This is a simple egg pasta recipe that I've been refining over the years of making fresh pasta for my family. It's based on a recipe I picked up while I was a line cook at a family Italian place about 20 years ago that has long since gone out of business; I've put it back together and adjusted it so it scales down as easily as it does up. Originally, this was made in 10kg (20+ pound) batches.

This dough isn't suitable for extruders, it is intended for rolling and cutting. That means you can make pretty much any kind of noodle, or lasagna sheet out of it. If you want to make ravioli or other stuffed pasta, you want to use a recipe with quite a bit more egg in it, and more steps for drying. If you want to make shaped pasta, such as shells, you probably want a durum wheat & water (eggless) dough recipe instead.

Yield

View iowait.c
root@s2 [~]# cat iowait.c
/* Simple demonstration program to illustrate parsing /proc/stat
* Written by Tim Post, March 2008
* Hereby donated to the public domain, or use under the terms of the X11 license.
*/
#include <stdio.h>
#include <time.h>
#include <string.h>
#ifndef USER_HZ
View keybase.md

Keybase proof

I hereby claim:

  • I am tinkertim on github.
  • I am tpost (https://keybase.io/tpost) on keybase.
  • I have a public key whose fingerprint is E67A 7FBA A831 D6FD 8355 18C2 136C 2D94 857F 2BB0

To claim this, I am signing this object:

@tinkertim
tinkertim / test_chunk_reads
Created Sep 30, 2012
Proper (PHPUNIT) test to reproduce read chunk bug in codeigniter-redis
View test_chunk_reads
/**
* Test successively larger reads from a single line reply (after writing successively larger values)
* This is the only place in the code where the expected length of a response is not known in advance.
*/
public function test_chunk_reads()
{
/**
* Adapted from Chad Birch's answer found here: http://stackoverflow.com/a/853898
* Chad is awesome, you can check out his profile here: http://stackoverflow.com/users/41665/chad-birch
@tinkertim
tinkertim / ci-redis-torture.php
Created Sep 25, 2012
Torture testing strings
View ci-redis-torture.php
/**
* This was taken from a controller that is only accessible via CLI, hence the oddness. I use it for one off testing and debugging
* Below we start writing and reading gibberish to redis to make sure we get back what we wrote. Breaks at around 16k, and I have no idea
* why (it's not redis, GET test shows the full data).
*/
/**
* Thanks to Chad Birch for this gem:
* http://stackoverflow.com/a/853898
* http://stackoverflow.com/users/41665/chad-birch
@tinkertim
tinkertim / PrettyPrint.js
Created Aug 24, 2012
PrettyPrint for Stu since the site is down
View PrettyPrint.js
/*
Copyright (c) 2009 James Padolsey. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
View gist:2719523
import re
# http://atomboy.isa-geek.com/plone/Members/acoil/programing/double-metaphone
from metaphone import dm as double_metaphone
# get the Redis connection
from jellybean.core import redis
import models
# Words which should not be indexed
@tinkertim
tinkertim / gist:2596349
Created May 4, 2012
A little tool to see how much time your CPUs have spent waiting for I/O since boot
View gist:2596349
/*
* A little tool I wrote to see how much time a system has spent in IOWAIT (aggregate across all CPUs) since boot.
* Hereby donated to the public domain, or the X11 / 3 Clause BSD license - your choice.
* Copyright 2008 Tim Post
* Compile via gcc -Wall -o iowait iowait.c
*/
#include <stdio.h>
#include <time.h>
#include <string.h>
@tinkertim
tinkertim / fakeigniter.php
Created May 3, 2012
A fake Codeigniter framework for testing codeigniter-redis
View fakeigniter.php
<?php
error_reporting(E_ALL);
/**
* A 'fake' Codeigniter framework for testing codeigniter-redis
* I seriously wrote this because it was faster than setting up another CI install, so I can
* work on it without breaking stuff that other people are using.
* Written by Tim Post <tpost@ezp.net> I take no responsibility for what comes below!
**/
/* Provide some of the CI common functions */
You can’t perform that action at this time.