I hereby claim:
- I am lkorth on github.
- I am lkorth (https://keybase.io/lkorth) on keybase.
- I have a public key whose fingerprint is 0B8B 59CB C364 A838 EB1B ABBD BBF0 3918 CA74 82D0
To claim this, I am signing this object:
<?php | |
/** | |
* PHP function for generating cryptography secure strings of a given length | |
* | |
* @param $length the length in bytes for the generated key | |
* @return the cryptography secure string of {$length} length | |
*/ | |
function generate_key($length) { | |
$strong = FALSE; |
<?php | |
function resolve_url($url) { | |
$headers = get_headers($url); | |
$headers = array_reverse($headers); | |
foreach($headers as $header) { | |
if (strpos($header, 'Location: ') === 0) { | |
$url = str_replace('Location: ', '', $header); | |
break; | |
} |
curl -o /dev/null http://speedtest.wdc01.softlayer.com/downloads/test500.zip |
<?php | |
// This PHP code snippet provides a basic understanding of | |
// PHP's AES encryption. Mirrored from here: http://www.chilkatsoft.com/p/php_aes.asp | |
// The first thing to understand is the meaning of these constants: | |
// MCRYPT_RIJNDAEL_128 | |
// MCRYPT_RIJNDAEL_192 | |
// MCRYPT_RIJNDAEL_256 | |
// You would think that MCRYPT_RIJNDAEL_256 specifies 256-bit encryption, |
<uses-permission android:name="android.permission.WAKE_LOCK" /> | |
<service android:name=".ProxService" /> |
git diff --shortstat "@{8 hours ago}" |
I hereby claim:
To claim this, I am signing this object:
function process_video { | |
# let Android finish the recording | |
sleep 5 | |
# pull the video off the device | |
adb pull /sdcard/video-to-gif.mp4 . | |
adb shell rm /sdcard/video-to-gif.mp4 | |
mkdir recorded-gifs |
#!/usr/bin/python | |
import sys | |
import argparse | |
import os | |
import re | |
''' | |
A simple script to create lower-resolution Android drawables from higher-resolution ones. |
The MIT License (MIT) | |
Copyright (c) 2015 Luke Korth | |
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, subject to the following conditions: |