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 | |
""" | |
Updater script for freedns.afraid.org | |
(Should work with other services that have you simply GET a URL to update) | |
Also sends you emails if something's wrong or when your IP is updated, | |
provided you have a local email server. | |
Additionally, passing --cron as an argument will let cron handle the email. | |
Suggested crontab entry: |
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 dub | |
/+ dub.sdl: | |
name "collage" | |
dependency "imageformats" version="~>6.1.0" | |
dependency "mustache-d" version="~>0.1.1" | |
+/ | |
import std.algorithm; | |
import std.array; | |
import std.file; |
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 std.algorithm; | |
import std.random; | |
import std.range; | |
import std.stdio; | |
import std.string; | |
import std.utf; | |
void main(string[] args) | |
{ | |
if(args.length < 2) |
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
git log --format=format:"%H/%cd/%ad" | rdmd filter.d |
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 rdmd | |
import std.algorithm; | |
import std.file; | |
import std.range; | |
import std.regex; | |
import std.stdio; | |
void main(string[] args) | |
{ |
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 std.algorithm; | |
import std.array; | |
import std.file: writeFile = write; | |
import std.getopt; | |
import std.random; | |
import std.range; | |
import std.stdio; | |
import std.string; | |
import std.uni; | |
import std.utf; |
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
cmake_minimum_required(VERSION 3.0) | |
project(changeme) | |
set(METAMOD_PATH "" CACHE PATH "Path to Metamod-p source root") | |
if(NOT METAMOD_PATH) | |
message(FATAL_ERROR "METAMOD_PATH must be defined.") | |
endif() | |
#HLSDK includes |
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 glob | |
import os | |
import re | |
import zipfile | |
nameRe = re.compile(r'"name"\s*:\s*"([^"]+)"') | |
mods = [] | |
def guess(jar): | |
return os.path.split(jar)[-1].split("-", 1)[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
#!/usr/bin/rdmd | |
module git_generate_changelist; | |
import std.algorithm; | |
import std.array; | |
import std.exception; | |
import std.json; | |
import std.process; | |
import std.range; | |
import std.stdio; |
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 std.algorithm; | |
import std.array; | |
import std.datetime; | |
import std.getopt; | |
import std.range; | |
import std.socket; | |
import std.stdio; | |
import std.string; | |
class ReadFailed: Exception |