Skip to content

Instantly share code, notes, and snippets.

View okineadev's full-sized avatar
🕊️

Okinea Dev okineadev

🕊️
View GitHub Profile
@CodeIter
CodeIter / termux-pacman-glibc-setup.sh
Last active September 4, 2024 09:49
Setup `glibc-runner` with pacman on Termux and install Deno.JS and Bun.JS .
#!/usr/bin/env -S bash -xeuo pipefail
set -xeuo pipefail
pkg install pacman patchelf \
which time ldd tree
echo
echo

I found a way to disable Google Discover completely on miui home screen (like on previous versions, disables the swipe left).

adb shell settings put system open_personal_assistant 0

or you can type as root on any terminal

settings put system open_personal_assistant 0

to disable Swipe up to search in the home screen

@doeslater
doeslater / remove_mi_bloatware.txt
Last active December 21, 2023 14:23
Xiaomi MIUI bloatware
# ADB commands
## List users
adb shell pm list users
replace number with user number from previous command.
adb shell pm uninstall -k --user 10 com.mipay.wallet.in
adb shell pm uninstall -k --user 10 com.android.thememanager
adb shell pm uninstall -k --user 10 com.mi.globalbrowser
adb shell pm uninstall -k --user 10 com.mi.android.global.minusscreen
adb shell pm uninstall -k --user 10 com.android.thememanager
@bashbunni
bashbunni / .zshrc
Created October 27, 2022 21:41
CLI Pomodoro for Mac
# I'll be doing another one for Linux, but this one will give you
# a pop up notification and sound alert (using the built-in sounds for macOS)
# Requires https://github.com/caarlos0/timer to be installed
# Mac setup for pomo
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\
-title 'Work Timer is up! Take a Break 😊'\
-appIcon '~/Pictures/pumpkin.png'\
-sound Crystal"
@huytd
huytd / wordle.md
Last active August 27, 2024 20:38
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

@ArtMan-8
ArtMan-8 / Github-actions.md
Last active November 21, 2023 17:31
Базовая настройка github actions для запуска тестов и автоматической сборки проекта на gh-pages

Настройка github actions для тестов и сборки на gh-pages

Прежде всего нужно создать ключ для доступа к репозиториям. Один ключ можно использовать для разных репозиториев. Для этого идём в github, в настройки разработчика, и переходим к персональным токенам и жмём сюда для генерации ключа.


При генерации ключа отмечаем поля repo, workflow, user, даём название и копируем сам ключ.

@lysender
lysender / export-import-gpg-keys.md
Created July 1, 2020 03:35
Export and import GPG Keys

Export public key

gpg --export your_address@example.net > my_key.pub 

The file can then be shared to other people.

Export public key in armor ascii format

@andriyudatama
andriyudatama / VS Code Disable GPU Acceleration
Last active September 4, 2024 02:09
Disable Hardware Acceleration (GPU) on Visual Studio Code
Visual Studio Code frequently crashes linux. Using NVIDIA GPU
1. Open command pallete (Ctrl + Shift + P)
2. Enter "Preferences: Configure Runtime Arguments"
3. Add config: "disable-hardware-acceleration": true
4. Restart VS Code
@jasonboukheir
jasonboukheir / git
Last active September 15, 2024 15:27
git when in unix, git.exe when in wsl
#!/bin/sh
if pwd | grep /mnt/c > /dev/null; then
exec git.exe "$@"
else
exec /usr/bin/git "$@"
fi
@DavidWells
DavidWells / tiny-markdown-text.md
Last active August 31, 2024 04:25
Tiny tiny markdown text

How to make tiny text in markdown

Normal text here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer vitae mauris arcu, eu pretium nisi. Vivamus vitae mi ligula, non hendrerit urna. Suspendisse potenti. Quisque eget massa a massa semper mollis.

Tiny text is here. Awwwww its so cuteeeeeeeeeee

Normal big text