Skip to content

Instantly share code, notes, and snippets.

View YahuiWong's full-sized avatar
๐ŸŒˆ
Focusing

ArthurWang YahuiWong

๐ŸŒˆ
Focusing
View GitHub Profile
@YahuiWong
YahuiWong / answerfile
Created May 26, 2023 12:17 — forked from oofnikj/answerfile
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
/bin/bash -c " HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles HOMEBREW_BREW_GIT_REMOTE=https://mirrors.ustc.edu.cn/brew.git HOMEBREW_CORE_GIT_REMOTE=https://mirrors.ustc.edu.cn/homebrew-core.git $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles"' >> ~/.zshrc
# ๅฏนไบŽ zsh ็”จๆˆท
echo 'export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"' >> ~/.zshrc
echo 'export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"' >> ~/.zshrc
source ~/.zshrc
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles"
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git" # put your Git mirror of Homebrew/brew here
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git" # put your Git mirror of Homebrew/homebrew-core here
@YahuiWong
YahuiWong / Microsoft.PowerShell_profile.ps1
Last active November 16, 2024 14:58
Microsoft.PowerShell_profile.ps1
# ๅผ•ๅ…ฅ posh-git
Import-Module posh-git
# # ๅผ•ๅ…ฅ oh-my-posh
# Import-Module oh-my-posh
# scoop install https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/oh-my-posh.json
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\jandedobbeleer.omp.json" | Invoke-Expression
# oh-my-posh font install
# ๅผ•ๅ…ฅ ps-read-line
Import-Module PSReadLine
@YahuiWong
YahuiWong / nuget.config
Created May 29, 2022 05:26
dotnet.nuget
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.cdn.azure.cn" value="https://nuget.cdn.azure.cn/v3/index.json" />
</packageSources>
<config>
<add key="globalPackagesFolder" value="D:\.nuget\packages" />
</config>
</configuration>
@YahuiWong
YahuiWong / install.ps1
Last active June 2, 2022 15:19
oh-my-posh
scoop install oh-my-posh
# 1. ๅฎ‰่ฃ… PSReadline ๅŒ…๏ผŒ่ฏฅๆ’ไปถๅฏไปฅ่ฎฉๅ‘ฝไปค่กŒๅพˆๅฅฝ็”จ๏ผŒ็ฑปไผผ zsh
Install-Module -Name PSReadLine -Scope CurrentUser
# 2. ๅฎ‰่ฃ… posh-git ๅŒ…๏ผŒ่ฎฉไฝ ็š„ git ๆ›ดๅฅฝ็”จ
Install-Module posh-git -Scope CurrentUser
# # 3. ๅฎ‰่ฃ… oh-my-posh ๅŒ…๏ผŒ่ฎฉไฝ ็š„ๅ‘ฝไปค่กŒๆ›ด้…ท็‚ซใ€ไผ˜้›…
# Install-Module oh-my-posh -Scope CurrentUser
gradle.projectsLoaded {
rootProject.allprojects {
buildscript {
repositories {
def JCENTER_URL = 'https://maven.aliyun.com/repository/jcenter'
def GOOGLE_URL = 'https://maven.aliyun.com/repository/google'
def NEXUS_URL = 'http://maven.aliyun.com/nexus/content/repositories/jcenter'
all { ArtifactRepository repo ->
if (repo instanceof MavenArtifactRepository) {
def url = repo.url.toString()
@YahuiWong
YahuiWong / Windows Terminal.json
Last active May 28, 2022 07:41
Windows Terminal Preview setting.json
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"copyFormatting": "none",
"copyOnSelect": true,
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
// Add custom keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about keybindings, visit https://aka.ms/terminal-keybindings
"keybindings": [
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
@YahuiWong
YahuiWong / install_ffmpeg.sh
Created December 28, 2019 07:07 — forked from spookyuser/install_ffmpeg.sh
Installs FFmpeg on aws\whatever
# Taken from https://forums.aws.amazon.com/thread.jspa?messageID=332091
# And https://gist.github.com/rainabba/07425c3bc14a0bb51632f12e913d9081
#
# Usage: `sudo bash ./install_ffmpeg.sh`
# Config Variables
static_host=https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz
filename=ffmpeg-git-64bit-static.tar.xz

/***

  • โ”Œโ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”
  • โ”‚Escโ”‚ โ”‚ F1โ”‚ F2โ”‚ F3โ”‚ F4โ”‚ โ”‚ F5โ”‚ F6โ”‚ F7โ”‚ F8โ”‚ โ”‚ F9โ”‚F10โ”‚F11โ”‚F12โ”‚ โ”‚P/Sโ”‚S Lโ”‚P/Bโ”‚ โ”Œโ” โ”Œโ” โ”Œโ”
  • โ””โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”˜ โ””โ”˜ โ””โ”˜ โ””โ”˜
  • โ”Œโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”
  • โ”‚~ `โ”‚! 1โ”‚@ 2โ”‚# 3โ”‚$ 4โ”‚% 5โ”‚^ 6โ”‚& 7โ”‚* 8โ”‚( 9โ”‚) 0โ”‚_ -โ”‚+ =โ”‚ BacSp โ”‚ โ”‚Insโ”‚Homโ”‚PUpโ”‚ โ”‚N Lโ”‚ / โ”‚ * โ”‚ - โ”‚
  • โ”œโ”€โ”€โ”€โ”ดโ”€โ”ฌโ”€โ”ดโ”€โ”ฌโ”€โ”ดโ”€โ”ฌโ”€โ”ดโ”€โ”ฌโ”€โ”ดโ”€โ”ฌโ”€โ”ดโ”€โ”ฌโ”€โ”ดโ”€โ”ฌโ”€โ”ดโ”€โ”ฌโ”€โ”ดโ”€โ”ฌโ”€โ”ดโ”€โ”ฌโ”€โ”ดโ”€โ”ฌโ”€โ”ดโ”€โ”ฌโ”€โ”ดโ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ค โ”œโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ค
  • โ”‚ Tab โ”‚ Q โ”‚ W โ”‚ E โ”‚ R โ”‚ T โ”‚ Y โ”‚ U โ”‚ I โ”‚ O โ”‚ P โ”‚{ [โ”‚} ]โ”‚ | \ โ”‚ โ”‚Delโ”‚Endโ”‚PDnโ”‚ โ”‚ 7 โ”‚ 8 โ”‚ 9 โ”‚ โ”‚
  • โ”œโ”€โ”€โ”€โ”€โ”€โ”ดโ”ฌโ”€โ”€โ”ดโ”ฌโ”€โ”€โ”ดโ”ฌโ”€โ”€โ”ดโ”ฌโ”€โ”€โ”ดโ”ฌโ”€โ”€โ”ดโ”ฌโ”€โ”€โ”ดโ”ฌโ”€โ”€โ”ดโ”ฌโ”€โ”€โ”ดโ”ฌโ”€โ”€โ”ดโ”ฌโ”€โ”€โ”ดโ”ฌโ”€โ”€โ”ดโ”ฌโ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ค โ””โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”˜ โ”œโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”ค + โ”‚
  • โ”‚ Caps โ”‚ A โ”‚ S โ”‚ D โ”‚ F โ”‚ G โ”‚ H โ”‚ J โ”‚ K โ”‚ L โ”‚: ;โ”‚" 'โ”‚ Enter โ”‚ โ”‚ 4 โ”‚ 5 โ”‚ 6 โ”‚ โ”‚
for file in `ls ./`
do
if [ -d $file ]
then
pushd $file
git add --all
git commit -m "ไฟฎๆ”น้…็ฝฎ"
git push --all origin
popd
fi