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 bash | |
| path=/Applications/Automator.app | |
| defaults write com.apple.dock persistent-apps -array-add "<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>$path</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>"; killall Dock |
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
| release=$(curl -s https://api.github.com/repos/ziglang/zig/releases/latest) | |
| tagName=$(echo $release | grep -o '"tag_name": "[^"]*' | grep -o '[^"]*$') | |
| echo "Latest release is $tagName" | |
| arch=$(uname -m) | |
| if [ "$arch" == "arm64" ] | |
| then | |
| arch="aarch64" | |
| fi |
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
| com.android.bluetoothmidiservice | |
| com.facebook.appmanager | |
| com.facebook.services | |
| com.facebook.system | |
| com.google.android.adservices.api | |
| com.google.android.apps.safetyhub | |
| com.google.android.apps.wellbeing | |
| com.google.android.apps.youtube.music | |
| com.google.android.feedback | |
| com.google.android.play.games |
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
| $0=10 | |
| $1=25 | |
| $2=0 | |
| $3=4 | |
| $4=0 | |
| $5=1 | |
| $6=0 | |
| $10=1 | |
| $11=0.010 | |
| $12=0.002 |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>ttl65</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/usr/sbin/sysctl</string> | |
| <string>-w</string> |
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 | |
| #ref: https://gist.github.com/mcxiaoke/ade05718f590bcd574b807c4706a00b1 | |
| adb shell pm disable-user com.miui.powerkeeper | |
| adb shell pm disable-user com.xiaomi.metoknlp | |
| adb shell pm disable-user com.miui.tsmclient | |
| adb shell pm disable-user com.miui.accessibility | |
| adb shell pm disable-user com.miui.backup | |
| adb shell pm disable-user com.miui.freeform |
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
| #Ref https://software.opensuse.org/download.html?project=shells%3Afish%3Arelease%3A3&package=fish | |
| echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_11/ /' | sudo tee /etc/apt/sources.list.d/shells:fish:release:3.list | |
| curl -fsSL https://download.opensuse.org/repositories/shells:fish:release:3/Debian_11/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/shells_fish_release_3.gpg > /dev/null | |
| sudo apt update | |
| sudo apt install fish -y | |
| sudo chsh -s /usr/bin/fish |
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
| curl -L https://awscli.amazonaws.com/AWSCLIV2.pkg -o /tmp/AWSCLIV2.pkg | |
| sudo installer -store -pkg "/tmp/AWSCLIV2.pkg" -target / | |
| rm -f "/tmp/AWSCLIV2.pkg" |
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
| curl -L -S -o '/tmp/AdGuardHome_linux.tar.gz' -s 'https://static.adguard.com/adguardhome/release/AdGuardHome_linux_arm64.tar.gz' | |
| tar -C /tmp/ -f /tmp/AdGuardHome_linux.tar.gz -x -v -z | |
| mkdir -p ~/my-agh-backup | |
| cd /opt/AdGuardHome | |
| sudo ./AdGuardHome -s stop | |
| sudo cp -r ./AdGuardHome.yaml ./data ~/my-agh-backup/ | |
| sudo cp /tmp/AdGuardHome/AdGuardHome /opt/AdGuardHome/AdGuardHome | |
| sudo ./AdGuardHome -s start | |
| rm -rf /tmp/* |
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
| func keyCodeToString(keyCode: CGKeyCode) -> String { | |
| let curKeyboard = TISCopyCurrentKeyboardInputSource().takeRetainedValue() | |
| let ptr = TISGetInputSourceProperty(curKeyboard, kTISPropertyUnicodeKeyLayoutData) | |
| let keyboardLayoutPtr = UnsafePointer<UCKeyboardLayout>(ptr) | |
| var deadKeyState: UInt32 = 0 | |
| var actualStringLength = 0 | |
| var unicodeString = [UniChar](count: 255, repeatedValue: 0) | |
| let status = UCKeyTranslate(keyboardLayoutPtr, |
NewerOlder