This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fixpng () | |
{ | |
if [[ ! -f $1 ]] ; then | |
echo "Usage: fixpng <inputFiles> [outputFile]" | |
return -1 | |
else | |
local inputFile=$1 | |
local outputFile=$1 | |
if [[ -e $2 ]] ; then | |
outputFile=$2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "Audio Hijack Pro" | |
set myAudio to (first session whose name is "Core Intuition MOTU 828") | |
set skypeAudio to (first session whose name is "Skype") | |
-- Start recording my mic input | |
start hijacking myAudio | |
start recording myAudio | |
-- Start recording Skype audio | |
start hijacking skypeAudio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation NSUserDefaults (RSFoundation) | |
+ (BOOL) rsImportPreferencesFromBundleID:(NSString*)otherBundleID ifNewerThanBundleID:(NSString*)ourBundleID | |
{ | |
BOOL didMigrate = NO; | |
NSArray* libraryFolders = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES); | |
if ([libraryFolders count] > 0) | |
{ | |
NSString* prefsFolder = [[libraryFolders objectAtIndex:0] stringByAppendingPathComponent:@"Preferences"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os | |
import sys | |
import urllib | |
# Change this to match your mail server's REVERSE static IP address | |
staticIPAddress = "1.0.0.127" | |
# Change this to an email address you don't mind sending to and from for the notice alert delivery |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on SkipSeconds(secondsToSkip) | |
tell application "iTunes" | |
set newPosition to player position + secondsToSkip | |
set player position to newPosition | |
end tell | |
end SkipSeconds | |
SkipSeconds(30.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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: |