Skip to content

Instantly share code, notes, and snippets.

@ThomasG77
ThomasG77 / split-openvpn-file-for-gnome-manager-import.sh
Last active August 9, 2023 12:38
Convert single OpenVPN file to multiple to be compatible for import in Gnome VPN manager (improved from https://askubuntu.com/questions/134918/setting-vpn-client)
#!/usr/bin/env bash
# Improved and automated version of https://askubuntu.com/questions/134918/setting-vpn-client
# First arg = directory where you want to collect files
# Second arg = filename input
# To illustrate
# ./generate-cleaned-openvpn.sh my_test_directory labtop.ovpn
# After run, import with
# sudo nmcli connection import type openvpn file my_test_directory/client.ovpn
@sathomas
sathomas / README.md
Last active August 28, 2024 18:05
Visualizing Differential Equations, III

The experiment in visualizing differential equations graduates to second order systems with this example. The graph is based on a phase plane diagram for an autonomous system in x and y. Each line is a solution to the system, and the animation illustrates how each solution evolves in time.

Note: The speed of the animation does not represent the speed as which each solution evolves. Faithfully reproducing the solution velocities would require a more computationally intensive animation technique that would make the visualization impractical in typical web browsers.

The default system has a stable equilibrium point at (0,0), so points near the origin spiral in towards (0,0). All solutions except the one that starts at (0,0) take an infinite amount of time to get there, however. The system also has an equilibrium on the unit circle (a circle of radius 1). That equilibrium is unstable, though. Solutions that start outside the unit circle spiral off to infin

@rtt
rtt / tinder-api-documentation.md
Last active September 27, 2024 11:02
Tinder API Documentation

Tinder API documentation

Note: this was written in April/May 2014 and the API may has definitely changed since. I have nothing to do with Tinder, nor its API, and I do not offer any support for anything you may build on top of this. Proceed with caution

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)