Skip to content

Instantly share code, notes, and snippets.

@muellermartin
muellermartin / # osm2pgsql - 2017-05-27_05-53-02.txt
Created May 27, 2017 03:54
osm2pgsql on macOS 10.12.5 - Homebrew build logs
Homebrew build logs for osm2pgsql on macOS 10.12.5
Build date: 2017-05-27 05:53:02
@muellermartin
muellermartin / # gdal - 2017-05-27_18-59-38.txt
Created May 27, 2017 17:00
gdal on macOS 10.12.5 - Homebrew build logs
Homebrew build logs for gdal on macOS 10.12.5
Build date: 2017-05-27 18:59:38
@muellermartin
muellermartin / app.py
Last active July 5, 2017 16:27
sinddiewahlergebnisseschonraus.martin-m.org – Repository: https://git.wiai.de/mmueller/sinddiewahlergebnisseschonraus
from flask import Flask
from flipflop import WSGIServer
app = Flask(__name__)
@app.route("/")
def hello_world():
with open("/var/www/sinddiewahlergebnisseschonraus.martin-m.org/status.txt", "r") as f:
status = f.read()
@muellermartin
muellermartin / gio-cocoa.patch
Last active March 16, 2018 13:41
Replace manual patch with Git diff
diff --git a/gio/Makefile.am b/gio/Makefile.am
index ee3de62..cdc315c 100644
--- a/gio/Makefile.am
+++ b/gio/Makefile.am
@@ -611,7 +611,6 @@ libgio_objc_2_0_la_SOURCES = \
gnextstepsettingsbackend.m \
gosxcontenttype.m \
gosxappinfo.m \
- gosxappinfo.m \
gcocoanotificationbackend.m
@muellermartin
muellermartin / remove-desktopappinfo.patch
Created December 25, 2017 19:52
Remove DesktopAppInfo class as it is specific to Linux desktop environments
diff --git a/gio/unix-types.defs b/gio/unix-types.defs
index ed1ed9f..3f51436 100644
--- a/gio/unix-types.defs
+++ b/gio/unix-types.defs
@@ -7,18 +7,6 @@
(gtype-id "G_TYPE_UNIX_CONNECTION")
)
-(define-object DesktopAppInfo
- (docstring
@muellermartin
muellermartin / rabbits-and-byterflies.py
Created April 3, 2018 01:26
Script to decode the binary text of the Easterhegg 2018 logo
import binascii
rabbit = '''\
00
110
1100
1100
101
001
@muellermartin
muellermartin / brew_config.txt
Created April 15, 2018 00:34
Homebrew: poco 1.9.0 checksum mismatch 2018-04-15
HOMEBREW_VERSION: 1.6.0-19-gf9f9dbc
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: f9f9dbc3e9221c8ed329eaf007cbce550bf5f837
Last commit: 10 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 6e3b1cf8ef3f189978ed0d527b29d87eadf5c364
Core tap last commit: 8 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_BUILD_FROM_SOURCE: 1
HOMEBREW_DEV_CMD_RUN: 1
@muellermartin
muellermartin / # clamav - 2018-04-16_15-51-27.txt
Created April 16, 2018 13:52
clamav on macOS 10.12.6 - Homebrew build logs
Homebrew build logs for clamav on macOS 10.12.6
Build date: 2018-04-16 15:51:27
@muellermartin
muellermartin / # libstfl - 2018-04-17_01-15-01.txt
Created April 16, 2018 23:18
libstfl on macOS 10.12.6 - Homebrew build logs
Homebrew build logs for libstfl on macOS 10.12.6
Build date: 2018-04-17 01:15:01
@muellermartin
muellermartin / ffmpeg-fix-compilation-with-x264.patch
Created January 23, 2019 17:42
Fixes compilation of Homebrew's Formula for mplayer 1.3.0
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 2d36c5e566..754383e080 100644
--- a/ffmpeg/libavcodec/libx264.c
+++ b/ffmpeg/libavcodec/libx264.c
@@ -272,6 +272,7 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame,
int *got_packet)
{
X264Context *x4 = ctx->priv_data;
+ const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(ctx->pix_fmt);
x264_nal_t *nal;