Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1b - Decimal:
27
| #!/bin/bash | |
| # IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it! | |
| # IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS. | |
| # This script needs to be run from the volume you wish to use. | |
| # E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh | |
| # WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars. | |
| # Get active services: launchctl list | grep -v "\-\t0" | |
| # Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents |
| # Authorize read-write in the default namespace. Add this Role and the below RoleBinding to every namespace spinnaker deploys artifacts to | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| kind: Role | |
| metadata: | |
| name: spinnaker-role | |
| namespace: default | |
| rules: | |
| - apiGroups: [""] | |
| resources: ["namespaces", "events", "replicationcontrollers", "serviceaccounts", "pods/logs"] |
| // | |
| // main.m | |
| // EndpointSecurityDemo | |
| // | |
| // Created by Omar Ikram on 17/06/2019 - Catalina 10.15 Beta 1 (19A471t) | |
| // Updated by Omar Ikram on 15/08/2019 - Catalina 10.15 Beta 5 (19A526h) | |
| // Updated by Omar Ikram on 01/12/2019 - Catalina 10.15 (19A583) | |
| // | |
| #import <Foundation/Foundation.h> |
| function _run_deferred() { | |
| local _depth="$BASHPID.${#FUNCNAME[@]}" | |
| [[ "$_depth" != "$_deferred_depth" ]] && return | |
| local opt=$- | |
| set +e | |
| for (( i=${#_deferred[@]} - 1; i >= 0; i-- )); do | |
| eval "${_deferred[i]}" | |
| done | |
| [[ "$opt" == *e* ]] && set -e | |
| } |
| #! /bin/bash | |
| # | |
| # build-xnu-6153.11.26.sh | |
| # Scott Knight | |
| # | |
| # Based on the script by Brandon Azad | |
| # https://gist.github.com/bazad/654959120a423b226dc564073b435453 | |
| # | |
| # A script showing how to build XNU version 6153.11.26 on macOS Catalina | |
| # 10.15 with Xcode 11.13.1. |
| #include <iostream> | |
| #include <cstdint> | |
| using namespace std; | |
| // we are going to generate random numbers using | |
| // an xorshift generator | |
| static uint32_t xorshift_y; |
| # not an exhaustive list | |
| nsurlsessiond "icloud sync" | |
| fseventsd "macos file system events" | |
| WindowServer "macos windows" | |
| DisplayLinkManager "macos driver" | |
| configd "macos dynamic configuration" | |
| displaypolicyd "macos process" | |
| CommCenter "macos keychain" | |
| kernel_task "macos kernel" |
| #!/usr/bin/env bash | |
| # 参考サイト: http://tukaikta.blog135.fc2.com/blog-entry-224.html | |
| # ================各種設定================ | |
| # ダウンロードするファイル (GNU 日本語man) | |
| # | |
| # http://linuxjm.sourceforge.jp/ からダウンロードするファイルを指定します。 | |
| #export GNUJMAN=man-pages-ja-20120915.tar.gz | |
| #export GNUJMAN=man-pages-ja-20150315.tar.gz |