Skip to content

Instantly share code, notes, and snippets.

@jpriebe
jpriebe / picasa_tags_to_exif.py
Created December 11, 2016 18:00
Move Picasa 3 tags into EXIF data for an entire library of photos
#!/usr/bin/python
from picasa3meta import pmpinfo
from picasa3meta import thumbindex
import fnmatch
import os
import sys
# python picasa_tags_to_exif.py db_dir root_dir search replace
@jpriebe
jpriebe / ffmpeg_decklink_h264_qsv.sh
Created October 26, 2016 20:19
Example script to encode video from a Decklink Mini Recorder using h264_qsv
<?php
/**
* Authenticates to a ubiquiti EdgeOS router and enable/disable firewall rules
*
*/
class ubiquiti
{
private $_host = '';
private $_login_url = '';
private $_json_url = '';
#!/bin/sh
####---------------------------------------------------------------------------
#### fix_swap.sh
####
#### designed for use with CentOS 7; we have noticed that our CentOS 7
#### hosts often use large amounts of swap when plenty of memory is
#### available. This causes false alarms in our system monitoring software
#### (zabbix).
####
#### this script reconfigures the system to be less swappy, and it
@jpriebe
jpriebe / us_state_capitals.json
Created January 7, 2016 19:33
US State Capitals JSON file
{
"AL": {
"name": "Alabama",
"capital": "Montgomery",
"lat": "32.361538",
"long": "-86.279118"
},
"AK": {
"name": "Alaska",
"capital": "Juneau",