Skip to content

Instantly share code, notes, and snippets.

Wolf Rentzsch rentzsch

Block or report user

Report or block rentzsch

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View unpopular-github.css
.social-count,
.stars,
strong.vcard-stat-count {
display: none !important;
}
View gist:c3df8c28b261757e4bdf
gyp info it worked if it ends with ok
gyp info using node-gyp@3.2.1
gyp info using node@4.2.3 | linux | x64
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/package-builder/build/config.gypi',
@rentzsch
rentzsch / OmniFocus Selected Mail Messages.applescript
Created Jan 6, 2015
OmniFocus Selected Mail Messages.applescript
View OmniFocus Selected Mail Messages.applescript
(*
OmniFocus Selected Mail Messages.applescript
Copyright (c) 2015 Jonathan 'Wolf' Rentzsch: http://rentzsch.com
Some rights reserved: http://opensource.org/licenses/mit
Pure AppleScript reimplementation of OmniGroup's Clip-o-Tron for OmniFocus.
Hopefully this implementation will be more resilient against OS X, Mail, and OmniFocus updates.
Successfully tested against OS X 10.10.1, OmniFocus 1.10.6, and OmniFocus 2.0.4.
View 01 retain_release_debug.m
#if 1
- (id)retain {
NSUInteger oldRetainCount = [super retainCount];
id result = [super retain];
NSUInteger newRetainCount = [super retainCount];
printf("%s<%p> ++retainCount: %lu => %lu\n", [[self className] UTF8String], self, oldRetainCount, newRetainCount);
printf("%s\n", [[[NSThread callStackSymbols] description] UTF8String]);
return result;
}
View gist:10032332
Sampling process 15358 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Deckset (pid 15358) every 1 millisecond
Process: Deckset [15358]
Path: /Applications/Deckset.app/Contents/MacOS/Deckset
Load Address: 0x10056c000
Identifier: com.unsignedinteger.Deckset
Version: 1.0 (1)
Code Type: X86-64
Parent Process: launchd [150]
View fts_spike.c
#include <stdio.h> // for fprintf, stderr, perror
#include <stdlib.h> // for exit() and EXIT_FAILURE
#include <errno.h> // for errno
#include <fts.h> // for fts
int main(int argc, const char *argv[]) {
char * const paths[] = {"/tmp", NULL};
FTS *tree = fts_open(paths, FTS_COMFOLLOW|FTS_NOCHDIR, NULL);
if (!tree) {
View gist:5955019
Last login: Tue Jul 9 00:48:28 on ttys004
wolf-air1:~ wolf$ mkdir _gitspike2
wolf-air1:~ wolf$ cd _gitspike2
wolf-air1:_gitspike2 wolf$ date > dates.txt
wolf-air1:_gitspike2 wolf$ gti init
Initialized empty Git repository in /Users/wolf/_gitspike2/.git/
wolf-air1:_gitspike2 wolf$ git add .
wolf-air1:_gitspike2 wolf$ gti ci -m "initial commit"
[master (root-commit) 005ff52] initial commit
1 file changed, 1 insertion(+)
View gist:5001843
@interface Person : NSObject
@property(strong) NSString *firstName;
@property(strong) NSString *lastName;
- (NSString*)fullName;
@end
@implementation Person
- (NSString*)fullName {
View CVE-2013-0262 harness.rb
require 'pp'
SEPS = Regexp.union(*[::File::SEPARATOR, ::File::ALT_SEPARATOR].compact)
def inspectPath(path_info)
parts = path_info.split SEPS
parts.inject(0) do |depth, part|
case part
when '', '.'
depth
View gist:4661844
"<!DOCTYPE html>"
"<html>"
"<head>"
" <meta charset=\"utf-8\" />"
" <style>"
" * {"
" margin:0;"
" padding:0;"
" }"
" </style>"
You can’t perform that action at this time.