Laste Update: Fri 05 Jun 2020 02:22:05 PM UTC
With hardware, you could intercept traffic.
- Download APK
#!/usr/bin/env ruby | |
# | |
# Prerequisites: | |
# gem install bundler | |
# bundle install | |
dependencies = `bundle show | grep '*' | awk '{print $2, $3}' | sed -e 's/(//' -e 's/)//'`.split("\n") | |
dependencies.each do |dependency| | |
(gem_name, version) = dependency.split |
Laste Update: Fri 05 Jun 2020 02:22:05 PM UTC
With hardware, you could intercept traffic.
# cd to the folder containing an Xcode project dragged from an Xcode window's proxy icon. If no file is provided, cd to the folder containing the current Xcode project | |
function xc | |
{ | |
xcodeIsRunning=false | |
if [[ `osascript -e 'tell app "System Events" to count processes whose name is "Xcode"'` == 1 ]]; then | |
xcodeIsRunning=true | |
fi | |
if [[ $xcodeIsRunning == false ]]; then | |
echo "Xcode is not open. I don’t know what you want from me." |
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
class ExceptionTestCase: XCTestCase { | |
func raisesException() { | |
var exception = NSException(name: NSInternalInconsistencyException, reason: "Testing exceptions", userInfo: nil) | |
XCTAssertThrows({ exception.raise() }, "Should raise an exception) | |
XCTAssertThrowsSpecific({ exception.raise() }, NSInternalInconsistencyException, "Should raise NSInternalInconsistencyException") | |
} | |
} |