Not necessarily meant to be followed step by step, although it is recommended. Some steps are valid during all levels, others give way to better alternatives further on.
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/sh /etc/rc.common | |
| # OpenWrt /etc/init.d/ script to automatically add ipsets across reboots | |
| # For more info about how to write init scripts https://openwrt.org/docs/techref/initscripts | |
| # | |
| # howto: | |
| # - upload this file as /etc/init.d/autoipset | |
| # - # chmod 755 /etc/init.d/autoipset | |
| # - # /etc/init.d/autoipset enable | |
| # - # /etc/init.d/autoipset start |
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
| // | |
| // VirtualKeyboard.swift | |
| // MacBook Air M1 Zhuyin Keyboard | |
| // Written with SwiftUI ~=300 LOC, < 4hrs | |
| // Created by Ethan Huang on 2021/1/13. | |
| // Twitter: @ethanhuang13 | |
| import SwiftUI | |
| struct VirtualKeyboard: View { |
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
| .onDrop(of: [.fileURL], isTargeted: nil) { providers in | |
| if let loadableProvider = providers.first(where: { $0.canLoadObject(ofClass: URL.self) }) { | |
| _ = loadableProvider.loadObject(ofClass: URL.self) { fileURL, _ in | |
| if let fileURL = fileURL, fileURL.pathExtension.lowercased() == "zip" { | |
| self.logger.info("Dropped \(fileURL.path)") | |
| DispatchQueue.main.async { | |
| importer.open(zipArchiveURL: fileURL) | |
| } | |
| } | |
| } |
Onyx tablets reportedly phone home and send "data" to some servers in China. The manufacturer apparently refuses to publish the source-code modifications to the OS and the open-source apps they are using and they even go as far as violating GPL.
Of course I learned all that after buying this tablet. To ease my mind, I spent some time debloating it and then blocked the outgoing traffic to
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 | |
| set -oue pipefail | |
| INFO='\033[0;36m' # Cyan for general information | |
| SUCCESS='\033[0;32m' # Green for success messages | |
| WARN='\033[0;33m' # Yellow for warnings | |
| ERROR='\033[0;31m' # Red for errors | |
| NC='\033[0m' # No Color | |
| echo "This script will help you set up 1Password in a Flatpak browser." |
OlderNewer