I hereby claim:
- I am rascul on github.
- I am rascul (https://keybase.io/rascul) on keybase.
- I have a public key whose fingerprint is CE7D 4AC6 1BA6 B77A EEE4 3EF4 CAB9 7E4F E40C F1D7
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# Usage info | |
read -r -d '' helptext <<- EOF | |
Usage: ${0##*/} [-gsvh] -k KEYFILE -r REMOTEHOST -u USERNAME | |
Initialize a fresh, new DigitalOcean droplet. | |
Required: |
#!/usr/bin/env bash | |
start_stamp=$(date +%s) | |
file_count=0 | |
skeldir="${PWD}/skel" | |
function generate { | |
infile="$1" | |
outfile="$2" |
#!/usr/bin/env python3 | |
# set this stuff | |
apikey = "blahblahblah" | |
statfile = "newbie.stats" | |
name = "test" | |
sex = "M" | |
faction = "H" | |
cclass = "W" |
""" Google Plugin (yamms plugins.google) """ | |
# Copyright 2015 Ray Schulz <https://rascul.io> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
""" Url Title Plugin (botwot plugins.urltitle) """ | |
# Copyright 2014 Ray Schulz <https://rascul.io> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
""" Weed Plugin (botwot plugins.weed) """ | |
# Copyright 2014 Ray Schulz <https://rascul.io> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
let file = match fs::File::open(entry) { | |
Ok(f) => f, | |
Err(e) => { | |
println!("Couldn't open file: {}: {:?}", entry.display(), e.kind()); | |
return data; | |
}, | |
}; |
#!/usr/bin/env bash | |
devpath="/sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-eDP-1/intel_backlight" | |
max_bright=$(<$devpath/max_brightness) | |
printf "max\t%s\t100%%\n" $max_bright | |
if [[ -n "$1" ]]; then | |
new_bright=$1 | |
if [[ ${new_bright:${#new_bright}-1} = "%" ]]; then |
# Feel free to edit this config. Don't remove any options. | |
declare -A config=( | |
# Directories. No trailing slashes. | |
["content"]="content" | |
["output"]="www" | |
["templates"]="templates" | |
# Add .html extention to generated files |