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/bash | |
###### Options ###### | |
MINETESTDIR=/home/username/minetest | |
GAMENAME=minetest_game | |
WORLDDIR=none | |
MEDIADIR=./media | |
LEGACY_SYMLINKS=0 | |
# When settings this up be aware that the Minetest client |
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/bash -e | |
# adjust as needed, leave encode_ext empty to keep the wav files | |
encode_ext="opus" | |
function encode_func() { | |
# $1: source file (wav) | |
# $2: destination file | |
opusenc --quiet --bitrate 64 "$1" "$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
#!/usr/bin/env python3 | |
import sys | |
import struct | |
import binascii | |
import zlib | |
import getopt | |
try: | |
import zstandard | |
except ModuleNotFoundError: | |
zstandard = None |
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 python | |
import sys | |
from PIL import Image | |
def rgb_rgba_cmp(a, b): | |
if a[0] != b[0]: | |
return False | |
if a[1] != b[1]: | |
return False | |
if a[2] != b[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
#!/bin/bash | |
set -e | |
ffbuild_conf=~/.config/ffbuild.conf | |
nobuild=0 | |
noextract=0 | |
usage () { | |
echo "Usage: ffbuild.sh [options]" |
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 python | |
import sys | |
from PIL import Image | |
FCT = 8 | |
def diff2(a, b): | |
return abs(a-b) | |
def avg3(a, b, c, d=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/env python | |
from PIL import Image | |
import sys | |
l_code = { | |
0: '0001101', | |
1: '0011001', | |
2: '0010011', | |
3: '0111101', | |
4: '0100011', |
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
Missing Things: | |
* jquery.min.js ( http://jquery.com/download/ ) | |
* highstock.js ( http://www.highcharts.com/download ) | |
* A cronjob for executing getvals.py | |
* A webserver with PHP [with SQLite3] |
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 urllib, urllib2, re | |
from xml.dom import minidom | |
# Made by sfan5 2013 v0.4.09.3 | |
V = "0.4.09.3" | |
# this script runs through the 'Mod Releases' section and checks the topics for missing things | |
# Also displays Statistics | |
# Can also reply to topics when valid session cookies are provided | |
# Can also move faulty topics to another forum | |
## <Settings> |
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 sys | |
import os.path | |
import struct | |
import zlib | |
import sqlite3 | |
class BufferConsumer(): | |
def __init__(self, buf): | |
assert(type(buf) == bytes) |