Skip to content

Instantly share code, notes, and snippets.

View youngshook's full-sized avatar
🐝
Working

YoungShook youngshook

🐝
Working
View GitHub Profile
@talaviram
talaviram / add_debug_entitlement.sh
Last active July 15, 2024 10:58
Simple Utility Script for allowing debug of hardened macOS apps.
#! /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.

Update all docker images

docker images |grep -v REPOSITORY|awk '{print $1}'|xargs -L1 docker pull

Remove all containers

docker container rm $(docker ps -aq)

Remove all images

docker rmi $(docker images -aq)

See Docker Daemon logs

@jaleksynas
jaleksynas / Fastfile
Created March 1, 2019 17:48
Using Helper.is_ci?
# 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?
@SintraWorks
SintraWorks / ScrollingStackView.swift
Last active May 2, 2022 13:46
A scrolling capable drop-in replacement for UIStackView.
//
// 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
@candostdagdeviren
candostdagdeviren / ViewLifecycle.swift
Created November 18, 2018 11:45
View Lifecycle - NS for iOS Devs
// 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)
@youngshook
youngshook / Netcat.md
Created November 7, 2018 06:45 — forked from Integralist/Netcat.md
Netcat

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
@fujikky
fujikky / cleanup_bcsymbolmap
Last active February 19, 2020 05:17
Carthage's bcsymbolmap cleanup script
#!/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
}
anonymous
anonymous / surge-cn.conf
Created January 18, 2018 07:07
[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
@Explorare
Explorare / com.google.Chrome.mobileconfig
Last active November 28, 2022 05:54
Add local chrome extensions to whitelist in MacOS. https://hencolle.com/2016/10/16/baidu_exporter/
<?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>