Skip to content

Instantly share code, notes, and snippets.

View LeTink's full-sized avatar

Tink LeTink

View GitHub Profile
@LeTink
LeTink / oobling.py
Last active August 29, 2015 14:22
Attempt at salt module
#!/usr/bin/env python
import json
import sys
import dns.resolver
import re
import subprocess
# as salt is installed in the OS'es python path and conda knows nothing about it ...
sys.path.append("/usr/lib/python2.7/dist-packages")
import salt.client
# If you'd like to sign all keys with the same Common Name, uncomment the KEY_CN export below
# You will also need to make sure your OpenVPN server config has the duplicate-cn option set
# export KEY_CN="CommonName"
@LeTink
LeTink / countryinfo.py
Created August 27, 2018 07:05 — forked from pamelafox/countryinfo.py
Python list of country codes, names, continents, capitals, and pytz timezones
countries = [
{'timezones': ['Europe/Andorra'], 'code': 'AD', 'continent': 'Europe', 'name': 'Andorra', 'capital': 'Andorra la Vella'},
{'timezones': ['Asia/Kabul'], 'code': 'AF', 'continent': 'Asia', 'name': 'Afghanistan', 'capital': 'Kabul'},
{'timezones': ['America/Antigua'], 'code': 'AG', 'continent': 'North America', 'name': 'Antigua and Barbuda', 'capital': "St. John's"},
{'timezones': ['Europe/Tirane'], 'code': 'AL', 'continent': 'Europe', 'name': 'Albania', 'capital': 'Tirana'},
{'timezones': ['Asia/Yerevan'], 'code': 'AM', 'continent': 'Asia', 'name': 'Armenia', 'capital': 'Yerevan'},
{'timezones': ['Africa/Luanda'], 'code': 'AO', 'continent': 'Africa', 'name': 'Angola', 'capital': 'Luanda'},
{'timezones': ['America/Argentina/Buenos_Aires', 'America/Argentina/Cordoba', 'America/Argentina/Jujuy', 'America/Argentina/Tucuman', 'America/Argentina/Catamarca', 'America/Argentina/La_Rioja', 'America/Argentina/San_Juan', 'America/Argentina/Mendoza', 'America/Argentina/Rio_Gallegos', 'America/Argentina/Ushuai
@LeTink
LeTink / 00 - Brief
Last active September 19, 2018 19:41
set USB3 back to USB2
One of our standard hardware classes doesn't handle a large number (32) of daisy-chained USB Serials well, it exhausts lanes.
As a workaround we set the capabilities of the USB port in question back to lower standards, which seems to do what we want.