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
#include <X11/Xatom.h> | |
#include <X11/Xlib.h> | |
#include <X11/Xutil.h> | |
#include <X11/extensions/shape.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
int main() { |
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 | |
from flask import Flask, request, redirect, url_for | |
from markupsafe import escape | |
import re | |
import json | |
import atexit | |
from urllib.parse import urlparse | |
app = Flask(__name__) |
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
# simple bind mount - directly maps host directory to container | |
# pro: simple, direct | |
# con: less docker-native management | |
volumes: | |
- /opt/medusa/postgres:/var/lib/postgresql/data | |
# named volume with bind properties - docker managed but host-accessible | |
# pro: docker volume features (named reference, metadata, drivers) | |
# con: more verbose, possibly overengineered for simple needs | |
volumes: |
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
owned |
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
/* userChrome.css */ | |
/* | |
* modifications: | |
* - reduces the height of the tab bar | |
* - sets tab bar opacity to 0 | |
* - on hover or url bar focus, set opacity to 1 | |
*/ | |
/* variables */ |
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 | |
FORCE=0 | |
while getopts "f" opt; do | |
case $opt in | |
f) FORCE=1 ;; | |
*) | |
echo "Usage: $0 [-f]" | |
exit 1 | |
;; |
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
# core settings | |
scrollwidth 0 | |
scrollbg b0b0b0 | |
scrollfg 808080 | |
stylehint 1 | |
safeclicks 1 | |
cols 60 | |
rows 25 | |
fullscreen 0 | |
zoom 1.5 |
Explanation: Calculate LCM of all intervals to create a cycle. Within the cycle, schedule each announcement at multiples of its interval. Prevent overlaps by assigning the earliest available slot.
Code:
const moment = require('moment');
const SCHEDULED_ANNOUNCEMENTS = [/* as defined */];
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
vim9script | |
# slurpfiles.vim | |
# aggregate buffers into a new buffer and copy to system clipboard | |
# :Slurp to aggregate all buffers into a new buffer | |
# :Slurp -t or --tab-only to only aggregate current tab's buffers | |
# :Slurp -b or --buffer-dir to aggregate all files in the current buffer's directory | |
# :Slurp -w or --working-dir to aggregate all files in the current working directory | |
def SlurpBuffers(...args: list<string>) |
NewerOlder