This file contains 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 javax.crypto.Cipher; | |
import javax.crypto.spec.SecretKeySpec; | |
import java.nio.charset.StandardCharsets; | |
import java.util.Base64; | |
/** | |
* Inspired by https://ahxxm.com/173.moew/ | |
*/ | |
public final class NcmUserIdEncoder { |
This file contains 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
# https://twitter.com/jakewharton/status/1491116447703375873 | |
find . -type f -name 'build.gradle*' -exec gsed -i -e "/project(/s/-[a-z]/\U&/g" -e "/project(/s/:/./g" -e "/project(/s/-//g" -E -e "s/project\((path\. ?)?('|\")([^'\"]+)\2\)/projects\3/" {} \; |
This file contains 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
# netsh winhttp set proxy 127.0.0.1:7890 | |
# git config --global http.proxy http://127.0.0.1:7890 | |
# git config --global https.proxy http://127.0.0.1:7890 | |
Import-Module oh-my-posh | |
Set-PoshPrompt paradox | |
Set-PSReadLineKeyHandler -Key "Tab" -Function MenuComplete | |
Set-PSReadlineKeyHandler -Key "Ctrl+d" -Function ViExit |
This file contains 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
#export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=http://127.0.0.1:7890 | |
export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-21.jdk/Contents/Home | |
export ZSH=${HOME}/.oh-my-zsh | |
export ANDROID_SDK=${HOME}/Library/Android/sdk | |
export ANDROID_SDK_ROOT=${ANDROID_SDK} | |
export ANDROID_HOME=${ANDROID_SDK} | |
export ANDROID_SDK_CMD_TOOLS=${ANDROID_SDK}/cmdline-tools/latest/bin | |
export ANDROID_SDK_PLATFORM_TOOLS=${ANDROID_SDK}/platform-tools |