I hereby claim:
- I am markcaudill on github.
- I am mcaudill (https://keybase.io/mcaudill) on keybase.
- I have a public key whose fingerprint is 105C 4606 25A9 0BA4 7367 38DA B1CC CB0A 8630 0137
To claim this, I am signing this object:
| #!/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` | |
| """ |
| #!/bin/bash | |
| tmpdir=$(mktemp -d) | |
| s3bucket="s3://MY_BUCKET" | |
| backup="$(date '+%Y-%m-%d-%H%M').tbz" | |
| orig_pwd=$(pwd) | |
| cd $HOME/.. | |
| logger -s -i "Backing up $HOME to $s3bucket/$(hostname -s)/$backup" | |
| # Compress |
| #!/usr/bin/python | |
| import xmlrpclib | |
| SAT_URL = "https://<SATELLITE_IP>/rpc/api" | |
| SAT_USER = "<USERNAME>" | |
| SAT_PASS = "<PASSWORD>" | |
| client = xmlrpclib.Server(SAT_URL, verbose=0) | |
| key = client.auth.login(SAT_USER, SAT_PASS) |
| #!/usr/bin/python | |
| # Copyright (C) 2013 Mark Caudill | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining | |
| # a copy of this software and associated documentation files | |
| # (the "Software"), to deal in the Software without restriction, | |
| # including without limitation the rights to use, copy, modify, merge, | |
| # publish, distribute, sublicense, and/or sell copies of the Software, | |
| # and to permit persons to whom the Software is furnished to do so, |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>tmplog</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta name="description" content=""> | |
| <meta name="author" content=""> | |
| <!-- Le styles --> |
| #!/bin/sh | |
| cd /tmp/ | |
| sudo apt-get install build-essential | |
| wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz | |
| tar -xzf Python-2.7.2.tgz | |
| cd Python-2.7.2 | |
| sudo apt-get install libsqlite3-dev zlib1g-dev libncurses5-dev | |
| sudo apt-get install libgdbm-dev libbz2-dev libreadline5-dev | |
| sudo apt-get install libssl-dev libdb-dev | |
| ./configure --enable-shared |