Skip to content

Instantly share code, notes, and snippets.

#include <avr/io.h>
#include "heart.h"
// note that one second = F_CPU/1024 (currently 1000000/1024)
// also note that the maximum duration one frame = (2^16 - 1) * 1000000/1024
// or about 1min
typedef struct {uint8_t leds[27]; uint16_t dur;} anim_frame;
typedef struct {uint16_t num_frames; anim_frame frames[];} anim;
<?php
header ("Content-type: text/css");
/* SET: yahoo rss weather feed */
$myWeatherURL = "http://weather.yahooapis.com/forecastrss?p=UKXX0215";
$fh = fopen($myWeatherURL, 'r');
// get the line we're interested in
$currentconditions = -1;
<?php
$filters = array_merge(
// lists/arrays pulled from wp-includes/default-filters.php
// from "Format strings for display."
array('comment_author', 'term_name', 'link_name', 'link_description',
'link_notes', 'bloginfo', 'wp_title', 'widget_title'),
// from "Format text area for display."
array('term_description'),
// collected from " Display filters"
array('the_title', 'the_content', 'the_excerpt', 'comment_text',
#!/usr/bin/env perl
use strict;
use warnings;
my $NAME = 'Nikolas Coukouma';
my $EMAIL = '[email protected]';
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time());
../dbg/amandad/amandad.20090609153625.debug
../dbg/amandad/amandad.20090609153630.debug
../dbg/amandad/amandad.20090609153627.debug
../dbg/amandad/amandad.20090609153629.debug
../dbg/server/TESTCONF/dumper.20090609153625006.debug
../dbg/server/TESTCONF/dumper.20090609153625008.debug
../dbg/server/TESTCONF/amtrmidx.20090609153628.debug
../dbg/server/TESTCONF/dumper.20090609153625004.debug
../dbg/server/TESTCONF/dumper.20090609153629001.debug
../dbg/server/TESTCONF/chg-glue.20090609153625.debug
$ git remote -v show
dustin natasha.zmanda.com:~dustin/git/public/amanda.git/
dustin-pub git://github.com/djmitche/amanda.git
ext git://github.com/zmanda/amanda.git
int ssh://[email protected]/home/cvs/git/amanda.git/
martineau ssh://natasha.zmanda.com/~martineau/git/public/amanda.git
martineau-pub git://github.com/martineau/amanda.git
nikolas ssh://natasha.zmanda.com/home/atrus/git/public/amanda.git/
nikolas-pub [email protected]:nikolasco/amanda.git
==2453== 9 bytes in 2 blocks are definitely lost in loss record 1 of 8
==2453== at 0x4006AEE: malloc (vg_replace_malloc.c:207)
==2453== by 0x96FA43: g_malloc (in /lib/libglib-2.0.so.0.1800.4)
==2453== by 0x988558: g_strdup (in /lib/libglib-2.0.so.0.1800.4)
==2453== by 0x804CD43: markup_start_element (plugins.c:185)
==2453== by 0x96E044: g_markup_parse_context_parse (in /lib/libglib-2.0.so.0.1800.4)
==2453== by 0x804D214: zc_load_module_xml (plugins.c:337)
==2453== by 0x804BB94: write_xml_and_load (plugins-test.c:67)
==2453== by 0x804BC0A: load_xml (plugins-test.c:77)
==2453== by 0x804BF22: test_plugins (plugins-test.c:151)
ok 7 - empty read from zero-length buffer
Breakpoint 2, zcloud_memory_upload_producer (buffer=0x804e070,
buffer_length=43) at memory_upload_producer.c:121
121 return ret;
(gdb) p *ret
$2 = {parent = {parent = {g_type_instance = {g_class = 0x8056458},
ref_count = 1, qdata = 0x0}},
buffer = 0x804e070 "The quick brown fox jumps over the lazy dog",
buffer_length = 43, buffer_position = 0}
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* vi: set tabstop=4 shiftwidth=4 expandtab: */
/* ***** BEGIN LICENSE BLOCK *****
* Version: LGPL 2.1/GPL 2.0
* This file is part of libzcloud.
*
* libzcloud is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License (the LGPL)
* as published by the Free Software Foundation, either version 2.1 of
* the LGPL, or (at your option) any later version.
<para>
Amanda automatically creates a bucket when writing, if the bucket doesn't
already exist. At that time, it specifies where Amazon should store the data
based on the S3_BUCKET_LOCATION property. Currently, there are two valid settings:
"*" (any location, probably US) and "EU" (Europe). If this property is not set,
Amazon's default value of "*" is used. The bucket location has both billing and
legal concerns, so you are encouraged to consult Amazon's documentation for details.
</para>
<para>