Skip to content

Instantly share code, notes, and snippets.

View danielpunkass's full-sized avatar

Daniel Jalkut danielpunkass

View GitHub Profile
@danielpunkass
danielpunkass / _hg
Last active August 29, 2015 14:12 — forked from yuitowest/_hg
#compdef hg
# Zsh completion script for mercurial. Rename this file to _hg and copy
# it into your zsh function path (/usr/share/zsh/site-functions for
# instance)
#
# If you do not want to install it globally, you can copy it somewhere
# else and add that directory to $fpath. This must be done before
# compinit is called. If the file is copied to ~/.zsh.d, your ~/.zshrc
# file could look like this:
@danielpunkass
danielpunkass / gist:998d716c360317b6ab07
Created August 12, 2014 19:28
Developer Tools bug reports...
Adding or removing constraints in window only affects visible tab view item
Bundled "cc" tool symlinks to non-existent clang
Clang attempts to reuse ObjC module with non-ObjC source file
Cmd-K should clear the Organizer's Device Console
Commit dialog unforgiving of trigger-finger text erasers
Confusing runtime error after switching class from ObjC to Swift
Constraints relating an NSBox's subviews to itself should transfer to the contentView
Copied system rule should retain change that prompted it
Deployment target for new XIB should match target it's added to
Disabling Xcode source control feature should hide the menu
<record-type name="custom field" code="Cfld">
<property name="label" code="cfNm" type="text" description="the name of a custom field as displayed in MarsEdit's user interface">
<cocoa key="userVisibleName" />
</property>
<property name="server field name" code="cfKy" type="text" description="the value of a custom field as it will be sent to the blog server">
<cocoa key="key" />
</property>
<property name="value" code="cfVl" type="text" description="the value of a custom field as it will be sent to the blog server">
<cocoa key="value" />
</property>
// These function pointers are intialized to point to objc_msgSend but with specific
// signatures to help clarify what the selector's expected signature and behavior are.
extern NSString* (*PerformSelectorReturningAutoreleasedString)(id, SEL);
extern NSString* (*PerformSelectorWithObjectReturningAutoreleasedString)(id, SEL, id);
extern id (*PerformSelectorReturningAutoreleasedObject)(id, SEL);
extern void (*PerformSelectorWithObjectReturningVoid)(id, SEL, id);
// To safely dynamic message an object where we expect a BOOL response, we
// need to clue the compiler into the situation sufficiently (this is especially
// broken on Intel if we don't do this).
@danielpunkass
danielpunkass / fsa.py
Last active July 22, 2018 02:50
A simple lldb module for adding an "fsa" command to inject F-Script anywhere into any process
"""
Automate loading of F-Script Anywhere into any app.
By Daniel Jalkut - @danielpunkass - http://indiestack.com/
To set up:
0. Make sure you have FScript.framework installed in /Library/Frameworks (http://www.fscript.org)
1. Copy this script to ~/.lldb/fsa.py
2. Add the following to your ~/.lldbinit file:
@danielpunkass
danielpunkass / SkipSeconds.applescript
Created April 1, 2014 18:41
Skip forward by N seconds in iTunes
on SkipSeconds(secondsToSkip)
tell application "iTunes"
set newPosition to player position + secondsToSkip
set player position to newPosition
end tell
end SkipSeconds
SkipSeconds(30.0)
@danielpunkass
danielpunkass / Linkify
Created March 3, 2014 14:28
Linkify MarsEdit Lines - a simple script to turn plain text shorthand for e.g. podcasting show notes into links
-- Linkify! Select text in HTML mode in MarsEdit that follows the convention:
--
-- [Link Title]
-- [Link URL]
-- [Link Description]
--
-- Separated by blank lines between clumps, and run this script to put
-- suitable HTML on the pasteboard for linking to each item.
on linkClustersFromText(inputText)
tell application "Finder"
repeat with diskNumber from 1 to count of disks
if ejectable of disk diskNumber is true then
display dialog "Hello " & (name of disk diskNumber)
end if
end repeat
end tell
@danielpunkass
danielpunkass / Quick5
Created May 20, 2013 13:57
Quick 5 ... bugmonkey code for adding an easy "Open first 5 tickets in background" button to FogBugz.
name: Quick 5
description: Add "Quick 5" shortcut link to the main UI to open up 5 tickets in separate windows
author: Daniel Jalkut
version: 1.0.0.0
js:
var xpath = function (xpath, context) {
var doc = window.document;
var result = doc.evaluate(xpath, context || doc, null, XPathResult.ANY_TYPE, null);
The enclosed config.xml file will instruct Jenkins to check out and build llvm + clang, archiving the resulting clang binary.
The configuration will build daily and will retain builds for 5 days.
To add it to your Jenkins install, just copy the config.xml file to e.g.:
jobs/Clang/config.xml
Then "reload configuration" in Jenkins, or stop and start Jenkins to reload it implicitly.