For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
| // A Color Slider that is similar to one in | |
| // iOS 18+ when configuring a tinted Home Screen | |
| // Full video-walktrough on building this component: https://youtu.be/VFVyN5hNW24 | |
| import SwiftUI | |
| fileprivate let SLIDER_HEIGHT = 34.0 | |
| fileprivate let KNOB_DIAMETER = SLIDER_HEIGHT + 4.0 | |
| struct ColorSlider: View { |
| #!/usr/bin/env sh | |
| ############################################# | |
| # WARNING # | |
| # No more commits are going to be made to # | |
| # this gist. Please get the latest script # | |
| # from the new repository: # | |
| # https://github.com/pixelomer/macos-mkjail # | |
| ############################################# |
| /** | |
| * MacEditorTextView | |
| * Copyright (c) Thiago Holanda 2020-2021 | |
| * https://twitter.com/tholanda | |
| * | |
| * MIT license | |
| * Modified by https://github.com/cjwcommuny for TextKit 2 | |
| */ | |
| import Combine |
| # convert createdb's template to UTF8 | |
| echo "UPDATE pg_database SET datistemplate = FALSE WHERE datname = 'template1';" | psql -U postgres | |
| echo "drop database template1;" | psql -U postgres | |
| echo "create database template1 with template = template0 encoding = 'UTF8';" | psql -U postgres | |
| echo "update pg_database set datacl='{=c/postgres,postgres=CTc/postgres}' where datname='template1';" | psql -U postgres | |
| echo "UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'template1';" | psql -U postgres | |
| # export and reimport as UTF8 | |
| pg_dump -U uniiverse --encoding utf8 mydatabase -f mydatabase_utf8.sql | |
| createdb -U postgres -E utf8 mydatabase_utf8 |
| /* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
| This file remaps the key bindings of a single user on Mac OS X 10.5 to more | |
| closely match default behavior on Windows systems. This makes the Command key | |
| behave like Windows Control key. To use Control instead of Command, either swap | |
| Control and Command in Apple->System Preferences->Keyboard->Modifier Keys... | |
| or replace @ with ^ in this file. | |
| Here is a rough cheatsheet for syntax. | |
| Key Modifiers |
| adb shell am | |
| usage: am [subcommand] [options] | |
| usage: am start [-D] [-W] [-P <FILE>] [--start-profiler <FILE>] | |
| [--R COUNT] [-S] [--opengl-trace] <INTENT> | |
| am startservice <INTENT> | |
| am force-stop <PACKAGE> | |
| am kill <PACKAGE> | |
| am kill-all | |
| am broadcast <INTENT> | |
| am instrument [-r] [-e <NAME> <VALUE>] [-p <FILE>] [-w] |
| adb shell am start -W -a android.intent.action.VIEW -d "https://main.sea.camexgame.com/instant" | |
| adb shell am start -W -a android.intent.action.VIEW -d "https://instant.app/com.camex.tactical.monsters" | |
| adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "https://play.google.com/store/apps/details?id=com.camex.tactical.monster&launch=true" |
| adb shell am start -W -a android.intent.action.VIEW -d "https://main.sea.camexgame.com/instant" | |
| adb shell am start -W -a android.intent.action.VIEW -d "https://instant.app/com.camex.tactical.monsters" | |
| adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "https://play.google.com/store/apps/details?id=com.camex.tactical.monster&launch=true" |