Skip to content

Instantly share code, notes, and snippets.

View jdecool's full-sized avatar

Jérémy DECOOL jdecool

View GitHub Profile
@jdecool
jdecool / code.js
Created May 4, 2022 20:03
Tampermonkey - Miniflux - Filter empty categories
// ==UserScript==
// @name miniflux filter categories
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://reader.miniflux.app/categories
// @icon https://www.google.com/s2/favicons?sz=64&domain=miniflux.app
// @grant none
// ==/UserScript==
@jdecool
jdecool / docker-hub-push-description.sh
Created July 27, 2019 08:17
Push a description on Docker Hub programmatically
#!/bin/bash
set -e
TOKEN=$(curl -s -X POST \
-H "Content-Type: application/json" \
-d '{"username": "'"$DOCKER_USERNAME"'", "password": "'"$DOCKER_PASSWORD"'"}' \
https://hub.docker.com/v2/users/login/ | jq -r .token)
CODE=$(jq -n --arg msg "$(<README.md)" \
@jdecool
jdecool / script.php
Created November 28, 2017 19:55
Use sitespeed.io with docker-php
<?php
$docker = new Docker();
$containerManager = $docker->getContainerManager();
$containerConfig = new ContainerConfig();
$containerConfig->setImage('sitespeedio/sitespeed.io');
$containerConfig->setCmd(['https://www.website.com', '-b', 'firefox', '--speedIndex', '--video']);
$hostConfig = new HostConfig();
@jdecool
jdecool / rss.opml
Created September 10, 2017 09:34
RSS feeds subscription
<?xml version="1.0" encoding="utf-8"?>
<opml version="1.0">
<head>
<dateCreated>Sun, 10 Sep 2017 11:23:55 +0200</dateCreated>
<title>Tiny Tiny RSS Feed Export</title>
</head>
<body>
<outline text="Actualité">
<outline type="rss" text="Devmag" xmlUrl="http://devmag.fr/feed/" htmlUrl="http://devmag.fr"/>
<outline type="rss" text="RSS | Usbek &amp; Rica" xmlUrl="https://usbeketrica.com/rss" htmlUrl="http://usbeketrica.com/"/>
@jdecool
jdecool / behat.yml
Created May 7, 2017 10:39
Use Chrome Headless with Behat
default:
extensions:
Behat\MinkExtension:
base_url: http://localhost:8000
default_session: selenium2
selenium2:
browser: chrome
wd_host: http://127.0.0.1:4444/wd/hub
capabilities:
chrome:
@jdecool
jdecool / github-archive.php
Created June 2, 2016 16:00
Download Github archives
#!/usr/bin/env php
<?php
// URL => https://www.githubarchive.org/
// wget http://data.githubarchive.org/2015-01-{01..30}-{0..23}.json.gz
$dayMonth = [
1 => 31,
2 => 30,
3 => 31,
@jdecool
jdecool / radios.csv
Created June 7, 2015 13:32
Fréquence des radios de France
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 2 in line 1.
Groupe;Radio;Fréquence;Département (numéro);Département (nom);Emetteur
666;666;99,1;14;Calvados;CAEN - HEROUVILLE-SAINT-CLAIR
100 %;100 %;98,5;11;Aude;LIMOUX
100 %;100 %;100,4;11;Aude;QUILLAN
100 %;100 %;101,4;34;Hérault;SAINT-PONS-DE-THOMIERES - RIOLS
100 %;100 POURCENT;91,6;09;Ariège;FOIX - PRAYOLS
100 %;100 POURCENT;98;11;Aude;CARCASSONNE - PALAJA
100 %;100 POURCENT;98,5;11;Aude;CASTELNAUDARY - VILLENEUVE-LA-COMPTAL
100 %;100 POURCENT;97;31;Haute-Garonne;SAINT-GAUDENS
100 %;100 POURCENT;106,9;32;Gers;AUCH
@jdecool
jdecool / keybase.md
Created June 1, 2015 20:45
keybase.md

Keybase proof

I hereby claim:

  • I am jdecool on github.
  • I am jdecool (https://keybase.io/jdecool) on keybase.
  • I have a public key whose fingerprint is 45B7 9B01 B4A3 AC06 AB74 FCC0 067B 170F 8624 CEDA

To claim this, I am signing this object:

@jdecool
jdecool / composer.json
Last active August 29, 2015 14:18
ImageWorkshop issue #71 sample code
{
"require": {
"sybio/image-workshop": "~2.0",
"codeguy/upload": "~1.3"
}
}
@jdecool
jdecool / .gitignore
Created March 12, 2015 10:59
Global gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #