Skip to content

Instantly share code, notes, and snippets.

View jupiterbjy's full-sized avatar
🪦
Being Ded

jupiterbjy

🪦
Being Ded
View GitHub Profile
#!/bin/bash
set -e
cd
wget https://github.com/AdguardTeam/AdGuardHome/releases/download/v0.107.71/AdGuardHome_linux_arm64.tar.gz
tar -xvf AdGuardHome_linux_arm64.tar.gz
cd AdGuardHome/
sudo ./AdGuardHome -s install
./AdGuardHome -s status
echo "visit http://$(hostname -I | xargs -n 1) for configuration"
@jupiterbjy
jupiterbjy / decorator_n_attr_access_demo.py
Last active September 10, 2025 15:33
demo code for friend
"""
Demonstration of attribute access behavior with decorators
"""
from typing import Any, Callable
import functools
"""
Decorators are used to 'decorate' callables and either extend or alter behavior.
@jupiterbjy
jupiterbjy / runtime_method_editing.py
Created September 10, 2025 15:31
demo code for friend
"""
Demonstrates method editing in runtime
"""
from pprint import pprint
import traceback
class SomeClass:
"""SomeDocstring"""
@jupiterbjy
jupiterbjy / logging.gd
Created August 6, 2025 19:40
Refactored old script for logging
class_name Logging extends Node
## Colorful (World) Logger
##
## Example usage: `static _LOGGER := Logging.get_logger("SomeName")`
##
## Recommended one static logger per script - reusing is supported tho (and untested).
##
## Since there's no file logging just pipe it to file (`bla >> log.txt`).
##
## :Author: jupiterbjy@gmail.com
"""
Dumb probably unsafe async API server, purely made of included batteries.
:Author: jupiterbjy@gmail.com
"""
import asyncio
from urllib.parse import unquote
from pprint import pprint
from collections.abc import Callable, Awaitable
@jupiterbjy
jupiterbjy / hover_expanding_grid.html
Created July 26, 2025 17:46
Tried to kill some time, yet somehow took way too long...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PyVNLauncher Main</title>
<style>
.grid-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
"""
Dumb probably unsafe async HTTP server, purely made of included batteries.
:Author: jupiterbjy@gmail.com
"""
import asyncio
import pathlib
from pprint import pprint
from typing import Iterator
"""
Dumb code to test which file names are invalid in prehistoric method - brute forcing.
:Author: jupiterbjy@gmail.com
"""
import json
import pathlib
from tempfile import TemporaryDirectory

Source: blue_agate from reddit

reagentc /disable
diskpart
select disk 0
list part

Check the recovery partition (which my case is 4) and select it & remove it