Skip to content

Instantly share code, notes, and snippets.

View AnnanFay's full-sized avatar
🏠
Working from home

AnnanFay

🏠
Working from home
View GitHub Profile
@bsless
bsless / vpn-setup.sh
Last active April 20, 2024 11:25
Set up a bunch of OpenVPN connections using nmcli with username and password
#!/usr/bin/env bash
USERNAME="$1"
PASS="$2"
for f in *.ovpn
do
name=`basename -s .ovpn $f`;
nmcli connection import type openvpn file $f
nmcli connection modify "${name}" +vpn.data connection-type=password-tls
@juzim
juzim / fanatic_com_key_extractor.js
Created January 30, 2018 20:32
Extract all steam keys from a fanatical.com order page
var nodes = document.getElementsByClassName('text-center font-weight-bold form-control')
var res = [];
for (var i = 0; i < nodes.length; i++) { res.push(nodes[i].value);}
console.log(res.join("\n"))
@macrintr
macrintr / gp_alter.py
Last active January 12, 2023 15:04
Removing "dummy" node need from STGP within DEAP
"""
File name: gp_alter.py
Author: Thomas Macrina
Date created: 03/21/2014
Python Version: 2.7
Overwriting the generate() method within DEAP's gp.py
to remove the need for "dummy" nodes within strongly-typed
individuals.