Skip to content

Instantly share code, notes, and snippets.

@amrox
amrox / AMAsynchronousOperation+Private.h
Last active January 19, 2020 22:13
AMAsynchronousOperation
#import "AMAsynchronousOperation.h"
@interface AMAsynchronousOperation ()
@property (nonatomic, assign, readwrite) AMAsynchronousOperationState state;
@end
#ifndef AMAsynchronousOperation_FinishIfCancelled
#define AMAsynchronousOperation_FinishIfCancelled() \
@amrox
amrox / opencv-err.log
Created September 4, 2018 22:12
OpenCV Xcode 10 error
$ python platforms/ios/build_framework.py build/ios
Executing: ['cmake', '-GXcode', '-DAPPLE_FRAMEWORK=ON', '-DCMAKE_INSTALL_PREFIX=install', '-DCMAKE_BUILD_TYPE=Release', '-DIOS_ARCH=armv7', '-DCMAKE_TOOLCHAIN_FILE=/Users/amrox/opencv/platforms/ios/cmake/Toolchains/Toolchain-iPhoneOS_Xcode.cmake', '-DENABLE_NEON=ON', '/Users/amrox//slyce.cvlib/3rdparty/opencv'] in /Users/amrox//slyce.cvlib/3rdparty/opencv/build/ios/build/build-armv7-iphoneos
-- Setting up iPhoneOS toolchain for IOS_ARCH='armv7'
-- iPhoneOS toolchain loaded
-- Setting up iPhoneOS toolchain for IOS_ARCH='armv7'
-- iPhoneOS toolchain loaded
-- The CXX compiler identification is AppleClang 10.0.0.10001043
-- The C compiler identification is AppleClang 10.0.0.10001043
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
task abc (type:Exec) {
String clientDir = project.buildscript.sourceFile.getParent()
String version = new File("${clientDir}/Assets/Resources/version.txt").text
String buildDir = "${clientDir}/Build/${version}"
commandLine "/bin/customtool", "${buildDir}/artifact"
}
@amrox
amrox / hack.sh
Created November 2, 2012 06:50 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/3999124/hack.sh | sh
#
  • Would
  • this
  • work?
@amrox
amrox / gist:2943049
Created June 17, 2012 01:06
Story of my life
[amrox@gorbash:bin]$ sudo gem install cocoapods --pre
Fetching: cocoapods-0.6.0.rc2.gem (100%)
[!] If this is your first time install of CocoaPods, or if you are upgrading, first run: $ pod setup
Successfully installed cocoapods-0.6.0.rc2
1 gem installed
[amrox@gorbash:bin]$ pod setup
bash: pod: command not found
@amrox
amrox / gist:2212629
Created March 27, 2012 04:52
alias sussudio
alias sussudio='echo -e "There\047s this girl that\047s been on my mind\nAll the time, Sussudio oh oh\nNow she don\047t even know my name\nBut I think she likes me just the same\nSussudio oh oh" ; sudo'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildNumber</key>
<string>BUILD_NUMBER</string>
<key>CFBundleShortVersionString</key>
<string>MARKETING_VERSION</string>
<key>CFBundleVersion</key>
<string>VERSION</string>
$ xcodebuild -sdk iphonesimulator -scheme "Unit Tests" -configuration Debug build
Build settings from command line:
SDKROOT = iphonesimulator5.0
=== BUILD NATIVE TARGET MSAppKit OF PROJECT MSAppKit WITH CONFIGURATION Debug ===
Check dependencies
=== BUILD NATIVE TARGET MSAppKitTests OF PROJECT MSAppKit WITH CONFIGURATION Debug ===
Check dependencies
[amrox@gorbash:inception(master)]$ ./inception
Dreamer [Fischer], level [1], priority [19], policy [OTHER]
Dreamer [Cobb], level [1], priority [19], policy [OTHER]
Dreamer [Ariadne], level [1], priority [19], policy [OTHER]
Dreamer [Arthur], level [1], priority [19], policy [OTHER]
Dreamer [Eames], level [1], priority [19], policy [OTHER]
Dreamer [Yusuf], level [1], priority [19], policy [OTHER]
Dreamer [Saito], level [1], priority [19], policy [OTHER]
[Fischer] HIJACKED ! Open up my defense projections in my dream to the hijackers!
[Ariadne] sees Fischers defense projections at work in the dream at level [1]