Skip to content

Instantly share code, notes, and snippets.

Avatar
🏝️
Working from everywhere

Philip Heinser philipheinser

🏝️
Working from everywhere
View GitHub Profile
@philipheinser
philipheinser / config.json
Created May 5, 2017
api.kickstarter.com GET /v1/app/ios/config
View config.json
{
"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",
View crash react native
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
View open-ssl-lambda.js
var sign = execFile("openssl", args, { stdio: "pipe", env:{'RANDFILE': Path.join(os.tmpdir(), 'foo')} }, function(error, stdout, stderr) {
});
View gist:deb95ca4e046c294ad33
//
// 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
NSManagedDocument App Delegate
View gist:5dab6d2c58f051f691fd
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 {
View No need for port 80
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080