Skip to content

Instantly share code, notes, and snippets.

View XDjackieXD's full-sized avatar

Jakob XDjackieXD

View GitHub Profile
@XDjackieXD
XDjackieXD / btm-murmur-automute.py
Last active October 30, 2017 12:56
Mutes people that are in positional audio channels and don't send position data and sets their username to their ingame name.
#!/usr/bin/env python
# -*- coding: utf-8
import Ice, IcePy, sys, tempfile, json, os
# mumble server ice host/port/secret
host = "127.0.0.1"
port = 6502
prxstr = "Meta:tcp -h %s -p %d -t 1000" % (host, port)
secret = "verysecurepw"
@Override
public Pair<? extends IBakedModel, Matrix4f> handlePerspective(ItemCameraTransforms.TransformType cameraTransformType) {
if (modelCore instanceof IPerspectiveAwareModel) {
Matrix4f matrix4f = ((IPerspectiveAwareModel)modelCore).handlePerspective(cameraTransformType).getRight();
return Pair.of(this, matrix4f);
} else {
ItemCameraTransforms itemCameraTransforms = modelCore.getItemCameraTransforms();
ItemTransformVec3f itemTransformVec3f = itemCameraTransforms.getTransform(cameraTransformType);
TRSRTransformation tr = new TRSRTransformation(itemTransformVec3f);
Matrix4f mat = null;
@XDjackieXD
XDjackieXD / ipv6-dhcp.service
Last active June 13, 2017 14:13
Online.net IPv6
[Unit]
Description=dhcpv6 client to announce your DUID
Wants=network.target
After=systemd-networkd.service
[Service]
Type=forking
ExecStart=/usr/local/sbin/odhcp6c -P 56 -c <your_duid> <interface> -d
[Install]

Keybase proof

I hereby claim:

  • I am xdjackiexd on github.
  • I am xdjackiexd (https://keybase.io/xdjackiexd) on keybase.
  • I have a public key whose fingerprint is 0317 DEDC AD33 C453 5E0F 5E7D 9040 F494 ABBC 8858

To claim this, I am signing this object:

@XDjackieXD
XDjackieXD / isonline-nginx.sh
Last active August 29, 2015 14:19
a modified version of isonline.sh that works with nginx-rtmp module (the -B option of rtmpdump doesn't work with it...)
#!/bin/bash
timeout 15 rtmpdump -q -v -r $1 -o /dev/null -m 5
if [[ $? -eq 124 ]]
then
if [[ ! -f /tmp/online.txt ]]
then
echo "the stream you want to watch is online!" | mail -s "Stream Online!" -a "FROM:sender@example.org" receiver@example.org
touch /tmp/online.txt
fi
else
@XDjackieXD
XDjackieXD / isonline.sh
Last active August 29, 2015 14:19
Check if a RTMP stream is online and send a mail if it goes online (put this inside a crontab!)
#!/bin/bash
rtmpdump -q -v -r $1 -B 2 -o /dev/null -m 5
if [[ $? -eq 1 ]]
then
if [[ ! -f /tmp/online.txt ]]
then
echo "the stream you want to watch is online!" | mail -s "Stream Online!" -a "FROM:sender@example.org" receiver@example.org
touch /tmp/online.txt
fi
else