Skip to content

Instantly share code, notes, and snippets.

View matiasfrndz's full-sized avatar

Matías E. Fernández matiasfrndz

  • Zurich, Switzerland
View GitHub Profile
@matiasfrndz
matiasfrndz / qdisc-performance-simulation-results.txt
Last active June 22, 2019 11:41
Results of Queueing Discipline Performance Simulation
Simulation Results from https://github.com/matiasfrndz/qdisc-performance-simulation
Case I: CD3 Assumptions Are Met
0 1 2 3 4
Queueing Discipline CD3 Shortest First Random
Value Reassessed False False False
Duration Reassessed False False False
Resized False False False
10th percentile 105485 88768.1 -16% 30588.4 -71%
20th percentile 111794 95219.6 -15% 35486 -68%
<?php
$data_source = array();
$data_source['kmuratgeber.ch'] =
array(
'start_url' => 'http://kmuratgeber.ch/Handel/Angebote.asp',
'process' => "//div[@class='HLCol1']/a",
'context' => '//div[@id="BLOCKI"]',
'fields' =>
array(

-----BEGIN PGP MESSAGE----- Version: GnuPG v1

owGbwMvMwMQY0FQpvvjR6mWMpw98SmIIbq5vrVZKyk+pVLKqVkrOyUzNKwGx8hJz U5WslLJTK5MSi1P1MvMV8vJTUvWyihWganSUylKLijPz84CqDPRM9AyUanVAykGa 0zLz0lOLCooyQWYpGRqaWpilmZslmxqkJJqap1oYmppaWiQbpCYlpiUbpqUlm1sa GhkapgGNzMgvLkGxVQlsZnxmClDU1cnRzdnQzc0Zot4NKFcKlkg1sDQ2SDNLNDFN MzM1STQ0TjRKMzQ2NU1MNTVOMjYwACksTi2Ceik3sSQzsTitKC+lCuRkoERZZnIq kp/TM0sySpPwaiqpLACJlqcmxUP1xydl5qUAvY0cLoZAlcklmSADDE0MDA2NzMwt LHWUUisKMotS4zNBKkzNzSwMgEBHqaAotUzJKq80JwfkpsK8fKAs0KLEdKA9xZnp

@matiasfrndz
matiasfrndz / directnet2ynab.pl
Last active September 19, 2021 08:27
Convert extracts of accounts exported from Credit Suisse online banking (formerly DirectNet) in CSV format to a CSV format suitable for importing in YNAB.
#!/usr/bin/env perl
use strict;
use warnings;
use lib qw{ ./Text-CSV/lib };
use Getopt::Long;
use Pod::Usage;
use Text::CSV;
@matiasfrndz
matiasfrndz / tree-structure.sql
Created October 19, 2012 16:51
Playing with PostgreSQL and tree structures
CREATE TABLE node (
id INTEGER NOT NULL,
parent_id INTEGER,
UNIQUE(id, parent_id)
);
INSERT INTO node (id, parent_id) VALUES (0,NULL),(1,0),(2,0),(3,1),(4,1),(5,2),(6,2),(7,3),(8,3),(9,4),(10,4),(11,5),(12,5),(13,6),(14,6);
/* select all descendants of node 1 */
WITH RECURSIVE t(node, ancestors) AS (
@matiasfrndz
matiasfrndz / Gemfile
Created March 20, 2012 22:03
Rakefile for Puppet syntax check, puppet-lint analysis and Puppet doc creation.
source "http://rubygems.org"
group :rake do
gem 'rake'
gem 'puppet', :require => "puppet/face"
gem 'puppet-lint'
end