Skip to content

Instantly share code, notes, and snippets.

View kfiresmith's full-sized avatar

Kodiak Firesmith kfiresmith

View GitHub Profile
@kfiresmith
kfiresmith / stellar_generate_and_print.py
Last active December 29, 2017 20:58
stellar_generate_and_print.py
#Use Python SDK from StellarCN to quickly generate deterministic wallets/keypairs
from stellar_base.utils import StellarMnemonic
from stellar_base.keypair import Keypair
sm = StellarMnemonic()
m = sm.generate()
print('\n' "Secret word list for deterministic seed:")
print(" " + m)
kp = Keypair.deterministic(m, lang='english')
def my_dns(lookup_string):
my_record = urllib.request.urlopen(lookup_string)
data = my_record.read()
encoding = my_record.info().get_content_charset('utf-8')
dns = json.loads(data.decode(encoding))
return(dns[0]["value"])
~/.redshift.conf
[redshift]
temp-day=5500
temp-night=4000
brightness-day=0.8
brightness-night=0.7
gamma-day=0.7
gamma-night=0.6
transition=0
adjustment-method=randr
@kfiresmith
kfiresmith / redshift.service.user
Last active July 3, 2017 23:41
redshift user service
~/.config/systemd/user/redshift.service
[Unit]
Description=Redshift display colour temperature adjustment
Documentation=http://jonls.dk/redshift/
After=display-manager.service
[Service]
ExecStart=/usr/bin/redshift -v -c /home/kfiresmith/.redshift.conf
Restart=always