Install the netcat nc command with Homebrew (otherwise Mac OS X version is really old and the interface is different):
brew install netcatUse netcat to listen for incoming TCP connections on port 3000:
nc -l -p 3000Install the netcat nc command with Homebrew (otherwise Mac OS X version is really old and the interface is different):
brew install netcatUse netcat to listen for incoming TCP connections on port 3000:
nc -l -p 3000| // Adding a view controller to another | |
| let childViewController = UIViewController() | |
| let parentViewController = UIViewController() | |
| parentViewController.addChild(childViewController) | |
| parentViewController.view.addSubview(childViewController.view) | |
| // setup auto-layout constraints for childViewController.view | |
| childViewController.didMove(toParent: parentViewController) | |
| // Removing the child view controller from parent | |
| childViewController.willMove(toParent: nil) |
| // | |
| // ScrollingStackView.swift | |
| // | |
| // Created by Antonio Nunes on 05/08/2018. | |
| // Copyright © 2018 SintraWorks. All rights reserved. | |
| // | |
| // Permission is hereby granted, free of charge, to any person obtaining a copy | |
| // of this software and associated documentation files (the "Software"), to deal | |
| // in the Software without restriction, including without limitation the rights | |
| // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| # Example of only doing something in or out of ci. | |
| #=> fastlane my_process | |
| #=> JENKINS_URL=foo fastlane my_process | |
| before_all do | |
| ci_stuff | |
| end | |
| lane :my_process do | |
| UI.message "Only do this when in CI" if Helper.is_ci? |
| #! /bin/bash | |
| # Simple Utility Script for allowing debug of hardened macOS apps. | |
| # This is useful mostly for plug-in developer that would like keep developing without turning SIP off. | |
| # Credit for idea goes to (McMartin): https://forum.juce.com/t/apple-gatekeeper-notarised-distributables/29952/57?u=ttg | |
| # Update 2022-03-10: Based on Fabian's feedback, add capability to inject DYLD for sanitizers. | |
| # | |
| # Please note: | |
| # - Modern Logic (on M1s) uses `AUHostingService` which resides within the system thus not patchable and REQUIRES to turn-off SIP. | |
| # - Some hosts uses separate plug-in scanning or sandboxing. | |
| # if that's the case, it's required to patch those (if needed) and attach debugger to them instead. |