Skip to content

Instantly share code, notes, and snippets.

@Eskimon
Eskimon / aoc-discord-webhook.py
Last active December 4, 2020 07:45
AoC Discord webhook
#!/usr/bin/env python3
import json
import locale
from datetime import date
from urllib import request
from urllib.error import HTTPError
locale.setlocale(locale.LC_ALL, 'fr_FR')
<!-- Connect to the SOS directly without using the relay -->
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<style>
#app {
@Eskimon
Eskimon / countries.json
Created July 11, 2019 09:49
Countries ISO 3166 codes, names, slugs json list
[
{
"slug": "afghanistan",
"name": "Afghanistan",
"alpha2": "AF",
"alpha3": "AFG",
"numerical": "004",
"iso_3166_2": "ISO 3166-2:AF"
},
{
@Eskimon
Eskimon / countries.sql
Created July 11, 2019 09:20
Countries ISO 3166, names, slugs SQL insert into list
-- based on https://en.wikipedia.org/wiki/ISO_3166-1 list
-- Columns are
-- 1. Country name slug
-- 2. Country name
-- 3. Country alpha-2 code (ISO 3166-1 alpha-2)
-- 4. Country alpha-3 code (ISO 3166-1 alpha-3)
-- 5. Country numerical code (ISO 3166-1 numeric)
-- 6. Country ISO_3166-2 code
INSERT INTO
@Eskimon
Eskimon / rl-mmr.py
Last active December 11, 2018 11:48
ids = [
'76561198097653620', # Eskimon
'76561197992117520', # Babybel
'76561198001774369', # Algrael
''
]
from bs4 import BeautifulSoup
from collections import namedtuple
from urllib import request
FROM python:3.6
MAINTAINER Eskimon <eskimon@outlook.com>
# Setup Node.js
# From https://github.com/nodejs/docker-node/blob/master/6.1/Dockerfile
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \
&& for key in \
9554F04D7259F04124DE6B476D5A82AC7E37093B \
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
0034A06D9D9B0064CE8ADF6BF1747F4AD2306D93 \
This is LuaTeX, Version 1.0.4 (TeX Live 2017) (format=lualatex 2017.11.8) 9 NOV 2017 10:16
system commands enabled.
**/home/eskimon/Documents/zds-site/contents-public/realiser-un-telemetre
-a-ultrasons__building/extra_contents/realiser-un-telemetre-a-ultrasons.tex
(/home/eskimon/Documents/zds-site/contents-public/realiser-un-telemetre-
a-ultrasons__building/extra_contents/realiser-un-telemetre-a-ultrasons.tex
LaTeX2e <2017-04-15>
Lua module: luaotfload-main 2017/01/29 2.80001 OpenType layout system.
Lua module: lualibs 2017-02-01 2.5 ConTeXt Lua standard libraries.
@Eskimon
Eskimon / Release report generator
Created November 25, 2014 11:41
Generateur de rapport de release pour Zeste de Savoir
# -*- coding: utf-8 -*-
import codecs
import json
import requests
import sys
# Script inspired from https://gist.github.com/unbracketed/3380407
def get_milestones():
jalons = []