Skip to content

Instantly share code, notes, and snippets.

@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;
@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
@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
@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",
@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);
+
@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.