Skip to content

Instantly share code, notes, and snippets.

{
"Siri": {
"ServiceDelivery": {
"ResponseTimestamp": "2012-06-15T12:47:24.675-04:00",
"StopMonitoringDelivery": [
{
"MonitoredStopVisit": [
{
"MonitoredVehicleJourney": {
"LineRef": "B63",
@albanpeignier
albanpeignier / example-groupofentities.xml
Last active March 10, 2019 07:54
How to use GroupOfStopPlaces ?
<?xml version="1.0" encoding="utf-8"?>
<PublicationDelivery xmlns="http://www.netex.org.uk/netex" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:siri="http://www.siri.org.uk/siri" version="1.04:NO-NeTEx-networktimetable:1.0">
<PublicationTimestamp>2018-12-18T12:00:00.0Z</PublicationTimestamp>
<ParticipantRef>enRoute</ParticipantRef>
<dataObjects>
<CompositeFrame version="any" id="chouette:CompositeFrame:1">
<frames>
<SiteFrame version="any" id="chouette:SiteFrame:1">
<stopPlaces>
<!-- little child -->
@albanpeignier
albanpeignier / rivendell-review-packages
Created March 22, 2015 08:12
Rivendell review packages downloader
#!/bin/bash
platform=$1
version=$2
architecture=${3:-amd64}
flavor=$4
if [ -z "$version" ]; then
echo "Usage: `basename $0` <platform> <version> [architecture] [flavor]"
echo
@albanpeignier
albanpeignier / gist:d9e44e3817363a21907b
Created March 22, 2015 07:54
Test Rivendell Pull Request 44 on Ubuntu Lucid
wget http://download.tryphon.eu/debian/lucid/librivendell_2.10.3-1+pr44_i386.deb \
http://download.tryphon.eu/debian/lucid/rivendell_2.10.3-1+pr44_i386.deb \
http://download.tryphon.eu/debian/lucid/rivendell-server_2.10.3-1+pr44_i386.deb
sudo dpkg -i librivendell_2.10.3-1+pr44_i386.deb rivendell_2.10.3-1+pr44_i386.deb rivendell-server_2.10.3-1+pr44_i386.deb
@albanpeignier
albanpeignier / gist:c63f098b29291bb46597
Last active August 29, 2015 14:11
Downgrade en deux coups
wget \
http://download.tryphon.eu/debian/wheezy/librivendell_2.9.3-1_amd64.deb \
http://download.tryphon.eu/debian/wheezy/rivendell_2.9.3-1_amd64.deb
dpkg -i *.deb
@albanpeignier
albanpeignier / innodb-for-rivendell.sql
Created November 30, 2014 08:29
Fixes mysql engine for Rivendell tables
SET @DATABASE_NAME = 'Rivendell';
SELECT CONCAT('ALTER TABLE ', table_name, ' ENGINE=MyISAM;') AS sql_statements
FROM information_schema.tables AS tb
WHERE table_schema = @DATABASE_NAME
AND `ENGINE` = 'InnoDB'
AND `TABLE_TYPE` = 'BASE TABLE'
ORDER BY table_name DESC;
@albanpeignier
albanpeignier / traceroute-from-dc2.txt
Created November 12, 2014 16:33
subscribe.free.fr injoignable ?
traceroute to subscribe.free.fr (212.27.48.11), 30 hops max, 60 byte packets
1 195-154-X-X.rev.poneytelecom.eu (195.154.X.X) 5.337 ms 5.383 ms 5.414 ms
2 195.154.1.162 (195.154.1.162) 5.795 ms 6.103 ms 6.149 ms
3 195.154.1.5 (195.154.1.5) 6.461 ms 6.476 ms 6.308 ms
4 bzn-crs16-1-be1500-t.intf.routers.proxad.net (212.27.58.49) 6.171 ms 6.348 ms 6.444 ms
5 p11-crs16-1-be1011.intf.routers.proxad.net (194.149.162.21) 8.356 ms 8.332 ms 8.307 ms
6 p11-9k-1-be1000.intf.routers.proxad.net (78.254.249.130) 6.822 ms 7.653 ms 10.738 ms
7 bzn-9k-2-sys-be2001.intf.routers.proxad.net (194.149.161.246) 10.826 ms 10.850 ms 10.886 ms
8 bzn-6k-sys.routers.proxad.net (212.27.32.62) 10.438 ms 10.488 ms 10.533 ms
9 * * *
@albanpeignier
albanpeignier / rivendell_export_output.txt
Created October 6, 2014 09:01
Rivendell Export, first version
$ rivendell-export --target /tmp/export --group MUSIC --scheduler-code FRENCH --verbose --filename "[cart.artist]/[cart.album]/[cart.title].mp3"
Export 3 cuts from MUSIC with code FRENCH to /tmp/export
Export 010061_001 to /tmp/export/test-french-reggae.mp3
Export 010062_001 to /tmp/export/test-french-reggae-2.mp3
Export 010063_001 to /tmp/export/test-french-reggae-3.mp3
@albanpeignier
albanpeignier / asound.conf
Created October 2, 2014 14:48
Rivendell and PulseAudio (only for kids not for production)
pcm.rd0 {
type pulse
}
ctl.rd0 {
type pulse
}
@albanpeignier
albanpeignier / metalive_client.rb
Created September 11, 2014 13:09
Client Metalive - exemple
# Prerequires
#
# $ gem install eventmachine em-websocket-client json
# Building native extensions. This could take a while...
# Successfully installed eventmachine-1.0.3
# Fetching: em-websocket-client-0.1.2.gem (100%)
# Successfully installed em-websocket-client-0.1.2
# Building native extensions. This could take a while...
# Successfully installed json-1.8.1
# 3 gems installed