I hereby claim:
- I am rrdial on github.
- I am ryandial (https://keybase.io/ryandial) on keybase.
- I have a public key whose fingerprint is A762 971D 48A2 DD60 AE7E AD14 12CA 4D27 EF82 B5A2
To claim this, I am signing this object:
START TRANSACTION; | |
SET @user_login = 'ryandial'; | |
SET @user_nicename = 'Ryan Dial'; | |
SET @user_email = 'ryan@example.com'; | |
INSERT INTO `wp_users` (`user_login`, | |
`user_pass`, | |
`user_nicename`, | |
`user_email`, |
<?php | |
\DB::listen(function($query) { | |
static $i = 0; | |
$sql = str_replace('?', '"%s"', $query->sql); | |
\Log::debug(sprintf('********** Query number %d ********** ', ++$i) . vsprintf($sql, $query->bindings)); | |
}); |
allow-hotplug wlan0 | |
iface wlan0 inet dhcp | |
wpa-ssid "<ssid here>" | |
wpa-psk "<psk here>" |
#!/bin/bash | |
RTMP_URL=CHANGE_ME | |
KEY=CHANGE_ME | |
while true; | |
do | |
avconv -i rtsp://user:password@ip.webcam.address:554/play2.sdp -ar 44100 -q 3 -f flv "${RTMP_URL}/${KEY}" | |
sleep 10 | |
done; |
I hereby claim:
To claim this, I am signing this object:
## Square an image by adding padding to appropriate top/bottom or sides | |
convert {{input_file_name}} \( +clone -rotate 90 +clone -mosaic +level-colors white \) +swap -gravity center -composite {{output_file_name}} | |
## Optimize and compress a png | |
pngquant -f --speed 1 {{file_name}} | |
## Convert an EPS to a web-usable image format | |
convert -units PixelsPerInch -density 300 {{input_file_name}} -resize 700x700 {{output_file_name}} |
mysqldump -u{user} -p --triggers --routines --single-transaction -A > full_dump.$(date "+%F-%T").sql |
find . -type d -print0 | xargs -0 chmod 0755 # For directories | |
find . -type f -print0 | xargs -0 chmod 0644 # For files |
#!/usr/bin/env php | |
<?php | |
$raw_videos = __DIR__ . '/raw/'; | |
$converted_videos = __DIR__ . '/converted/'; | |
if (file_exists($raw_videos) and is_dir($raw_videos)) | |
{ | |
if (!file_exists($converted_videos)) |