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
@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.
@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"))
@bsless
bsless / vpn-setup.sh
Last active September 25, 2024 18:41
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