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
#!/bin/bash -x | |
# This script automatically sets the version and short version string of | |
# an Xcode project from the Git repository containing the project. | |
# | |
# To use this script in Xcode 4, add the contents to a "Run Script" build | |
# phase for your application target. | |
set -o errexit | |
set -o nounset |
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
// Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
// Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
// Licensed under MIT (http://opensource.org/licenses/MIT) | |
// | |
// You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
// PLEASE DUPE rdar://27192338 (https://openradar.appspot.com/27192338) if you would like to see this in UIKit. | |
#import <objc/runtime.h> | |
#import <objc/message.h> |
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
################################################## | |
## Attribute for diff'ing UTF-8 .strings files | |
*.strings -crlf set diff | |
################################################## | |
## Attribute to for easy merging of Xcode project files | |
*.pbxproj merge=union |
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
*.xcuserdatad/ | |
docset-installed.txt | |
# OS X Finder | |
.DS_Store | |
# Xcode per-user config | |
*.mode1 | |
*.mode1v3 | |
*.mode2v3 |
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
#!/bin/bash #-x | |
GIT_TAG="${1}" | |
echo "Deleting remote git tag: ${GIT_TAG}" | |
git tag -d "${GIT_TAG}" | |
git push origin ":refs/tags/${GIT_TAG}" |
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
# | |
def na=double.nan; | |
# | |
# Define time that OR begins (in hhmm format, | |
# 0930 is the default): | |
# | |
input ORBegin = 0930; | |
# | |
# Define time that OR is finished (in hhmm format, | |
# 10:00 is the default): |
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
These two files should help you to import passwords from mac OS X keychains to 1password. | |
Assumptions: | |
1) You have some experience with scripting/are a power-user. These scripts worked for me | |
but they haven't been extensively tested and if they don't work, you're on your own! | |
Please read this whole document before starting this process. If any of it seems | |
incomprehensible/frightening/over your head please do not use these scripts. You will | |
probably do something Very Bad and I wouldn't want that. | |
2) You have ruby 1.9.2 installed on your machine. This comes as standard with Lion, previous | |
versions of OS X may have earlier versions of ruby, which *may* work, but then again, they |
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
#!/bin/bash | |
######################################################################################### | |
### | |
### DirectoryDestoryer.command | |
### Corrupt journal and bitmap of a given disk identifier | |
### | |
### Copyright (c) 2013 Kevin Ross. All rights reserved. | |
### | |
### Redistribution and use in source and binary forms, with or without modification, |
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
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
/// | |
/// KRStaticAnalyzerAnnotations.h | |
/// | |
/// The Clang frontend supports several source-level annotations in the form of GCC-style attributes and pragmas | |
/// that can help make using the Clang Static Analyzer more useful. These annotations can both help suppress | |
/// false positives as well as enhance the analyzer's ability to find bugs. | |
/// | |
/// For more info see: http://clang-analyzer.llvm.org/annotations.html | |
/// |
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
// | |
// PhotoGrabber.h | |
// By Erik Rothoff Andersson <erikrothoff.com> | |
// | |
#import <Foundation/Foundation.h> | |
#import <QTKit/QTKit.h> | |
@protocol PhotoGrabberDelegate <NSObject> |