Skip to content

Instantly share code, notes, and snippets.

View N3X15's full-sized avatar

Rob Nelson N3X15

View GitHub Profile
@N3X15
N3X15 / fixSQL.py
Created July 18, 2015 03:26
pg2mysql Output SQL Fixer
# pg2mysql SQL Fixer
# (c)2015 Rob "N3X15" Nelson <nexisentertainment@gmail.com>
#
# Available under the MIT Open-Source License
#
import os
import sys
import re
@N3X15
N3X15 / github.py
Last active February 23, 2017 06:46
Retrofit for github.py in MoMMI
@command(r"testmerge\s*\[?(\d+)\]?$")
async def test_merger(content, match, message):
if not isowner(message.author):
await output(message.channel, "No")
return
id = int(match.group(1))
async with aiohttp.ClientSession() as session:
# GET /repos/:owner/:repo/pulls/:number
url = github_url("/repos/{}/{}/pulls/{}".format(get_config("github.repo.owner"), get_config("github.repo.name"), id))
@N3X15
N3X15 / .atom_build.json
Created September 19, 2017 05:00
VGStation13 atombuild
{
"_cmd_old": "C:\\Program Files (x86)\\BYOND\\bin\\dm.exe",
"cmd": "F:\\PATH\\TO\\vgstation13\\byond\\bin\\dm.exe",
"args": [ "vgstation13.dme" ],
"sh": false,
"errorMatch":
[
"\n(?<file>[\\\\\/0-9a-zA-Z\\._]+):(?<line>\\d+).*"
]
}