Keybase proof
I hereby claim:
- I am markcaudill on github.
- I am mcaudill (https://keybase.io/mcaudill) on keybase.
- I have a public key ASAx-_PBs4UHFolqsyS7tfK4aJ8Y1jbizy7bs82Ej60MJwo
To claim this, I am signing this object:
#!/bin/sh | |
DATABASE=${HOME}/.app-track.db | |
touch "${DATABASE}" && chmod 0600 "${DATABASE}" | |
active_window_id() { | |
xprop -root _NET_ACTIVE_WINDOW | rev | cut -d' ' -f1 | rev | |
} | |
window_pid_by_id() { |
I hereby claim:
To claim this, I am signing this object:
This makes it easy to automate pausing your Cloudflare zone(s), renewing your letsencrypt certs, and then unpausing your zone(s).
python-cloudflare
is installed either in system or virtualenv.chmod 0700 certbot-renew.sh
before you add your credentials.certbot renew
cron job with something like @daily /path/to/certbot-renew.sh
.MAILTO="youremail"
in the top of your crontab to easily see the output whenever it runs.I hereby claim:
To claim this, I am signing this object:
# Install RPM Fusion | |
sudo dnf install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-22.noarch.rpm | |
sudo dnf install http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-22.noarch.rpm | |
# The rest | |
sudo dnf install kernel-devel broadcom-wl akmod-wl akmods | |
sudo akmods | |
sudo reboot |
#!/bin/bash | |
# | |
# btsync Start up the btsync server daemon | |
# | |
# chkconfig: 2345 55 25 | |
# description: btsync is like this sync thing. Google it. | |
# | |
# processname: btsync | |
# config: /etc/btsync.conf | |
# pidfile: /var/run/btync/btsync.pid |
#!/bin/bash | |
# Analyze your schedulers. Don't use this. 2nasty4u | |
# Usage: $0 [sda sdb ...] | tee -a schedulers.csv | |
devs=$* | |
for dev in $devs; do | |
# Save the current scheduler | |
active_scheduler=`cat /sys/block/$dev/queue/scheduler | grep -Eo '\[[a-z]+\]' | sed 's/\[//g' | sed 's/\]//g'` | |
for scheduler in `cat /sys/block/$dev/queue/scheduler | sed 's/\[//g' | sed 's/\]//g'`; do |
#!/bin/bash | |
LAST=/tmp/last_public_ip | |
NOTIFY="you@domain.tld" | |
ip=$(curl -s https://mrkc.me/ip) | |
if [[ ! -e $LAST ]] || [[ "$ip" != "$(cat $LAST)" ]]; then | |
cat $LAST | |
echo -n "$ip" > $LAST |
I hereby claim:
To claim this, I am signing this object:
# -*- coding: utf-8 -*- | |
from datetime import datetime | |
import sublime_plugin | |
class TimestampCommand(sublime_plugin.EventListener): | |
"""Expand `isoD`, `now`, `datetime`, `utcnow`, `utcdatetime`, | |
`date` and `time` | |
""" |