Skip to content

Instantly share code, notes, and snippets.

View olleolleolle's full-sized avatar
🙌
In sunny Malmö in Sweden 🌞

Olle Jonsson olleolleolle

🙌
In sunny Malmö in Sweden 🌞
View GitHub Profile
@olleolleolle
olleolleolle / before.txt
Created November 2, 2013 14:16
PlantUML details
@startuml
"<size:20>Media Library</size>" as TM -up->[URL from ID] "New"
-right-> "File"
-right-> "Magic"
-right-> "Flac"
-right-> "Output"
-up-> TM
-up-> "File"
-down-> TM
@olleolleolle
olleolleolle / list-total.csv
Last active December 24, 2015 14:59
Humans that died trying to get to EU, processed from a PDF.
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 9.
found_dead,number,name,country_of_origin,cause_of_death,source
25/10/12,54,N.N.,unknown,"drowned, 14 found, 40 missing, boat to E sunk off Al Huceima (MA), Frontex did not rescue",FFM/Acoge/FE/Que/VK
23/10/12,1,"N.N. (±25, man)",Sub-Saharan Africa,"drowned, body washed ashore off Punta Almina (E) reportedly fell into the sea way from MA",ABC/FE
09/10/12,1,"N.N. (±5, girl)",Sub-Saharan Africa,"body washed ashore near Galapagos beach (E), reportedly was travelling on boat from Melilla",FE/SUR
09/10/12,1,"N.N. (±5, girl)",Sub-Saharan Africa,"body washed ashore near Galapagos beach (E), reportedly was travelling on boat from Melilla",FE/SUR
08/10/12,6,N.N.,Africa,"drowned, after boat of 24 migrants from Comoros capsized off the coast of Mayotte (F)",VOA/UN/IRR
08/10/12,10,N.N.,Africa,"missing, after boat of 24 migrants from Comoros capsized off the coast of Mayotte (F)",VOA/UN/IRR
08/10/12,1,"N.N. (8 months, baby)",Sub-Saharan Africa,"drowned, boat sunk off Melilla’s coasts (E)",FE/20Me
01/10/12,1,"N.N. (39, woma
@olleolleolle
olleolleolle / gist:5933425
Created July 5, 2013 09:49
zsh: noglob option, in action. Rake tasks can take arguments in hard brackets. These brackets have special meaning in zsh. So, either turn off the special expansion stuff (noglob) or escape the brackets.
zsh: Too helpful. Turn off the extra features, so that you can run commands:
$ noglob foreman run -f Procfile.dev rake coupons:seed[1,"One year"]
$ rund rake coupons:seed\[1,"One year"\]
Oh, 'rund' is an alias:
$ alias |grep rund
rund='foreman run -f Procfile.dev'
runt='rund -e .env_test'
A list of Swedish high-low movies
- Festivitetssalongen (THIS ONE IS (A) MUST)
- Dödsklockan (Keve Hjelm!)
- I rök och dans (Povel Ramel!)
- Alla Polisen i Strömstad
- Right now at SVT Play
- Anderssons Älskarinna
- Soldater i Månsken
- Svenska slut
@olleolleolle
olleolleolle / Webparts_AuthControllerTest.php
Created November 13, 2012 10:20
ett simpelt testcase
<?php
/**
* Base simple test for WebParts.
*/
require_once 'WebpartsTestCase.php';
// System under test
require_once __DIR__ . '/../Webparts.class.inc';
@olleolleolle
olleolleolle / image_assist_fix.php
Created June 5, 2012 14:51
PHP script to convert Image Assist Tag into HTML tags
<?php
/**
* PHP script to convert Image Assist Tag into HTML tags.
*
* Drupal 6-to-7 conversion
*
* This script must be run on D7 database (after the update from D6 to D7).
* http://drupal.org/node/841568
*/
@olleolleolle
olleolleolle / launcher_docs.diff
Created February 21, 2012 10:49
Docs patch for the PEAR website, to have some end-user documentation for the package System_Launcher.
Index: en/package/system-entities.xml
===================================================================
--- en/package/system-entities.xml (revision 323386)
+++ en/package/system-entities.xml (working copy)
@@ -1,4 +1,5 @@
&package.system.folders;
+&package.system.launcher;
&package.system.mount;
&package.system.system-daemon;
&package.system.system-procwatch;
/*
* Superfish v1.4.8 - jQuery menu widget
* Copyright (c) 2008 Joel Birch
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
*/
@olleolleolle
olleolleolle / get_project_pages_from_forsk_wiki.rb
Created February 13, 2012 16:09
Using a Ruby wrapper around the MediaWiki API, get pages in named Category. In this case, find all the Project pages.
#
# Requirements:
#
# gem install rbmediawiki xml-simple
#
#
require 'rubygems'
require 'rbmediawiki'
@olleolleolle
olleolleolle / lists-biglist.html
Created January 27, 2012 14:01
A test file for the Services_Mailman.php parser
<HTML>
<HEAD>
<LINK REL="SHORTCUT ICON" HREF="/img-sys/mm-icon.png">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<TITLE>mail.cpanel.net mailing lists - Admin Links</TITLE>
</HEAD>
<BODY bgcolor="white"
dir="ltr">