Skip to content

Instantly share code, notes, and snippets.

@jsilence
jsilence / gist:58e10d4bfc48d801bf30
Created August 8, 2014 17:22
tidy pop accounts with quota
#!/usr/bin/env python
# A very simple housekeeping script for POP accounts. fetchmail and getmail unfortunately don't
# have the option to delete old mail. They either 'pop and keep' or 'pop and delete'. If you have a mail
# account with quota this might be annoying. You'd like to keep as many mails on your server as possible
# just in case, but would like to avoid running out of quota.
# Edit this tiny script, save it in ~/bin with restrictive file permissions, since it contains your
# mail account credentials, and put it in your personal crontab.
# It is not very smart and makes no guarantees about that reserved space of your quota. If you
# receive a mail with a large attachment it might have to run a couple of times, deleting one old mail
@jsilence
jsilence / noisy-colour-rotating-cubes-swirling-sawtooth
Created April 18, 2013 10:02
Simple Fluxus sketch. Fluctuating colour pattern made with perlin noise. Variation of https://gist.github.com/jsilence/5411516 with different blend mode which adds a nice sawtooth like effect.
(clear)
(translate (vector -9.5 -8 0))
(opacity .2)
(hint-ignore-depth)
(blend-mode 'one 'src-alpha)
(define (ani)
(for* ([i (in-range 33)]
[j (in-range 20)])
@jsilence
jsilence / noisy-colour-rotating-cubes-swirling-lines
Last active December 16, 2015 09:18
Simple Fluxus sketch. Fluctuating colour pattern made with perlin noise. Fluctuating opacity with snoise, generating a nice pattern. Zooming the camera into the layer of cubes and pointing it towards the edges or corners makes some nice perspectives. Variation of https://gist.github.com/jsilence/5411516
(clear)
(translate (vector -9.5 -8 0))
(opacity .2)
(hint-ignore-depth)
(blend-mode 'src-alpha 'one)
(define (ani)
(for* ([i (in-range 33)]
[j (in-range 20)])
(with-state
@jsilence
jsilence / noisy-colour-rotating-planes
Last active December 16, 2015 09:18
Simple Fluxus sketch. Fluctuating colour pattern made with perlin noise.
(clear)
(translate (vector -9.5 -8 0))
(opacity .2)
(hint-ignore-depth)
(define (ani)
(for* ([i (in-range 33)]
[j (in-range 20)])
(with-state
(translate (vector (* .6 i) (* .9 j) 0))
@jsilence
jsilence / fossil_zenburn_css
Created October 3, 2011 13:02
Zenburn theme for Fossil
/* Zenburn theme for fossil */
/* http://slinky.imukuppi.org/zenburnpage/ */
/* http://fossil-scm.org */
/* Some tables have their styles hardcoded. :( */
/* Any feedback and contribution is welcome */
/* General settings for the entire page */
body {
margin: 0ex 0ex;
<?php
/* Code from http://tantek.pbworks.com/NewBase60
License: http://creativecommons.org/licenses/by-sa/3.0/
Author: Tantek Çelik <http://tantek.com>
*/
function strcat($a, $b) {
return $a.$b;
}