Skip to content

Instantly share code, notes, and snippets.

Kodiak Firesmith kfiresmith

View GitHub Profile
@kfiresmith
kfiresmith / emit-sha512.py
Created Apr 19, 2020
kickstart sh512 password hasher
View emit-sha512.py
#! /usr/bin/python
# Prompt user for a password string, then create a salted SHA512 hash
import crypt
import getpass
import sys
sys.dont_write_bytecode = True
userinput = getpass.getpass(prompt='Enter a password string to hash in SHA-512: ')
@kfiresmith
kfiresmith / RHEL7_buildreqs_OpenAFS
Created Mar 17, 2018
RHEL 7 OpenAFS Build Requirements
View RHEL7_buildreqs_OpenAFS
#!/bin/bash
yum -y install rpm-build bison perl-ExtUtils-Embed flex ncurses-devel pam-devel krb5-devel kernel-devel gcc
@kfiresmith
kfiresmith / stellar_generate_and_print.py
Last active Dec 29, 2017
stellar_generate_and_print.py
View 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')
View dns_lookup_api.funct
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"])
View redshift.conf.user
~/.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 Jul 3, 2017
redshift user service
View redshift.service.user
~/.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
You can’t perform that action at this time.