Skip to content

Instantly share code, notes, and snippets.

View chucker's full-sized avatar

Sören Nils Kuklau chucker

View GitHub Profile
View gist:55930
NSString *currentProcessBundleID = [[NSBundle mainBundle] bundleIdentifier];
NSLog(@"ClickToFlash: currentProcessBundleID: %@ %d", currentProcessBundleID, [currentProcessBundleID isEqualToString:@"com.apple.Safari"]);
//=> ClickToFlash: currentProcessBundleID: com.apple.Safari 1
if ([[[NSBundle mainBundle] bundleIdentifier] isEqualToString:@"com.apple.Safari"]) {
NSLog(@"ClickToFlash: bundleForClass self: %@", [[NSBundle bundleForClass:[self class]] bundleIdentifier]);
//=> ClickToFlash: bundleForClass self: com.github.rentzsch.clicktoflash
static SUUpdater *updater = nil;
if (!updater) {
updater = [SUUpdater updaterForBundle:[NSBundle bundleForClass:[self class]]];
NSLog(@"ClickToFlash: updater: %@", updater);
View ipboard_skin_unarchiver.rb
#!/usr/bin/ruby
require 'rubygems'
require 'nokogiri'
require 'ftools'
require 'base64'
HG_PATH = '/usr/local/bin/hg'
def clean_up(dirpath)
View choco_outdated.csx
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text.RegularExpressions;
ILookup<string, string> localPackages,
remotePackages;
using (var process = new Process())
View gist:905c03bad5d10c62e12b
Downloading BowPad 64 bit
from 'https://sourceforge.net/projects/bowpad-sk/files/2.1.0/BowPad64-2.1.0.msi/download'
Installing BowPad...
T h i s i n s t a l l a t i o n p a c k a g e c o u l d n o t b e o p e n e d . C o n t a c t t h e a p p l i c a t i o n v e n d o r t o v e r i f y t h a t t h i s i s a v a l i d W i n d o w s I n s t a l l e r p a c k a g e .
[ERROR] Running msiexec with /i "C:\Users\kuklau\AppData\Local\Temp\chocolatey\BowPad\BowPadInstall.msi" /quiet was
not successful. Exit code was '1620' Error Message:
View keybase.md

Keybase proof

I hereby claim:

  • I am chucker on github.
  • I am chucker (https://keybase.io/chucker) on keybase.
  • I have a public key ASD09QJ2X-B2Dtho9B6rpApFfLihYaMWuOsC1CQUR2VEkQo

To claim this, I am signing this object:

View csharp-property-wrapper.cs
using System;
[System.Runtime.CompilerServices.PropertyWrapper]
public class Expirable<TValue> : Attribute
{
private TimeSpan duration;
private DateTime expirationDate;
private TValue? innerValue = null;