Skip to content

Instantly share code, notes, and snippets.

@sevcsik
sevcsik / metatox.md
Created March 4, 2015 10:50
Proposal for using Tox on multiple devices

Proposal for using Tox on multiple devices

Aladar has 3 devices. A phone (p), a deskop (d), a tablet (t). All of these devices have a unique Tox ID.

There is a fourth Tox ID (A), which is the ID of Aladar, regardless which device is he using. All of his contacts know only this ID.

p, d, t and A have each other on their contact list.

@irungentoo
irungentoo / openal_loopback.diff
Last active August 29, 2015 14:15
Openal loopback patch.
diff --git a/Alc/ALc.c b/Alc/ALc.c
index baf7f01..586cfb7 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -2221,6 +2221,8 @@ static ALCvoid FreeDevice(ALCdevice *device)
al_free(device->DryBuffer);
device->DryBuffer = NULL;
+ DestroyRingBuffer(device->loopback_ring);
+
@Treeki
Treeki / config.example.json
Last active August 1, 2019 17:13
FurAffinity -> Pushbullet Notifications
{
"username": "ninji-vahran",
"database": "notifier.db",
"cookies": {
"__cfduid": "REDACTED",
"a": "REDACTED",
"b": "REDACTED",
"folder": "inbox"
},
"pushbullet_key": "REDACTED",
@draplater
draplater / gist:8414f4ae44eff6e1a929
Created January 15, 2015 14:32
Use obfsproxy as a wrapper tunnel.
#map 10.5.7.1:80 to 127.0.0.1:10194.
#server(10.5.7.1):
obfsproxy --log-min-severity=info dummy server 10.5.7.1:2801 --dest=10.5.7.1:80
#client:
obfsproxy --log-min-severity=info dummy client 127.0.0.1:10194 --dest=10.5.7.1:2801
# wget http://127.0.0.1:10194/pdf/ -O /dev/null
# --2015-01-15 22:29:55-- http://127.0.0.1:10194/pdf/
# Connecting to 127.0.0.1:10194... connected.
# HTTP request sent, awaiting response... 200 OK
@dubslow
dubslow / gist:158d6e28cf379bf6be1a
Last active August 29, 2015 14:06
GPL exception
Project Tox GPL Exception version 1.0
-----------------------------------
The libtox libraries, part of Project Tox, are licensed under the GNU General Public License version 3.
Under section 7 of the License as an additional permission, the following software programs, when
statically linked with the libtox libraries, are not subject to section 10, paragraph 1 of the License.
(1) The "Antidote" Tox client, currently maintained by Dmitry Vorobyov
@ostollmann
ostollmann / either.cxx
Last active August 29, 2015 14:06
Either monad in C++
#include <iostream>
#include <string>
#include <functional>
#include "either.hxx"
using std::cout;
using std::endl;
using std::string;
@nurupo
nurupo / bootstrap_node_info.py
Last active August 29, 2015 14:02
Gets version and MOTD info from a Tox DHT bootstrap node, if such are set.
#!/usr/bin/env python
"""
Copyright (c) 2014 by nurupo <nurupo.contributions@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@irungentoo
irungentoo / gist:58dd6df2681093026c87
Last active August 29, 2015 14:02
tox dns3 standard
tox dns3 standard.
Encrypted Tox dns requests and responses.
request:
[4 byte nonce][temporary client public key][encrypted with crypto_box(temporary client public key, server long term public key, 4 byte nonce + 20 byte zeros)[queried username]]
-> base32 (a to z, 0 to 5) -> separate with . as needed.
Notes:
#-*- coding: utf-8 -*-
# Copyright (c) 2014 /cyb/
#
# Everyone is permitted to copy and distribute verbatim or modified
# copies of this license document, and changing it is allowed as long
# as the name is changed.
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
#
@hersche
hersche / tox2dns2tox.py
Last active August 29, 2015 13:58
convert toxkey to toxDns secured with pin and back.
import binascii
def generateKey(dns,pin):
pub = dns[11:75]
logger.info(pub)
check = dns[83:87]
logger.info(check)
nospam = binascii.a2b_base64(pin+"==")
nospam =str(binascii.hexlify(nospam))
nospam = nospam[2:-1]
nospam = nospam.upper()