Skip to content

Instantly share code, notes, and snippets.

@stengland
stengland / bbcradio.sh
Last active January 11, 2023 14:53
Play BBC Radio with mpd or mplayer from the command line
#!/bin/bash
play() {
playlist="http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_$1.m3u8"
echo $playlist
if mpc
then
mpc add $playlist
mpc play
else
mplayer $playlist
@Proplex
Proplex / DHT_Servers
Last active June 23, 2016 08:00
Tox Bootstrap servers
You can pick anyone of these servers, they all are linked together.
192.81.133.111 33445 8CD5A9BF0A6CE358BA36F7A653F99FA6B258FF756E490F52C1F98CC420F78858
66.175.223.88 33445 B24E2FB924AE66D023FE1E42A2EE3B432010206F751A2FFD3E297383ACF1572E
192.184.81.118 33445 5CD7EB176C19A2FD840406CD56177BB8E75587BB366F7BB3004B19E3EDC04143
192.210.149.121 33445 F404ABAA1C99A9D37D61AB54898F56793E1DEF8BD46B1038B9D822E8460FAB67
81.224.34.47 443 48F0D94C0D54EB1995A2ECEDE7DB6BDD5E05D81704B2F3D1BB9FE43AC97B7269
198.46.136.167 33445 728925473812C7AAC482BE7250BCCAD0B8CB9F737BF3D42ABD34459C1768F854
95.47.140.214 33445 F4BF7C5A9D0EF4CB684090C38DE937FAE1612021F21FEA4DCBFAC6AAFEF58E68
54.215.145.71 33445 6EDDEE2188EF579303C0766B4796DCBA89C93058B6032FEA51593DCD42FB746C
@irungentoo
irungentoo / windows_build.sh
Last active March 5, 2024 07:33
NOTE: DEPRECATED. Build script to cross compile Tox for windows with all of its dependencies.
#Note: This only works with mingw 3.0 or later (previous versions don't have pthreads)
#You need mingw 3.0 or later, yasm and cmake
#
#If you use something other than mingw-w64-i686 you must modify the script accordingly
#
#If you are on ubuntu 13.10:
#sudo apt-get install gcc-mingw-w64-i686 yasm cmake
mkdir prefix
@notadecent
notadecent / tox.sh
Last active June 17, 2019 15:55
toxcore installer script, for Gentoo, Arch, Red Hat, SuSE, Fedora, Debian, Mint, Ubuntu and their derivativesInstalls dependencies and toxic, venom and nurupo's Qt GUI
#!/bin/bash
## wget -O tox.sh waa.ai/iqt && chmod +x ./tox.sh && ./tox.sh
## ./tox.sh -sl to skip libsodium (they don't update that often)
## ./tox.sh -sd to skip libsodium and all the other dependencies
## If libraries are missing, remove /etc/ld.so.conf.d/locallib.conf and
## try running again. Else, try messing around with the prefix paths.
## Suggestions, comments and the alike are welcome on http://waa.ai/4xtC
## or send me a mail, to notadecent AT tox DOT im
@grugq
grugq / gist:7713916
Created November 30, 2013 00:43
The text from: http://dee.su/uploads/baal.html On Underground Communications
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Undercover communication
It should be obvious by now, that the only way to communicate
stealthily and securely is to avoid raising suspicion to the
level at which the authorities might consider it worthwhile
to put you under active surveillance (e.g., park a van with
TEMPEST equipment by your apartment).
@stqism
stqism / dns2sign.sh
Last active August 29, 2015 13:57
Tox DNS Discovery scripts
#!/usr/bin/env sh
#Compile other/fun/sign.c from ProjectTox-Core and put it here named sign
#generate a keypair with ./sign g
#sh dns2key.sh v=tox1;etc {signing key}
DNS=$1
TOXVER=`echo -n $DNS | tr ';:"\\\/' '\n' | grep tox | tr '=' ' ' | awk '{print $NF}'`
case $TOXVER in
tox1)
@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()
#-*- 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
#
@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:
@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: