Skip to content

Instantly share code, notes, and snippets.

View okineadev's full-sized avatar
📆

Okinea Dev okineadev

📆
View GitHub Profile

If it's so easy to guess a uuid, here you go

I ran crypto.randomUUID() twice on my machine.

The first ID was 15041508-fd38-4eda-bc1d-7b74e4738cd9

The second? That's your challenge.

I encrypted a text file with the following command:

@okineadev
okineadev / hide-git-commit-history.md
Last active July 16, 2025 12:40
🕵️‍♂️ How to hide Git commit history but keep contributions

Hi, I had this problem today - I had an old repository from when I was just starting to work with Git, and I needed to hide the change history because there was information in a certain commit that I didn't want to disclose.

But I have a lot of commits there, and I don't want to lose my beloved commit statistics, so how do I solve this? 🤔

To do this, we need to edit all commits in the repository and hide the changes and change commit names to [REDACTED]

Here is the script for that 👇

# Save the current commit hash to a variable so we can go back to it later
@CodeIter
CodeIter / termux-pacman-glibc-setup.sh
Last active August 18, 2025 10:25
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
@okineadev
okineadev / free_macos_machine_for_testing.md
Created May 9, 2024 08:31
How to get a free macOS machine for testing?

How to get a free macOS machine for testing?

If you have an application that you want to test on different architectures and operating systems (including macOS) - then you can use the runners that GitHub provides for free for open source projects

First of all, remember these simple rules:

  • Don't abuse virtual machines
  • Do not use them for illegal purposes and for DDoS attacks

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

@eggplants
eggplants / refresh_cache_on_camo.sh
Created September 3, 2023 01:39
How to remove all cache of camo image icons in GitHub images
#!/usr/bin/env bash
curl -s https://github.com/... | grep -oE 'https://camo[^"]+' | while read i;do curl -X PURGE "$i";echo;done
@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
Last active October 15, 2025 05:34
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"
@mh0w
mh0w / tqdm and trange.py
Last active October 4, 2024 17:16
tqdm and trange
from tqdm import tqdm, trange
import time # used in this example to delay progress
# Initiate 0-100 progress bar, start at 15, with format shown below
# One bar will be shown and updated
# Will display one 0-100 progress bar, showing just percentage and the bar
pbar = tqdm(total=100, initial=15, bar_format='Loading: {percentage:3.0f}%|{bar:10}')
# Loading: 15%|█▌
time.sleep(2)

A honest Xiaomi Redmi 10C review focusing on what matters

A honest review focusing on what really matters in smartphones: Affordable price, reasonable performance and battery life, good software, no bloatware, ease of unlocking the bootloader, data protection and privacy. Most reviews on the net focus on superficial, unimportant stuff like an extra megapixel here or the form of the display notch there.

image

tl;dr: It is like Xiaomi is making it intentionally hard to get rid of their spyware-ridden, bloated firmware (requiring a SIM card, Mi account, Windows software, and a full week of waiting time). DO NOT BUY XIAOMI PHONES!

Looking at the sub-150 EUR mid range category, comparing with the Moto G31 and G22. The Xiaomi Redmi 10C has been for sale at ALDI in Germany for 139 EUR as of August 2022. (Actually, the Lenovo-owned company MEDION is distributing this phone to ALDI, what an irony that the