This file contains hidden or 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
<!DOCTYPE html> | |
<meta charset="utf-8"/> | |
<title>💧</title> | |
<style type="text/css"> | |
* {margin: 0; padding: 0;} | |
canvas {position: absolute; left: 0; top: 0;} | |
body {overflow: hidden;} | |
#main {background: #235d80; z-index: 1;} | |
</style> | |
<canvas id="main"></canvas> |
This file contains hidden or 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
""" | |
Usage: python3 clear_logs.py {{ full container ID }} | |
Clears the log file of any lines which are not valid JSON. | |
No error handling whatsoever. Use at own risk. | |
""" | |
import json | |
import pathlib | |
import shutil |
This file contains hidden or 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 | |
# | |
# adwaita-shell - extracts and saves default Adwaita shell theme for GNOME. | |
# Requires gnome-tweaks and User Themes extension. | |
# Also sudo apt install font-cantarell for default fonts. | |
# sorebit, https://github.com/sorebit | |
# | |
# Note: This seems to be deprecated since on new GNOME even Ubuntu allows you to pick the default accent color for Adwaita. | |
# Safety |
This file contains hidden or 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
from collections import defaultdict | |
word = 'KELNER' | |
rev_word = word[::-1] | |
side = 16 | |
def groups(data, func): | |
grouping = defaultdict(list) | |
for y in range(len(data)): |
OlderNewer