This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import os | |
from pathlib import Path | |
from PIL import Image, ImageFilter, ImageDraw | |
A4_WIDTH_MM = 210 | |
A4_HEIGHT_MM = 297 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
img=$1 | |
circle_img=$2 | |
token_img="$(echo "$img" | cut -d. -f1)-token.$(echo "$img" | cut -d. -f2)" | |
# Crop the image to a circle | |
magick "$img" \( \ | |
+clone \ | |
-threshold 101% \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import requests | |
import argparse | |
import re | |
import json | |
from pathlib import Path | |
from bs4 import BeautifulSoup | |
from dataclasses import dataclass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import requests | |
import os | |
import sys | |
import difflib | |
import subprocess | |
from pathlib import Path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import math | |
from pimoroni_rgbkeypad import RGBKeypad | |
# From red to violet | |
## Row1 | |
DARK_RED = (220, 20, 60) | |
RED = (255, 0, 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git "a/t\303\251l\303\251chargeur-cheerz.py" "b/t\303\251l\303\251chargeur-cheerz.py" | |
index 871a79f..b8db037 100755 | |
--- "a/t\303\251l\303\251chargeur-cheerz.py" | |
+++ "b/t\303\251l\303\251chargeur-cheerz.py" | |
@@ -1,6 +1,8 @@ | |
#!/usr/bin/env python3 | |
import json | |
+import aiohttp | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Script in charge of cleaning up the tags in your Dungeondraft asset library, | |
to make sure to only keep tags actually linked with assets. | |
""" | |
import logging | |
import json | |
import argparse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Script mutating a subtitles (.srt) file by applying a time offset to each subtitle. | |
Examples: | |
% srtoffset movie.srt '00:00:31,500' | |
% srtoffset movie.srt '00:00:03,125' --rewind | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: test-readiness-balthazar-readiness-pod-script | |
namespace: datadog | |
data: | |
readiness-pod.py: | | |
#!/usr/bin/env python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from flask import Flask, request, Response, stream_with_context | |
from functools import wraps | |
app = Flask('test', static_folder=None) | |
def check_auth(username, password): |
NewerOlder