This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
connect25lovylmq.onion <-- blackbook a privacy based social network | |
sejnfjrq6szgca7v.onion <---- Tor mirror of Debian.org | |
pugljpwjhbiagkrn.onion <-- Debian manpages | |
7b42twezybs23hrr.onion <--- linux.sh terminal based file shareing utility | |
74ypjqjwf6oejmax.onion <-- Beneath VT, Exploring Virginia Tech's steam tunnels and beyond |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 -u | |
import asyncio | |
import sh | |
from systemd import journal | |
from systemd.daemon import notify | |
GATEWAY_IP = "192.168.10.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import socket | |
import os | |
import struct | |
if getattr(socket, "NETLINK_CONNECTOR", None) is None: | |
socket.NETLINK_CONNECTOR = 11 | |
CN_IDX_PROC = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------------------------------------------------------ | |
// A function that will apply a function to each argument | |
#include <initializer_list> | |
#include <utility> | |
template <typename F, typename... Ts> | |
void for_each_arg(F&& f, Ts&&... ts) | |
{ | |
using I = std::initializer_list<int>; | |
(void) I { (std::forward<F>(f)(std::forward<Ts>(ts)), 0)... }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Interpolates a Catmull-Rom Spline through a series of x/y points | |
* Converts the CR Spline to Cubic Beziers for use with SVG items | |
* | |
* If 'alpha' is 0.5 then the 'Centripetal' variant is used | |
* If 'alpha' is 1 then the 'Chordal' variant is used | |
* | |
* | |
* @param {Array} data - Array of points, each point in object literal holding x/y values | |
* @return {String} d - SVG string with cubic bezier curves representing the Catmull-Rom Spline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){var links = [ | |
"https://en.wikipedia.org/wiki/Special:Random", | |
"https://en.wikipedia.org/wiki/Portal:Current_events", | |
"http://mathworld.wolfram.com/", | |
"http://functions.wolfram.com/", | |
"https://en.wikipedia.org/wiki/Portal:Contents/Outlines", | |
"https://en.wikipedia.org/wiki/Glossary_of_areas_of_mathematics", | |
"http://mathworld.wolfram.com/classroom/", | |
"https://en.wikipedia.org/wiki/Lists_of_mathematics_topics", | |
"https://en.wikipedia.org/wiki/Mathematics_Subject_Classification#First-level_areas", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A simple proxy server. Usage: | |
http://hostname:port/p/(URL to be proxied, minus protocol) | |
For example: | |
http://localhost:8080/p/www.google.com | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Jul 30 18:55:13 2014 | |
Just intonation classes for music theory experiments in Python | |
""" | |
from __future__ import division, print_function | |
from fractions import gcd as _gcd | |
from fractions import Fraction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from math import pi, log | |
import pylab | |
from scipy import fft, ifft | |
from scipy.optimize import curve_fit | |
i = 10000 | |
x = np.linspace(0, 3.5 * pi, i) | |
y = (0.3*np.sin(x) + np.sin(1.3 * x) + 0.9 * np.sin(4.2 * x) + 0.06 * | |
np.random.randn(i)) |
NewerOlder