This file contains hidden or 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
--- PKGBUILD.old 2015-03-31 06:59:59.000000000 -0700 | |
+++ PKGBUILD 2015-04-01 08:00:47.770024293 -0700 | |
@@ -16,10 +16,12 @@ | |
build() { | |
cd "$srcdir/sdk/$pkgname/projects/gnuc" | |
- sed -i -e "/^LOCAL/s:=.*:=${pkgdir}/usr:" makefile | |
+ sed -i -e "/^LOCAL/s:=.*:=${pkgdir}/usr:" Makefile | |
+ sed -i -e "s/)_s/)/g" Makefile | |
+ sed -i -e "s/^\t\$(MAKE) install_shared$//g" Makefile |
This file contains hidden or 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/bash | |
if [ -z "$@" ]; then | |
echo "./record.sh <filename.webm>" | |
exit 1 | |
fi | |
SELECTION=`xrectsel` | |
INRES=`echo $SELECTION | cut -d"+" -f1` | |
WIDTH=`echo $INRES | cut -d"x" -f1` |
This file contains hidden or 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 core.thread; | |
import std.experimental.logger; | |
import std.datetime; | |
static import vibe.core.log; | |
// has to be in a separate class as Logger.LogEntry is protected :facepalm: | |
class StdLogger: StdForwardLogger | |
{ | |
@safe: | |
This file contains hidden or 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 gzip | |
import sys | |
import pynbt | |
def main(): | |
if len(sys.argv) < 2: | |
print "list.py <agedata_x.dat>" | |
return |
This file contains hidden or 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 difflib | |
import gzip | |
import sys | |
import pynbt | |
def main(): | |
if len(sys.argv) < 2: | |
print "diff.py <agedata_x.dat>" | |
This file contains hidden or 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 class(ctor, members) | |
local Class = {} | |
Class.__index = Class | |
if members then | |
if type(members) ~= "table" then | |
error("Passed non-table type as class members") | |
end | |
for k, v in pairs(members) do |
This file contains hidden or 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 python2 | |
import random | |
import sys | |
from PIL import Image | |
limit = 50 | |
def adjust(value): |
This file contains hidden or 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.meta; | |
/++ | |
Retrieves the attribute of type AttrType from symbol. | |
If no such attribute exists on the symbol, AttrType.init is returned. | |
+/ | |
template attribute(AttrType, alias symbol) | |
{ | |
template match(args...) |
This file contains hidden or 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 |
This file contains hidden or 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; |