Skip to content

Instantly share code, notes, and snippets.

View mqu's full-sized avatar
🏠
Working from home

Marc Quinton mqu

🏠
Working from home
  • DGAC / DSNA / DTI
  • Toulouse / France
View GitHub Profile
@Pierre-Gilles
Pierre-Gilles / docker-compose.yml
Created May 19, 2019 23:42
Gladys docker-compose.yml
version: '2'
services:
mariadb:
image: mariadb
container_name: gladys-mariadb
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "gladys"
restart: always
@nuclearace
nuclearace / main.swift
Last active September 8, 2024 12:06
Lychrel numbers
// Output
// $ time ./.build/x86_64-apple-macosx/release/Runner
// Found 249 Lychrel numbers between 1...10_000 when limited to 500 iterations
// Number of Lychrel seeds found: 5
// Lychrel seeds found: [196, 879, 1997, 7059, 9999]
// Number of related Lychrel nums found: 244
// Lychrel palindromes found: [4994, 8778, 9999]
// real 0m0.300s
// user 0m0.289s
@cerisara
cerisara / courbe.md
Last active December 16, 2019 20:01
durée de vie moyenne des personnes décédées par date de naissance en France
@mihailescu2m
mihailescu2m / solaredge.py
Created December 31, 2019 23:00
snippet to write solaredge optimisers panel data in an influxdb database
import requests, pickle
from datetime import datetime
import json, pytz
import pandas as pd
from influxdb import DataFrameClient
login_url = "https://monitoring.solaredge.com/solaredge-apigw/api/login"
panels_url = "https://monitoring.solaredge.com/solaredge-web/p/playbackData"
SOLAREDGE_USER = "" # web username
@ishad0w
ishad0w / sources.list
Last active July 16, 2025 21:30
Debian 10 (Buster) -- Full sources.list
deb http://deb.debian.org/debian buster main contrib non-free
deb-src http://deb.debian.org/debian buster main contrib non-free
deb http://deb.debian.org/debian buster-updates main contrib non-free
deb-src http://deb.debian.org/debian buster-updates main contrib non-free
deb http://security.debian.org/debian-security/ buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security/ buster/updates main contrib non-free
@leucos
leucos / main.go
Last active March 23, 2023 17:11
Vade Retro Spamcause (X-VR-SPAMCAUSE) Golang decoder
package main
import (
"fmt"
"os"
)
func main() {
if len(os.Args) != 2 {
fmt.Println("usage: spamcause gggruggvucft...")
@cooldil
cooldil / solaredge.py
Last active June 21, 2025 15:39 — forked from mihailescu2m/solaredge.py
snippet to write solaredge optimisers panel data in an influxdb database
import requests, pickle
from datetime import datetime
import json, pytz
import pandas as pd
from influxdb import DataFrameClient
# Set "static" variables
login_url = "https://monitoring.solaredge.com/solaredge-apigw/api/login"
panels_url = "https://monitoring.solaredge.com/solaredge-web/p/playbackData"
DAILY_DATA = "4"
@jogu
jogu / apache.conf
Last active April 28, 2023 09:35
apache + letsencrypt + TLS-ALPN-01 with mod_md - avoids opening port 80
ServerName foo.com
Protocols http/1.1 acme-tls/1
MDCAChallenges tls-alpn-01
MDCertificateAgreement accepted
MDomain foo.com
MDPrivateKeys RSA 4096
<VirtualHost _default_:443>
ServerAdmin [email protected]
@kiler129
kiler129 / README.md
Last active July 10, 2025 13:26 — forked from seeker2921/ilo-console.sh
Run iLO remote console from shell

iLO Remote Console

This small script lets you start iLO Java-based console from shell.

But why not HTML5?

  • iLO 2/3 doesn't have HTML5 console
  • Mounting local (from the client computer) ISOs is PAINFULLY slow via HTML5 client

TL;DR

If you just start it, it will ask you for everything:

@terashim
terashim / dc-down-all.sh
Last active July 23, 2023 19:40
List or down all Docker Compose projects running on your machine
#!/usr/bin/env bash
#
# Down all running Docker Compose projects
#
docker ps --filter "label=com.docker.compose.project" -q |\
xargs docker inspect |\
jq -r 'map( .Config.Labels ) |
map({"
project": ."com.docker.compose.project",