Skip to content

Instantly share code, notes, and snippets.

View skwerlman's full-sized avatar
🧙‍♂️
wizard emoji

skwerlman

🧙‍♂️
wizard emoji
View GitHub Profile
@skwerlman
skwerlman / gen_rules.exs
Last active August 7, 2021 14:42
MTGJSON Compressed rules json generator
#! /usr/bin/env elixir
## Requirements
# Elixir >=1.12 (we use Mix.install/2)
# Erlang/OTP >=22
# p7zip >=17.04
## About this file
# Everthing above the block comment below is configuration using elixir
# expression syntax. Everything below the block comment is the code that
@skwerlman
skwerlman / mix-protoc.sh
Created November 28, 2018 21:10
a bash script to make mix play well with protoc
#!/usr/bin/env bash
# The protobuf source folder
IN_DIR='proto_buf'
# The folder to place the compilation folder into
# The compilation folder always shares a name with the IN_DIR
# so this cannot be blank
OUT_DIR='lib'
<?xml version="1.0" encoding="UTF-8"?>
<cockatrice_carddatabase version="3">
<sets>
<set>
<name>GNT</name>
<longname>Game Night</longname>
<settype>Box</settype>
<releasedate>2018-11-16</releasedate>
</set>
</sets>
@skwerlman
skwerlman / openpgp.txt
Created April 13, 2018 07:03
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:97ca20fe068f554cbd1270bc286dc153c1944242]
@skwerlman
skwerlman / linux-torrent.sh
Created March 19, 2018 03:31
download linux .torrent files
#!/usr/bin/env bash
# linux-torrent.sh
# Inspired by this script:
# https://github.com/ppaskowsky/Bash/blob/master/auto-linux-downloader.sh
# Copyright (C) 2015 by skwerlman
#
#============================== CONFIGURATION ===============================#
#!/usr/bin/env python3
"""
Run migrations on the servatrice database.
Reads migrations from `servatrice/migrations/` and runs them
on the database in order.
Only runs migrations if they are nedded. This is determined using
the cockatrice_schema_version table.
#!/usr/bin/env python
import csv
import json
import re
import requests
from bs4 import BeautifulSoup
from zenlog import log
NAME_CORRECTION_DICT = {
import sys
def usage():
sys.stdout.write('usage: replace.py pairing [pairing ...]')
sys.stdout.write(' a pairing is a char and what to replace it with')
sys.stdout.write(' e.g. replace.py a A would replace all \'a\' with \'A\'')
sys.exit(1)
@skwerlman
skwerlman / setup.md
Last active October 20, 2016 20:03
Setup for Solder

Getting set up for modpack development with Solder

Install python3, pip3, git, and git-lfs

Find and follow instructions for your particular distro.

Get setup on GitLab

  1. Log in with a Github account here: https://gitlab.tetrarch.co
  2. Add your SSH public key here: https://gitlab.tetrarch.co/profile/keys
  3. Have me add you to the tetrarch/mod-repo project

Keybase proof

I hereby claim:

  • I am skwerlman on github.
  • I am skwerlman (https://keybase.io/skwerlman) on keybase.
  • I have a public key whose fingerprint is 5D9D F29E 62C5 C2E2 951A DC69 8628 2389 9AC2 E445

To claim this, I am signing this object: