Skip to content

Instantly share code, notes, and snippets.

View ArthurKun21's full-sized avatar
🎯
Focusing

ArthurKun ArthurKun21

🎯
Focusing
View GitHub Profile
// ==UserScript==
// @name Always On Focus
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Prevent websites from detecting when you switch tabs or unfocus the window
// @author You
// @match *://*/*
// @grant none
// ==/UserScript==
@ArthurKun21
ArthurKun21 / readme.md
Created September 10, 2023 07:32
Wireless ADB for Android 10 and lower

Documentation

Stackoverflow

Connect android phone and then check if it is connected with the USB debugging

adb devices

Set the TCPIP

@ArthurKun21
ArthurKun21 / readme.md
Created September 10, 2023 06:21
Change poetry cache directory on windows

Poetry config Link

List down the config list

poetry config --list

Change the config

poetry config cache-dir 
// ==UserScript==
// @name Reddit Redirect
// @namespace https://www.reddit.com/
// @version 1.0
// @description Redirects old.reddit.com to old.reddit.com/hot
// @include https://old.reddit.com/*
// @grant none
// ==/UserScript==
(function() {
// ==UserScript==
// @name Hacker News Open Links in New Tab
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Open links on Hacker News in a new tab
// @license GPL v3.0
// @author xdpirate
// @match https://news.ycombinator.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=ycombinator.com
// @grant none
@ArthurKun21
ArthurKun21 / install.txt
Created January 24, 2023 12:55
Install python 3.9 on ubuntu 22.04
apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev \
libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev -y
wget https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tgz
tar -xvf Python-3.9.7.tgz
cd Python-3.9.7/
./configure --enable-optimizations
@Composable
fun Screen0(
navController: NavController
){
Column(
modifier = Modifier.fillMaxSize(),
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally
){
Text(text = "0")