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
#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') |
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
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"]) |
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
~/.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 |
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
~/.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 |
NewerOlder