I hereby claim:
- I am dreness on github.
- I am dreness (https://keybase.io/dreness) on keybase.
- I have a public key ASC1Rvj8z_bm9ZwNPfYVwoRpML2fXRgFyvlCZAvCfA3cbQo
To claim this, I am signing this object:
#!/usr/bin/python | |
import colorsys | |
def ColorSpread(count, saturation, lightness): | |
''' | |
Compute a stepped spectrum sequence of color values that are evenly | |
distributed around the 360 degree hue wheel. Returns an array of rgb | |
values in hex. |
#!/usr/bin/python | |
import lldb | |
def patchAVAssetWriterInput64(frame, bp_loc, dict): | |
''' | |
Replace the 'outputSettings' argument to AVAssetWriterInput, to specify | |
a different video output codec. | |
This function wants to be called from a breakpoint command. | |
Use my setbp() function to create the breakpoint and breakpoint command. |
# make a new DB, in this case at ~/tmpdb, which is on the mac pro's internal SSD (disk0) | |
% ./bin/initdb -D ~/tmpdb | |
# set checkpoint_segments to 32 in postgres.conf, then start DB. | |
% ./bin/postgres -D /Users/andre/tmpdb | |
LOG: database system was shut down at 2014-07-03 11:49:38 PDT | |
LOG: database system is ready to accept connections |
#!/bin/bash | |
INTERVAL=$1 | |
while true ; do | |
output=$( | |
osascript -- - <<'EOF' | |
tell app "iTunes" | |
try | |
set artist_track to artist of current track ¬ |
# list the available formats for a youtube URL. | |
bash-3.2$ youtube-dl -F 'https://www.youtube.com/watch?v=NlFU2wM-f8g' | |
[youtube] NlFU2wM-f8g: Downloading webpage | |
[youtube] NlFU2wM-f8g: Extracting video information | |
[youtube] NlFU2wM-f8g: Downloading DASH manifest | |
[info] Available formats for NlFU2wM-f8g: | |
format code extension resolution note | |
140 m4a audio only DASH audio 129k , m4a_dash container, aac @128k (44100Hz), 5.35MiB (worst) | |
141 m4a audio only DASH audio 255k , m4a_dash container, aac @256k (44100Hz), 10.62MiB | |
160 mp4 230x144 DASH video 112k , 15fps, video only, 4.34MiB |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import time, os | |
import re | |
from email.mime.text import MIMEText | |
from subprocess import Popen, PIPE | |
from datetime import datetime, timedelta | |
# Watch the bitcoin log, send notifications of shares and blocks, with |
#!/usr/bin/perl -w | |
# Fetch and display wireless stats from an Apple Airport Extreme Base Station. | |
# Andre LaBranche, dre at mac dot com, 4/27/07 | |
use Switch; | |
use Getopt::Long qw(:config permute bundling); | |
# User Tuneables Start | |
# We need to define base stations and their SNMP community names for querying. |
#!/bin/bash | |
set -x | |
# 11/3/2013 - dre at mac dot com | |
# Create a ramdisk big enough for World of Warcraft (mac version only!) to | |
# store a few video capture files. Shortly after each file is written, copy it | |
# to rotational storage, delete it from the ramdisk, and then symlink it from | |
# rotational back to the ramdisk. |
## install composer | |
# mkdir dezalgo ; cd dezalgo | |
## place dezalgo.php (this file) into the new directory | |
# composer require mdwheele/zalgo | |
# php dezalgo.php --infile MyBestIRCLog --outfile MySafeIRCLog | |
<?php | |
require __DIR__ . '/vendor/autoload.php'; | |
use Zalgo\Mood; | |
use Zalgo\Soul; |
I hereby claim:
To claim this, I am signing this object: