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
// clang -W -Wall -Wno-unused-parameter -framework Foundation -fobjc-arc test.m | |
#import <Foundation/Foundation.h> | |
#define IDARRAY(...) ((id[]){ __VA_ARGS__ }) | |
#define IDCOUNT(...) (sizeof(IDARRAY(__VA_ARGS__)) / sizeof(id)) | |
typedef id (^Tuple)(int); |
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
- Copy the delivered ipa into a directory to work in. | |
- export PlistBuddy="/usr/libexec/PlistBuddy" to get the PlistBuddy tool to your shell. If it is not added, all references to PlistBuddy | |
will need to be written as the full path. | |
- Take the delivered App.ipa and unzip it using the unzip command. This should produce a Payload directory containing the app and its | |
resources. | |
- Enter the command "codesign -d --entitlements :enterprise.plist Payload/PathToApp.app/" This pulls the entitlements out of the app, and | |
prints them to a plist, without a leading "blob" of data. Pay particular attention to the colon before the enterprise.plist file name. |
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> |
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
#!/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
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
# | |
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
#!/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
*.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
################################################## | |
## Attribute for diff'ing UTF-8 .strings files | |
*.strings -crlf set diff | |
################################################## | |
## Attribute to for easy merging of Xcode project files | |
*.pbxproj merge=union |
OlderNewer