~~~this is barnold's tilde.club page~~~~

Signed up with tildegit


The captchas on the signup form were too difficult for me. I began to suspect that I might really be a bot that think it's human. But within minutes of my asking about those captchas on irc, ben helped me by removing the captcha from the form!

So now I have my little space on tildegit. My thanks to ben and the tildeverse in general.

Make safer


Here is a toy Makefile:

	@echo "Abolishing spacetime..."
	@echo "Rebooting..."

Not very safe. If you make that target by mistake, it says

$ make reboot-universe
Abolishing spacetime...

and where are you now? There is one way to make the Makefile a little safer, like this:

	$(error Refusing to continue without DANGEROUS set.)

reboot-universe: dangerous
	@echo "Abolishing spacetime..."
	@echo "Rebooting..."

Now you have to try harder to destroy the Universe.

$ make reboot-universe
Makefile:4: *** Refusing to continue without DANGEROUS set..  Stop.
$ make DANGEROUS=y reboot-universe
Abolishing spacetime...

I've found it useful in stopping me running destructive targets by mistake, e.g. to drop a database or wipe out its data. You can make "dangerous" a dependency of as many make targets as you like. If there's an easier or better way, let me know!

Advanced temporal sensing


A more ambitious cgi page for your viewing pleasure. It uses the latest technology to see the future!

Fun with CGI


Coding like it's 1995, I added a toy cgi page: your ip address.

Hosting a git repo on a less than fully trusted host


Have just discovered git-remote-gcrypt or "gcrypt" as I'll call it here. So far it's working well for me at solving this problem: you have something you want under source code control, you want to push it to a remote frequently for safety* but it contains secrets that shouldn't ever leave the host it's on.

If you have a PGP key pair, gcrypt resolves these conflicting objectives by encrypting the repository before pushing. The remote host only sees crypt text, no use to an attacker unless maybe it's the NSA. If your working copy is lost you can get it back provided you still have your ssh and pgp keys.

* There is a wise saying which from memory goes "if you've only saved it to one hard disk you haven't saved it." One of git's major benefits is saving to another hard disk is only a 'git push' away.

Thanks to the tilde contributors for providing tilde.club.

[Previous page] [Random page] [Next page]
How to join this webring