Skip to content

Instantly share code, notes, and snippets.

View rosuH's full-sized avatar
👻
Wubba lubba dub dub

rosuH

👻
Wubba lubba dub dub
View GitHub Profile

Install Android SDK CLI Ubuntu 20.04 WSL2 (Work in Progress)

Install Java 8

sudo apt install openjdk-8-jdk-headless

Android SDK

[config]
mode=bypass
url=https://gist.githubusercontent.com/rosuH/5cac025b74be99a27ec1afd3b9600ff1/raw/d2b60ed4909961431b4e6f3199f1a869ce0406c9/Sample.conf
[rule]
REGEX,com.baidu.*
REGEX,com.chinamworld.*
REGEX,com.ss.*
[config]
mode=bypass
url=https://gist.githubusercontent.com/rosuH/a6a51296c5e24fac25e80e0a3e16cac3/raw/de77c5f739bb6853995f646452028d524aae65ec/sample.conf
[rule]
REGEX,com.baidu.*
REGEX,com.chinamworld.*
REGEX,com.ss.*
REGEX,com.taobao.*
REGEX,com.tencent.*
@rosuH
rosuH / refresh_mediastore.sh
Created October 25, 2018 10:22
[ADB Refresh Mediastore] #Android #Media
#!/bin/bash
adb shell 'su -c "am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///mnt/sdcard/DCMI/Images_new/"'
@rosuH
rosuH / 📊 Weekly development breakdown
Last active June 23, 2023 00:22
Weekly development breakdown
Kotlin 1 hr 2 mins █████████████▏░░░░░░░ 62.8%
TypeScript 16 mins ███▍░░░░░░░░░░░░░░░░░ 16.4%
Properties 10 mins ██▎░░░░░░░░░░░░░░░░░░ 10.8%
Markdown 6 mins █▎░░░░░░░░░░░░░░░░░░░ 6.1%
Other 1 min ▎░░░░░░░░░░░░░░░░░░░░ 1.8%
@rosuH
rosuH / xcode-uninstall.sh
Created July 26, 2021 08:37 — forked from roalcantara/xcode-uninstall.sh
xcode-uninstall
killall Xcode
xcrun -k
xcodebuild -alltargets clean
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache"
rm -rf /Applications/Xcode.app
rm -rf ~/Library/Caches/com.apple.dt.Xcode
rm -rf ~/Library/Developer
rm -rf ~/Library/MobileDevice
rm -rf ~/Library/Preferences/com.apple.dt.Xcode.plist
class MainViewModel(
private val repository: Repository
) {
val counterFlow = repository.getCounterFlow().asStateFlow()
fun increaseCounter() {
repository.increaseCounter()
}
fun decreaseCounter() {
@rosuH
rosuH / config
Created June 19, 2022 01:26
SSH Proxy config
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
Host github.com
Hostname ssh.github.com
AddKeysToAgent yes
Port 443
UseKeychain yes
@rosuH
rosuH / setting.xml
Created September 24, 2018 07:52
[Aliyun Maven] #Java #Maven
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<pluginGroups />
<proxies />
<servers />
<localRepository>D:/server/maven/repository</localRepository>