Skip to content

Instantly share code, notes, and snippets.

@SteveClement
SteveClement / 100komma7-audioRSSm3u.py
Last active May 24, 2019 02:46
Python Script to parse the 100,7 RSS Audio Archive and write-out an m3u playlist
#!/usr/bin/env python3
## This script is obsolete and only for historical reasons still present.
import xml.etree.ElementTree as etree
from optparse import OptionParser, OptionGroup
from datetime import timedelta, date
import calendar
import urllib.request
import os, re, sys

A joint work between Quinn Norton and Alexandre Dulaunoy on how to interact with journalists. The presentation was given at OHM2013.

Talking to the media

You've reached out, or they've reached out to you. It could be everything from a formal request to PR to someone who sat down beside you in a bar. It could be a 30 second breaking news piece, or a book 10 years in the making. Knowing a little bit about the media can make the whole exchange more fruitful and useful not only for you and the journalist, but a public that hasn't had a lot of good information about our world.

Inform yourself

<html><body>
<div id="mapdiv"></div>
<script src="http://www.openlayers.org/api/OpenLayers.js"></script>
<script>
map = new OpenLayers.Map("mapdiv");
map.addLayer(new OpenLayers.Layer.OSM());
var lat = 49.6056053
var lon = 6.1004009
var lonLat = new OpenLayers.LonLat( lon ,lat )
@SteveClement
SteveClement / ignore-thread-1.6.2.patch
Last active July 25, 2016 11:01 — forked from mistydemeo/ignore-thread-1.5.21.patch
mutt ignore thread patch for 1.6.2
diff -ru mutt-1.5.21.orig/OPS mutt-1.5.21/OPS
--- mutt-1.5.21.orig/OPS 2010-03-01 12:56:19.000000000 -0500
+++ mutt-1.5.21/OPS 2011-07-10 14:59:03.000000000 -0400
@@ -179,3 +179,4 @@
OP_MAIN_SHOW_LIMIT "show currently active limit pattern"
OP_MAIN_COLLAPSE_THREAD "collapse/uncollapse current thread"
OP_MAIN_COLLAPSE_ALL "collapse/uncollapse all threads"
+OP_MAIN_IGNORE_THREAD "toggle a message's 'ignore-thread' flag"
diff -ru mutt-1.5.21.orig/copy.c mutt-1.5.21/copy.c
--- mutt-1.5.21.orig/copy.c 2010-03-02 14:15:00.000000000 -0500
@SteveClement
SteveClement / cmake.out
Last active August 1, 2016 22:48
openCV 3.1.0 cmake output
pi@raspberrypi:~/Desktop/code/opencv-3.1.0/build $ cmake -DOPENCV_EXTRA_MODULES_PATH=/home/pi/Desktop/code/opencv_contrib/modules -DBUILD_opencv_legacy=OFF -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=OFF -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D BUILD_EXAMPLES=ON -D BUILD_DOCS=ON -D WITH_UNICAP=ON -D WITH_EIGEN=ON ..
-- The CXX compiler identification is GNU 4.9.2
-- The C compiler identification is GNU 4.9.2
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
@SteveClement
SteveClement / convert_mysql_to_sqlite3.sh
Last active January 26, 2020 09:26 — forked from grfiv/convert_mysql_to_sqlite3.sh
convert a mysql database to sqlite3
#!/usr/bin/env bash
#
# convert a mysql database to sqlite3
#
#see https://stackoverflow.com/questions/5164033/
# export-a-mysql-database-to-sqlite-database
mysql_host=localhost
mysql_user=george
#mysql_passwd=****************
#!/usr/bin/env python3
# Source: # https://github.com/arvydas/blinkstick-python/wiki/Example:-Display-Internet-connectivity-status
import socket
import time
try:
import netifaces
gws = netifaces.gateways()
@SteveClement
SteveClement / imageEffect.pde
Created January 26, 2018 16:20
Processing examples
PImage kitten;
void setup() {
size(2024, 512);
kitten = loadImage("kitten.jpg");
//kitten.filter(GRAY);
image(kitten, 0, 0);
}
void draw() {
@SteveClement
SteveClement / twotwo.sh
Last active November 22, 2020 06:49 — forked from bhundven/nineteen.sh
Enlightenment 22 build script for Ubuntu/Debian
#!/bin/bash
# vi: ts=4:sw=4:et
#
# twotwo.sh
# This script allows you to install/update Enlightenment 22 git version on
# Ubuntu 18.04 LTS or Debian testing (buster), or remove E22 git from your system.
# Originally from: http://ubuntuforums.org/showthread.php?t=2203190
# By: Philippe J. Guillaumie (batden AT sfr DOT fr).
# Additional updates by: Bryan Hundven (bryanhundven AT gmail DOT com).
#
@SteveClement
SteveClement / twotwo-wayland.sh
Last active February 28, 2024 10:08 — forked from bhundven/nineteen-wayland.sh
Enlightenment 22 build script for Ubuntu/Debian with Wayland support.
#!/bin/bash
# vi: ts=4:sw=4:et
#
# twotwo.sh
# This script allows you to install/update Enlightenment 22 git version on
# Ubuntu 18.04 or Debian buster (testing), or remove E22 git from your system.
# ********************************************************************
# * This version builds enlightenment with wayland. *
# * That means this requires a very recent Ubuntu or Debian version. *
# * This may not work properly! You've been warned! *