Skip to content

Instantly share code, notes, and snippets.

View emersion's full-sized avatar

Simon Ser emersion

View GitHub Profile
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>NRJ Web Radio List</title>
<link>http://www.nrj.fr</link>
<item>
<title>NRJ</title>
<enclosure url="http://mp3.live.tv-radio.com/nrj/all/nrj_113225.mp3" type="audio/mpeg" />
<image>http://media.nrj.fr/webradio_logo/120x120/2011/02/nrj_player58384.png</image>
<guid>http://play.nrj.fr/nrj/nrj.html</guid>
@emersion
emersion / kegtux-happy-end.md
Last active December 18, 2015 05:09
L'e-mail envoyé par Kegtux lors de sa fermeture.

Fermeture de KegTux imminente !

Bonjour,

Pour ceux qui n'ont pas encore appris la nouvelle, je vous invite à lire ceci kegtux.org, sachez que nous allons fermer Kegtux dans le mois qui vient. La fermeture se fera en deux temps :

  • Fermeture du service Mail et XMPP le 28 Juin
  • Fermeture du service Web / SQL le 15 juin
@emersion
emersion / main-window.js
Last active December 18, 2015 13:19
Create a basic window in Symbiose
//Creation de la fenetre
var $window = $.w.window.main({
title: 'Test',
resizable: false,
icon: 'status/error'
});
//Definition de son contenu
var $windowContent = $window.window('content');
$windowContent.html('<p>Hello World !</p>');
@emersion
emersion / seenthis.json
Created January 20, 2014 19:37
Seenthis app manifest. Rename this file to seenthis.webapp
{
"name": "Seenthis",
"description": "Du short-blogging sans limite de caractères. De la recommandation de liens. Des automatismes pour rédiger facilement vos messages. Des forums sous chaque billet. De la veille d’actualité. Une thématisation avancée.",
"launch_path": "/",
"icons": {
"128": "/img/icon-128.png"
},
"developer": {
"name": "Seenthis",
"url": "http://seenthis.net"
@emersion
emersion / gitlab-raspberrypi.sh
Last active December 1, 2016 11:26
Gitlab install on Raspberrypi (cross-compiling)
# Gitlab install instructions: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md
# Cross-compiling on Rpi: https://raspberrypi.stackexchange.com/questions/1/how-do-i-build-a-gcc-4-7-toolchain-for-cross-compiling
apt-get update -y
apt-get upgrade -y
apt-get install -y sudo
apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev logrotate
apt-get install -y git-core
@emersion
emersion / list-contrib.sh
Created June 15, 2014 12:07
List contributors of a repo
#/bin/bash
git log --format='%aN <%aE>' | awk '{arr[$0]++} END{for (i in arr){print arr[i], i;}}' | sort -rn | cut -d\ -f2-
@emersion
emersion / PKGBUILD-shutter-0.91
Created June 15, 2014 14:26
PKGBUILD for shutter-0.91
# Maintainer: Shanto <[email protected]>
# Contributor: Athurg <[email protected]>
# Contributor: TDY <[email protected]>
pkgname=shutter
pkgver=0.91
pkgrel=1
pkgdesc="A featureful screenshot tool (formerly gscrot)"
arch=('i686' 'x86_64')
url="http://shutter-project.org/"
@emersion
emersion / ios-geolocation-marker.html
Created July 23, 2014 16:03
iOS-style geolocation animated marker in CSS3
<!DOCTYPE html>
<html>
<head>
<title>iOS-style geolocation animated marker in CSS3</title>
<style>
@-webkit-keyframes map-blip {
0% {
opacity: 0.35;
-webkit-transform: scale(0.3);
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1">
<context>
<name>main</name>
<message>
<location filename="../main.qml" line="25"/>
<source>&amp;File</source>
<translation type="unfinished"></translation>
</message>
@emersion
emersion / youtube-to-speaker.js
Created December 10, 2014 14:24
Youtube to speaker in Node.js
var ytdl = require('ytdl-core');
var fs = require('fs');
var ffmpeg = require('fluent-ffmpeg');
var lame = require('lame');
var Speaker = require('speaker');
var dl = ytdl('http://www.youtube.com/watch?v=A02s8omM_hI', {
filter: function(format) { return format.container === 'mp4'; }
});
var converter = ffmpeg(dl).format('mp3').pipe(new lame.Decoder())