This file contains hidden or 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
-- ----------------- | |
-- Setup environment | |
-- ----------------- | |
-- Animation off, mofo | |
hs.window.animationDuration = 0 | |
-- Get list of screens and refresh that list whenever screens are (un)plugged | |
local screens = hs.screen.allScreens() | |
local screenwatcher = hs.screen.watcher.new(function() |
This file contains hidden or 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
#!/bin/sh | |
ffmpeg -i $1 -b:v 1500k -vcodec libx264 -g 30 html5-$1.mp4 &>/dev/null | |
ffmpeg -i $1 -b:v 1500k -vcodec libvpx -acodec libvorbis -ab 160000 -f webm -g 30 html5-$1.webm &>/dev/null | |
ffmpeg -i $1 -b:v 1500k -vcodec libtheora -acodec libvorbis -ab 160000 -g 30 html5-$1.ogv &>/dev/null | |
echo "<video controls>" | |
echo " <source src=\"html5-$1.mp4\" type=\"video/mp4\">" | |
echo " <source src=\"html5-$1.webm\" type=\"video/webm\">" | |
echo " <source src=\"html5-$1.ogg\" type=\"video/ogg\">" |
This file contains hidden or 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
import stoker | |
import micropub | |
import time | |
MICROPUB_ENDPOINT = 'https://xn--cp8h2o.ws/micropub/endpoint' | |
INDIEAUTH_TOKEN = 'REDACTED' | |
SYNDICATE_TO = 'twitter::JonsHotMeat' | |
s = stoker.Stoker('bbq.lacour.local', timeout=120) |
This file contains hidden or 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
import boto | |
import sys | |
import time | |
from multiprocessing import Process, Queue | |
from Queue import Empty | |
class Worker(Process): | |
def __init__(self, me, q, bucketname): |
This file contains hidden or 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
<article class="h-review known-review"> | |
<h2 class="p-name"> | |
<a class="u-url" href="http://cleverdevil.io/2015/blood-rites"> | |
<span class="p-category">Book</span> Review: Blood Rites, by Jim Butcher | |
</a> | |
</h2> | |
<div class="p-item h-product"> | |
<h4 class="p-name"> | |
<a class="u-url" href="https://www.goodreads.com/book/show/99383.Blood_Rites">Blood Rites</a> |
This file contains hidden or 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
global | |
log /dev/log local0 | |
log /dev/log local1 notice | |
chroot /var/lib/haproxy | |
maxconn 4096 | |
tune.ssl.default-dh-param 2048 | |
user haproxy | |
group haproxy | |
daemon |
This file contains hidden or 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
#!/usr/bin/env python | |
import subprocess | |
import threading | |
import time | |
class Scanner(): | |
def __init__(self): | |
self.stop = threading.Event() |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am cleverdevil on github. | |
* I am cleverdevil (https://keybase.io/cleverdevil) on keybase. | |
* I have a public key whose fingerprint is C756 2813 F881 06E2 6F1F 547B 003F 530D 3859 B702 | |
To claim this, I am signing this object: |
This file contains hidden or 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
#!/usr/bin/env python | |
import os | |
import sys | |
import time | |
import socket | |
from paramiko import SSHClient, AutoAddPolicy | |
from novaclient.v1_1 import client as compute_client |
This file contains hidden or 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
#!/usr/bin/env python | |
''' | |
A script to search the Mac OS X Address Book via PyObjC bridge, and | |
then output the results in a format suitable for integration with | |
mutt. | |
Add the following to your `.muttrc`: | |
set query_command = "~/.mutt/contacts.py '%s'" |