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
""" | |
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. |
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
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")) |
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 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 |