Skip to content

Instantly share code, notes, and snippets.

View JannieT's full-sized avatar

Jannie Theunissen JannieT

View GitHub Profile
@JannieT
JannieT / gist:7280127
Created November 2, 2013 15:31
Output when trying to install php53 via homebrew on osx mavericks
Jannies-MacBook-Air:~ Jannie$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
Jannies-MacBook-Air:~ Jannie$ php -v
PHP 5.4.17 (cli) (built: Aug 25 2013 02:03:38)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
Jannies-MacBook-Air:~ Jannie$ brew doctor
@JannieT
JannieT / gist:8234891
Created January 3, 2014 08:47
iPhone crash report
Jan 3 10:34:26 SpotlightiOS[1426] <Error>: Stacktrace:
Jan 3 10:34:26 SpotlightiOS[1426] <Error>: at <unknown> <0xffffffff>
Jan 3 10:34:26 SpotlightiOS[1426] <Error>: at SpotlightiOS.Play.ViewDidLoad () [0x00012] in /Users/Jannie/Workshop/SpotlightiOS/Play.cs:102
Jan 3 10:34:26 SpotlightiOS[1426] <Error>: at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0xffffffff>
Jan 3 10:34:26 SpotlightiOS[1426] <Error>: at <unknown> <0xffffffff>
Jan 3 10:34:26 SpotlightiOS[1426] <Error>: at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0xffffffff>
Jan 3 10:34:26 SpotlightiOS[1426] <Error>: at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/.pp-UIApplication.cs:38
Jan 3 10:34:26 SpotlightiOS[1426] <Error>: at SpotlightiOS.Application.Main (string[]) [0x00008] in /Users/Jannie/Workshop/SpotlightiOS/Main.cs:16
Jan 3 10:34:26
@JannieT
JannieT / gist:8302420
Created January 7, 2014 16:56
Web2Lead capture log
27.0 APEX_CODE,DEBUG;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO
16:51:04.025 (25093000)|EXECUTION_STARTED
16:51:04.025 (25133000)|CODE_UNIT_STARTED|[EXTERNAL]|066c00000009CtV|VF: /apex/public
16:51:04.052 (52434000)|CODE_UNIT_STARTED|[EXTERNAL]|01pc0000000A10m|PublicController <init>
16:51:04.052 (52464000)|SYSTEM_MODE_ENTER|true
16:51:04.056 (56464000)|METHOD_ENTRY|[9]|01pc0000000A10m|PublicController.PublicController()
16:51:04.056 (56498000)|METHOD_EXIT|[9]|PublicController
16:51:04.056 (56599000)|METHOD_ENTRY|[1]|01pc0000000ACgK|PublicFieldIdentifiers.PublicFieldIdentifiers()
16:51:04.056 (56611000)|METHOD_EXIT|[1]|PublicFieldIdentifiers
16:51:04.056 (56625000)|CONSTRUCTOR_ENTRY|[55]|01pc0000000ACgK|<init>()
@JannieT
JannieT / MockRequest.php
Last active June 24, 2018 16:41
Unit tests with oauth2-server-laravel
<?php
class MockRequest implements League\OAuth2\Server\Util\RequestInterface
{
public static function buildFromGlobals()
{
}
@JannieT
JannieT / .hgrc
Last active August 29, 2015 14:10
Mercurial deployment script
[ui]
username = Jannie Theunissen jannie@onesheep.org
ssh = ssh -C
@JannieT
JannieT / beanstald.sh
Last active August 5, 2016 14:02 — forked from finger-berlin/beanstald.sh
OSX script for easy start & stop beanstalkd (brew version)
#!/bin/sh
daemon=beanstalkd
executable=/usr/local/bin/$daemon
port=11300
waldir=/usr/local/var/beanstalkd
logfile=/usr/local/var/log/beanstalkd.log
interface="127.0.0.1"
params="-l $interface -p $port -b $waldir"
@JannieT
JannieT / dev.py
Last active April 27, 2023 14:39
Environment for scripting LibreOffice with Python
import uno
import sys
def createUnoService(id):
ctx = getContext()
return ctx.ServiceManager.createInstanceWithContext(id, ctx)
def getContext():
# get the uno component context from the PyUNO runtime
localContext = uno.getComponentContext()
@JannieT
JannieT / AndroidLocale.cs
Created May 2, 2017 06:58
Xamarin.Forms localization when using a shared project
namespace Langham
{
public class AndroidLocale : Locale
{
public AndroidLocale() : base()
{
}
public override void ApplyLocale()
@JannieT
JannieT / droid_set_version.targets
Last active January 25, 2019 12:02
Xamarin Multiplatform App Version Synchronization
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask TaskName="Increment" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll">
<ParameterGroup>
<Number ParameterType="System.Int64" Required="true"/>
<Incremented ParameterType="System.Int64" Output="true"/>
</ParameterGroup>
<Task>
<Code Type="Fragment" Language="cs">
Incremented = Number + 1;
@JannieT
JannieT / Source.php
Last active April 23, 2018 07:45
Sample php script to populate a mysql databse from a sqlite database
<?php
class Source
{
const CONNECTION = 'sqlite:pim6.sqlite';
private $db;
public function __construct()