I hereby claim:
- I am klette on github.
- I am klette (https://keybase.io/klette) on keybase.
- I have a public key whose fingerprint is ECCC 3350 5B7E DC98 B650 D6F9 5378 2CEF 4732 0AB8
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#encoding: utf-8 | |
import urllib | |
from django.db import connection | |
from django.conf import settings | |
from django.http import HttpResponse | |
from django.shortcuts import render_to_response | |
def generate_ticket_pdf_url(purchase_id): |
numbers = [num[0].replace(' ', '') for num in numbers if (num[0].startswith('9') and len(num[0]) == 8) \ | |
or (num[0].startswith('4') and len(num[0]) == 8) \ | |
or (num[0].startswith('+474') and len(num[0]) == 11) \ | |
or (num[0].startswith('+479') and len(num[0]) == 11)\ | |
or (num[0].startswith('00479') and len(num[0]) == 12)\ | |
or (num[0].startswith('00474') and len(num[0]) == 12)] |
<?php | |
$untaint = new Untainter(); | |
class MyImageUntainter { | |
function validate($data){ | |
return check_for_valid_image_data($data); | |
} | |
} |
<?php | |
require_once 'PHPUnit/Framework.php'; | |
require_once 'untaint.php'; | |
class IntTest extends PHPUnit_Framework_TestCase { | |
public function testValidInt() { | |
$data = array('foo' => 1, 'bar' => -9999999999); | |
$values = Untaint::check(array('foo'=>UNTAINT_INT, 'bar'=>UNTAINT_INT), $data); |
klette@groove:~$ sudo aptitude remove mysql-server | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
Reading extended state information | |
Initializing package states... Done | |
Reading task descriptions... Done | |
The following packages will be REMOVED: | |
mysql-client-5.0{u} mysql-server mysql-server-5.0{u} | |
0 packages upgraded, 0 newly installed, 3 to remove and 0 not upgraded. |
SELECT DISTINCT ON (transaction) | |
settlement, | |
uka_transaction_id, | |
uka_project_id, | |
transaction, | |
transaction_type, | |
transaction_sum, | |
CASE | |
WHEN transaction_type = 3 THEN transaction_sum - count(ticket) * -15 | |
ELSE transaction_sum - count(ticket)*15 |
#! /usr/bin/perl | |
use XML::Template; | |
my $doc = XML::Template::process_file('../xml/form.xml', { | |
'title' => 'Form test', | |
'#myform/action' => 'foobar' | |
}); | |
print $doc->toString; |
2009-06-11 12:42:44,623 [DEBUG] [nav.ipdevpoll.schedule.JobHandler.inventory.[uninett-gw.uninett.no]] Now calling plugin: nav.ipdevpoll.plugins.topology.Topology(u'uninett-gw.uninett.no') | |
2009-06-11 12:42:44,623 [DEBUG] [nav.ipdevpoll.plugins.topology.Topology.[uninett-gw.uninett.no]] Collecting cdpCacheTable columns | |
2009-06-11 12:42:44,760 [DEBUG] [nav.ipdevpoll.plugins.topology.Topology.[uninett-gw.uninett.no]] Found 21 cdpcache entries | |
2009-06-11 12:42:44,760 [DEBUG] [nav.ipdevpoll.plugins.topology.Topology.[uninett-gw.uninett.no]] Found CDP Connection from teknobyen-ekstern-sw1.uninett.no (GigabitEthernet0/2) | |
2009-06-11 12:42:44,761 [DEBUG] [nav.ipdevpoll.plugins.topology.Topology.[uninett-gw.uninett.no]] Found CDP Connection from teknobyen-5etg-ap4 (FastEthernet0) | |
2009-06-11 12:42:44,762 [DEBUG] [nav.ipdevpoll.plugins.topology.Topology.[uninett-gw.uninett.no]] Found CDP Connection from teknobyen-4etg-ap4 (FastEthernet0) | |
2009-06-11 12:42:44,762 [DEBUG] [nav.ipdevpoll.plugins.topology.Topology.[uninett-gw. |