Skip to content

Instantly share code, notes, and snippets.

View philipheinser's full-sized avatar
🏝️
Working from everywhere

Philip Heinser philipheinser

🏝️
Working from everywhere
View GitHub Profile
@philipheinser
philipheinser / config.json
Created May 5, 2017 23:34
api.kickstarter.com GET /v1/app/ios/config
{
"strings": {
"About_reward_amount": "About %{reward_amount}",
"Add_attachments": "Add attachments…",
"All_Projects": "All Projects",
"All_category_name_Projects": "All %{category_name} Projects",
"All_Art_Projects": "All Art Projects",
"All_Comics_Projects": "All Comics Projects",
"All_Crafts_Projects": "All Crafts Projects",
"All_Dance_Projects": "All Dance Projects",
Error while updating property 'transform' of a view managed by: RCTView
updateViewProp
ViewManagersPropertyCache.java:88
setProperty
ViewManagerPropertyUpdater.java:123
updateProps
ViewManagerPropertyUpdater.java:42
updateProperties
ViewManager.java:34
updateProperties
var sign = execFile("openssl", args, { stdio: "pipe", env:{'RANDFILE': Path.join(os.tmpdir(), 'foo')} }, function(error, stdout, stderr) {
});
//
// BetterSwift.swift
// Quatierbuch Lappen
//
// Created by Philip Heinser on 04.05.15.
// Copyright (c) 2015 Philip Heinser. All rights reserved.
//
import Foundation
@philipheinser
philipheinser / gist:5dab6d2c58f051f691fd
Created May 4, 2015 18:29
NSManagedDocument App Delegate
let fileManager = NSFileManager.defaultManager()
let directoryArray = fileManager.URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask)
let directoryUrl = directoryArray[0] as! NSURL
let documentName = "data-store"
let url:NSURL = directoryUrl.URLByAppendingPathComponent(documentName)
var document = UIManagedDocument(fileURL: url)
let fileExists = fileManager.fileExistsAtPath(url.path!)
if fileExists {
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080