![Key Mapping](https://github.com/backslash-f/ShockEmu/blob/master/KeyMapping.png)
Or by path:
![Storyboard](Images/xcode-storyboard.png)
# See this wiki page for more info: | |
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info | |
# | |
# brew install neofetch | |
# mkdir ~/.config/neofetch | |
# touch config.conf | |
# pbpaste > config.conf | |
print_info() { | |
info title |
#!/usr/bin/swift | |
import Foundation | |
func shell(_ command: String) { | |
let task = Process() | |
task.launchPath = "/bin/zsh" | |
task.arguments = ["-c", command] | |
let pipe = Pipe() |
#!/usr/bin/swift | |
import Foundation | |
// TINY EXAMPLE | |
/* | |
let jsonData = Data( | |
""" | |
{ |
import UIKit | |
public enum ModelName: String { | |
case simulator | |
case iPod1, iPod2, iPod3, iPod4, iPod5 | |
case iPad2, iPad3, iPad4, iPad5, iPad6 | |
case iPadAir, iPadAir2, iPadAir3 | |
case iPadMini, iPadMini2, iPadMini3, iPadMini4, iPadMini5 | |
case iPadPro9_7, iPadPro10_5, iPadPro12_9, iPadPro2_12_9, iPadPro11, iPadPro3_12_9 | |
case iPhone4, iPhone4S |
import Foundation | |
import UIKit | |
/// Clamps the given `value` into the range defined by `minValue` and `maxValue`. For example: | |
/// | |
/// (0.0 ... 5.0).clamp(4.2) = 4.2 | |
/// (0.0 ... 5.0).clamp(-1.3) = 0.0 | |
/// (0.0 ... 5.0).clamp(6.4) = 5.0 | |
/// | |
/// Source: https://stackoverflow.com/a/46799935/584548 |
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme", | |
"default_line_ending": "unix", | |
"dictionary": "Packages/Language - English/en_US.dic", | |
"draw_white_space": "selection", | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 17, | |
"gpu_window_buffer": false, | |
"ignored_packages": | |
[ |
#!/bin/bash | |
# - Curls Heroku servers indicated in the "hosts" file. | |
# - Logs actions to log files (unique per host), including the response HTTP status | |
# - Clean up log files if > 5mb | |
# | |
# Simply add the target hosts in the "hosts" file, like: | |
# my-server-01.herokuapp.com | |
# my-server-02.herokuapp.com | |
# NOTICE: There must be a new line at the end of the "hosts" file. |
// "Charles Enabler" | |
// https://stackoverflow.com/a/57253011/584548 | |
public class NetworkEnabler: NSObject, URLSessionDelegate { | |
public func urlSession(_ session: URLSession, | |
didReceive challenge: URLAuthenticationChallenge, | |
completionHandler: (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { | |
completionHandler(.useCredential, URLCredential(trust: challenge.protectionSpace.serverTrust!)) | |
} | |
} |
#!/bin/sh | |
# register a subdomain at https://www.duckdns.org/ to get your token | |
# put 'hostname|token' in the 'Host Name' field under DDNS (custom) | |
# e.g. myhost|abcdefgh-1234-5678-9876-f71b0ed7a7fe | |
DDNS_HOSTNAME_FIELD=$(nvram get ddns_hostname_x) | |
SUBDOMAIN=$(echo "$DDNS_HOSTNAME_FIELD" | awk -F'|' '{print $1}') | |
TOKEN=$(echo "$DDNS_HOSTNAME_FIELD" | awk -F'|' '{print $2}') | |
IP="$(curl -fs4 https://myip.dnsomatic.com/)" |