This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AppKit | |
import ScriptingBridge | |
@objc public protocol SBObjectProtocol: NSObjectProtocol { | |
func get() -> Any! | |
} | |
@objc public protocol SBApplicationProtocol: SBObjectProtocol { | |
func activate() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public protocol Database: Sendable { | |
func delete<T: PersistentModel>( | |
where predicate: Predicate<T>? | |
) async throws | |
func insert(_ closuer: @Sendable @escaping () -> some PersistentModel) async | |
func fetch<T, U : Sendable>( | |
_ selectDescriptor: @escaping @Sendable () -> FetchDescriptor<T>, | |
with closure: @escaping @Sendable ([T]) throws -> U |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if a filename was provided | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 <filename>" | |
exit 1 | |
fi | |
filename=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096 | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
# Add to /etc/fstab to make permanent | |
echo '/swapfile swap swap defaults 0 0' | sudo tee -a /etc/fstab | |
sudo yum update -y && sudo yum install docker -y && sudo yum install git -y && sudo yum install libicu -y && | |
sudo systemctl start docker | |
sudo systemctl enable docker |
OlderNewer