Skip to content

Instantly share code, notes, and snippets.

View ragboy's full-sized avatar

ragboy

View GitHub Profile
@ragboy
ragboy / redis_migrate.py
Created September 27, 2017 06:57 — forked from iserko/redis_migrate.py
A simple script to migrate all keys from one Redis to another
#!/usr/bin/env python
import argparse
import redis
def connect_redis(conn_dict):
conn = redis.StrictRedis(host=conn_dict['host'],
port=conn_dict['port'],
db=conn_dict['db'])
return conn
#!/usr/bin/php
<?php
//this requires php-ffmpeg installed with composer
//https://github.com/PHP-FFMpeg/PHP-FFMpeg
//requires handbrake for cropping and ffmpeg 3.0+ with lib_fdk and eac3 easily installed with brew.
require_once 'vendor/autoload.php';
date_default_timezone_set('America/Los_Angeles');
$cloud = false;
$home_dir = getenv('HOME');