Skip to content

Instantly share code, notes, and snippets.

@mkrautz
mkrautz / update-license-header.py
Created January 15, 2019 18:10
update-license-header.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2017 The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
from __future__ import (unicode_literals, print_function, division)
This file has been truncated, but you can view the full file.
execve("./murmur.x86", ["./murmur.x86", "-limits"], [/* 52 vars */]) = 0
strace: [ Process PID=8040 runs in 32 bit mode. ]
readlink("/proc/self/exe", "/home/mkrautz/murmur-static_x86-"..., 4096) = 71
stat64("/home/mkrautz/murmur-static_x86-1.3.0~1820~g4d3d4d8~snapshot/murmur.x86", {st_mode=S_IFREG|0755, st_size=37987500, ...}) = 0
uname({sysname="Linux", nodename="ubuntu", ...}) = 0
open("/home/mkrautz/murmur-static_x86-1.3.0~1820~g4d3d4d8~snapshot/murmur.x86", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0755, st_size=37987500, ...}) = 0
mmap(0x1003b000, 53248, PROT_READ, MAP_PRIVATE|MAP_FIXED, 3, 0x10000) = 0x1003b000
close(3) = 0
mmap(0x1002b000, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1002b000
#!/usr/bin/env python
# -*- coding: utf-8
#
# Copyright 2005-2017 The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
from __future__ import (unicode_literals, print_function, division)
--- compiler.pri
+++ compiler.pri
@@ -89,6 +89,15 @@ unix {
QMAKE_LFLAGS *= $(shell dpkg-buildflags --get LDFLAGS)
QMAKE_CFLAGS *= -Wfatal-errors -fvisibility=hidden
QMAKE_CXXFLAGS *= -Wfatal-errors -fvisibility=hidden
+
+ QMAKE_CXXFLAGS *= -std=c++11
+
+ # ZeroC Ice's C++11 libs are in /usr/lib/$triple/c++11 on Debian.
Define a new struct, MumblePlugin2FetchArgs
struct MumblePlugin2FetchArgs {
int version;
// version == 0
float *avatar_pos;
float *avatar_front;
float *avatar_top;
float *camera_pos;

Adding new permissions to Mumble

(Last-Updated: 2016-07-14 by mkrautz)

The problem with adding new permissions, is that older clients don't understand them.

This shouldn't be too much of a problem, because the permission system is an "administration-only" feature. That means we can a little less strict about backwards compatibility because the vast majority of users will still be able to use their older clients without problem.

@mkrautz
mkrautz / [BUG] Indentation bug in split view diffing
Created May 16, 2016 12:32
[BUG] Indentation bug in split view diffing
Subject: [BUG] Indentation bug in split view diffing
From: Mikkel Krautz <mikkel@krautz.dk>
To: support@github.com
Hi,
I just stumbled on a bug in the split diff view.
See the attached bug.png for a visual explanation.
The problem is that the indentation of a block in the split diff view
commit a6c441fbff3dc6a6f3084daf65379a0b8c9d903c
Author: Mikkel Krautz <mikkel@krautz.dk>
Date: Thu Mar 10 21:53:34 2016 +0100
ALSA-debug-v4.
diff --git a/src/mumble/ALSAAudio.cpp b/src/mumble/ALSAAudio.cpp
index fb5d9e1..524b89d 100644
--- a/src/mumble/ALSAAudio.cpp
+++ b/src/mumble/ALSAAudio.cpp

Keybase proof

I hereby claim:

  • I am mkrautz on github.
  • I am mkrautz (https://keybase.io/mkrautz) on keybase.
  • I have a public key whose fingerprint is A844 1059 76F8 3301 F06B 6AED 8C5E F5E2 41BC DD10

To claim this, I am signing this object:

@mkrautz
mkrautz / overlay-rule-spec.txt
Last active January 3, 2016 17:36
overlay-rule-spec.txt
Overlay injection rules spec
============================
An overlay rule file is a UTF-8 (no BOM) text file.
Each line is separated by \n (LF) or \r\n (CRLF).
Everything after # in a line is ignored, this allows
# to be used for line comments.
Each line in an overlay rule file defines a rule.