Skip to content

Instantly share code, notes, and snippets.

View timtadh's full-sized avatar
🔥
it's a trap!

Tim Henderson timtadh

🔥
it's a trap!
View GitHub Profile
@timtadh
timtadh / .gitignore
Last active November 19, 2015 18:31
mmap-test
*swp
*swo
*.o
mmtest

Keybase proof

I hereby claim:

  • I am timtadh on github.
  • I am tadh (https://keybase.io/tadh) on keybase.
  • I have a public key whose fingerprint is 3116 0263 CF1F 3E14 E6B0 6223 A319 F5FF AEA1 C3D9

To claim this, I am signing this object:

@timtadh
timtadh / queue.sh
Last active March 12, 2023 07:44
BASH Job Queue. This is a example of how to make a job queue in GNU Bash. It may not work for other shells as it relies on the bash built in `read`. You will need to see the man pages for your shell to determine if this will work for you.
#!/usr/bin/env bash
rep() {
i=$1
data=$2
## run the replicate ....
}
# make the files
START=$(mktemp -t start-XXXX) ## signals the workers are starting