Skip to content

Instantly share code, notes, and snippets.

@amrox
amrox / tailscale-subnet-router-over-openvpn.md
Created April 1, 2026 14:10
# Tailscale Subnet Router over OpenVPN

Use a Linux machine as a Tailscale subnet router to give your tailnet devices access to networks behind an OpenVPN tunnel.

Scenario

[ Phone/Tablet ]
       |
   (tailnet)
 |
@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() \
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]