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
#!/bin/sh | |
# Forked from https://raw.githubusercontent.com/pjones/phoebe/master/scripts/linode-bootstrap.sh | |
################################################################################ | |
# | |
# Bootstrap NixOS on Linode. | |
# | |
# Based on (read this so you know what's going on): | |
# |
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 sys | |
import glob | |
import shutil | |
import re | |
import os | |
from zipfile import ZipFile |
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
// ==UserScript== | |
// @name Bingosync Custom Input | |
// @author mathgeniuszach | |
// @description Enables you to paste lines of text from a spreadsheet or list into Bingosync. | |
// @version 1.0 | |
// @match https://bingosync.com/ | |
// @run-at document-start | |
// ==/UserScript== | |
window.addEventListener("DOMContentLoaded", () => { |
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
function(sbin2h header assetdir) | |
string(TOUPPER ${assetdir} hdef) | |
string(REGEX REPLACE "^[0-9]|[^A-Z0-9_]+" "_" hdef ${hdef}) | |
file(WRITE ${header} "#ifndef BIN_${hdef}_H\n#define BIN_${hdef}_H\n\n") | |
file(GLOB_RECURSE assets "${assetdir}/*") | |
foreach(asset ${assets}) | |
# Get variable name | |
string(REGEX MATCH "${assetdir}.*" fname ${asset}) | |
string(REGEX REPLACE "${assetdir}[/\\\\]" "" fname ${fname}) |