Skip to content

Instantly share code, notes, and snippets.

View flohei's full-sized avatar

Florian Heiber flohei

View GitHub Profile
@thetzel
thetzel / inapp.php
Created July 13, 2012 20:01
In App Purchase Verification PHP Code
<?php
function verifyPurchase($transactionid, $productid, $uuid, $sandbox=false) {
$body = @file_get_contents('php://input');
//encode receipt
$body = base64_encode($body);
$receipt = json_encode(array("receipt-data" => $body));
@kahlil
kahlil / rss-subscribers.sh
Created September 26, 2012 08:18
Bash script to parse Apache log on your Uberspace account for a count of RSS subscribers and email it to you
#!/bin/bash
# Schedule this to run once a day with cron. Doesn't matter what time since it parses yesterday's hits (by default).
# I only tested this on the Marco.org server, which runs CentOS (RHEL). No idea how it'll work on other distributions, but it's pretty basic.
# Required variables:
RSS_URI="/rss"
MAIL_TO="[email protected]"
LOG_FILE="/home/[UBERSPACE_USERNAME]/logs/access_log"
@hvolkmer
hvolkmer / gist:4020468
Created November 5, 2012 21:32 — forked from aderyabin/gist:1465125
AppleScript to migrate from Things to Omnifocus
--------------------------------------------------
--------------------------------------------------
-- Import tasks from Things to OmniFocus
--------------------------------------------------
--------------------------------------------------
--
-- Script taken from: http://forums.omnigroup.com/showthread.php?t=14846&page=2
--
-- Added: creation date, due date, start date functionality
@ole
ole / update_storyboard_strings.sh
Last active April 4, 2022 06:11
Automatically extract translatable strings from Xcode storyboards and update .strings files. Original version by MacRumors forum user mikezang (http://forums.macrumors.com/showpost.php?p=16060008&postcount=4). Slightly updated by Ole Begemann. NOTE: this Gist moved to a regular repo at https://github.com/ole/Storyboard-Strings-Extraction.
# (File moved to https://github.com/ole/Storyboard-Strings-Extraction)