I hereby claim:
- I am steviethecat on github.
- I am darthfaber (https://keybase.io/darthfaber) on keybase.
- I have a public key whose fingerprint is 57A3 C702 31FD B663 83A0 B075 7F48 8EA4 4650 6D38
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
export PGSERVICE=database | |
MAILTO=user@example.com | |
( | |
cat <<__EOT__ | |
<html> | |
<body> | |
<pre> |
#!/bin/bash | |
# This script takes care of changing the Scansnap Manager | |
# save folder every month. This script ought to be run from | |
# cron. | |
# | |
# Dirk-Jan Faber | |
ROOTSAVE=~/Documents/scan | |
SAVEDIR="${ROOTSAVE}/$(date +'%Y/%m')" |
#!/bin/bash | |
# Some environment variables ought to be set | |
: ${BINGMAP_API_KEY?"You need to set the BINGMAP_API_KEY"} | |
: ${HUE_BRIDGE?"You need to set the HUE_BRIDGE"} | |
: ${HUE_KEY?"You need to set the HUE_KEY"} | |
# preperation for storing the temp file | |
temp_dir=/tmp/$RANDOM-$$ | |
install -d -m 700 "$temp_dir" || { echo "failed to create temp_dir" >&2; exit 1; } |
#/bin/env perl | |
# | |
# Simple script for encoding a Xerox PIN code. | |
for (0 .. 3 ) { | |
my @c = split(//, qw/@ABCDEFGHI [ZYX_^]\\SR TUVWPQRS\\] UTWVQPSR]\\/[$_]); | |
print @c[(split(//, $ARGV[0]))[$_]]; | |
} | |
print "\n"; |
function at { | |
unset IFS | |
MOMENT=$* | |
AT=$(which at) | |
# First try at to see if I finally figured out to produce non-garbled time | |
if ${AT} ${MOMENT} 2>/dev/null | |
then | |
# worked allright, we can exit | |
exit |
create or replace function in_arpa(inet) | |
returns text | |
language plpgsql | |
as | |
$function$ | |
declare | |
p_return text; | |
begin | |
case family($1) | |
when 4 then |
/*************************************************************************** | |
* _ _ ____ _ | |
* Project ___| | | | _ \| | | |
* / __| | | | |_) | | | |
* | (__| |_| | _ <| |___ | |
* \___|\___/|_| \_\_____| | |
* | |
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. | |
* | |
* This software is licensed as described in the file COPYING, which |
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
Most Arduinos have an on-board LED you can control. On the Uno and | |
Leonardo, it is attached to digital pin 13. If you're unsure what | |
pin the on-board LED is connected to on your Arduino model, check | |
the documentation at http://arduino.cc | |
This example code is in the public domain. |
/* | |
* The manualpage of strftime notes: | |
* "The environment variables TZ and LC_TIME are used." | |
* | |
* What it does not say is that in order to get the locale | |
* to actually work in your program is that 2 things are | |
* needed in the code: | |
* #include <locale.h> | |
* and | |
* setlocale(LC_TIME, ""); |