docker images |grep -v REPOSITORY|awk '{print $1}'|xargs -L1 docker pull
docker container rm $(docker ps -aq)
docker rmi $(docker images -aq)
#! /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. |
# 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? |
// | |
// 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 |
// 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) |
Install the netcat nc
command with Homebrew (otherwise Mac OS X version is really old and the interface is different):
brew install netcat
Use netcat to listen for incoming TCP connections on port 3000:
nc -l -p 3000
#!/bin/bash | |
function print_usage() { | |
echo "Usage: $0 [Options]" | |
echo "Options:" | |
echo " -h, --help Display usage" | |
echo " -p, --project-directory Directory containing Carthage project" | |
echo " -f, --force Omit confirmation" | |
exit 1 | |
} |
[General] | |
loglevel = notify | |
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 127.0.0.1, localhost, *.local | |
ipv6 = false | |
exclude-simple-hostnames = true | |
allow-wifi-access = false | |
dns-server = 114.114.114.114, 223.5.5.5, system | |
[Rule] | |
# Apple |
We'll share session notes in QQ group 367375164 2 PM on weekdays.
<?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>PayloadContent</key> | |
<array> | |
<dict> | |
<key>PayloadContent</key> | |
<dict> | |
<key>com.google.Chrome</key> |