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 CoreGraphics | |
| /// An active CGEvent tap that can't freeze the keyboard and mouse when the app loses Accessibility. | |
| /// | |
| /// A `.defaultTap` that outlives its permission stays in the event path and every answer it gives is | |
| /// discarded, so input stops until the app quits. `AXIsProcessTrusted()` can keep returning true after | |
| /// a revoke, so every permission change takes the tap down at once and rebuilds it shortly after. | |
| /// `CGEvent.tapCreate` fails while access is gone, and the tap comes back by itself once it's granted. | |
| /// |
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
| // | |
| // KeylumeIntegration.swift | |
| // | |
| // Drop-in helper for integrating Keylume (https://lowtechguys.com/keylume) | |
| // into a macOS Swift app. Handles a headless install/uninstall/reinstall | |
| // flow, install + running-state detection, and posting the show / hide | |
| // distributed notifications to drive a temporary keyboard layer. | |
| // | |
| // Single-file: no external dependencies beyond SwiftUI + AppKit, so this | |
| // file can be copied into any macOS app target as-is. |
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
| end if | |
| end try | |
| on error | |
| set trackDuration to duration of current track | |
| try | |
| Initialized | |
| __isPlatformOrVariantPlatformVersionAtLeast | |
| __swift_objectForKeyedSubscript: | |
| __swift5_proto | |
| __TEXT |
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
| // swiftc -o /tmp/InternetReachable ~/Temp/InternetReachable.swift && /tmp/InternetReachable | |
| import AppKit | |
| import Cocoa | |
| import Foundation | |
| import Network | |
| private var window: NSWindow = { | |
| let w = NSWindow( | |
| contentRect: NSRect(x: 0, y: 0, width: NSScreen.main!.frame.width, height: 20), |
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 Cocoa | |
| import Foundation | |
| func restart() { | |
| // Check if the app was started fresh or if was restarted with arg `restarts=timestamp:timestamp:...` | |
| // If the app was restarted more than 3 times in 10 seconds, exit with status 1 | |
| guard CommandLine.arguments.count == 1 || ( | |
| CommandLine.arguments.count == 2 && CommandLine.arguments[1].starts(with: "restarts=") | |
| ) else { |
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
| #!/usr/bin/env fish | |
| # Needs rg: `brew install ripgrep` | |
| set -xg visitedLibs | |
| function libdeps -a bin depth -d "Finds all dylibs that a binary depends on recursively and prints them on separate lines, sorted alphabetically" | |
| if test -z "$depth" | |
| set depth 0 | |
| end |
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
| aacsportmuntenia.ro | |
| adventstore.ro | |
| aeroventic.ro | |
| albertshop.ro | |
| aliatokazii.ro | |
| amanetlizeanu.ro | |
| anton-schaaf.de | |
| anunturi-apibio.ro | |
| artuniversum.ro | |
| audicanalplustour.es |
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
| *://*.amuddycup.com/* | |
| *://*.athabasca-foto.com/* | |
| *://*.cfadnc.org/* | |
| *://*.codefaq.info/* | |
| *://*.codeflow.site/* | |
| *://*.coredump.biz/* | |
| *://*.culinarydegree.info/* | |
| *://*.developreference.com/* | |
| *://*.domainelespailles.net/* | |
| *://*.ec-europe.org/* |
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
| #!/usr/bin/env swift | |
| // Inspired by: https://eclecticlight.co/2021/09/14/how-to-run-commands-and-scripts-on-efficiency-cores/ | |
| // Run directly: | |
| // chmod +x runbg.swift | |
| // ./runbg.swift | |
| // | |
| // Compile to static binary: | |
| // swiftc runbg.swift -o runbg |
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
| | | { | |
| | | "QoSDebug" = 1 | |
| | | "ean-mode-caching" = 0 | |
| | | "CFBundleIdentifierKernel" = "com.apple.driver.AppleMobileDispH13G-DCP" | |
| | | "IOMFBTemperatureCompensationEnable" = No | |
| | | "PixelClock" = 533333328 | |
| | | "maxAverageBpp" = 0 | |
| | | "IOMFBBICSType" = 0 | |
| | | "enableDither" = Yes | |
| | | "BacklightMatching" = {"IOPropertyMatch"={"backlight-control"=Yes}} |
NewerOlder