Skip to content

Instantly share code, notes, and snippets.

View madonuko's full-sized avatar
:atom:
好き勝手

madomado madonuko

:atom:
好き勝手
View GitHub Profile
warning: unused variable: `value`
--> serde-systemd-unit/src/se.rs:234:40
|
234 | fn serialize_element<T>(&mut self, value: &T) -> Result<(), Self::Error>
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_value`
|
= note: `#[warn(unused_variables)]` on by default
warning: unused variable: `value`
--> serde-systemd-unit/src/se.rs:251:38
use crate::{backend::tweaks::TWEAKS, prelude::*};
fn page_skipconfig() -> bool {
TWEAKS.is_empty()
}
struct TweaksFactory(FactoryVecDeque<TweakBox>);
impl Default for TweaksFactory {
fn default() -> Self {
@madonuko
madonuko / git-aliases.zsh
Created December 13, 2024 10:22
git aliases for zsh / bash / idk
# Git version checking
autoload -Uz is-at-least
git_version="${${(As: :)$(git version 2>/dev/null)}[3]}"
#
# Functions Current
# (sorted alphabetically by function name)
# (order should follow README)
#
@madonuko
madonuko / idk.txt
Created March 20, 2024 09:41
Output of `tree /usr/lib/nim/lib/`
/usr/lib/nim/lib/
├── arch
│   └── x86
│   ├── amd64.S
│   └── i386.S
├── core
│   ├── hotcodereloading.nim
│   ├── locks.nim
│   ├── macrocache.nim
│   ├── macros.nim
@madonuko
madonuko / shizuku.log
Created February 9, 2024 14:33
Shizuku log with WAYLAND_DEBUG=1 repro
[3392307.259] -> wl_display@1.get_registry(new id wl_registry@33)
[3392307.287] -> wl_display@1.sync(new id wl_callback@34)
[3392307.626] wl_display@1.delete_id(34)
[3392307.650] wl_registry@33.global(1, "wl_shm", 1)
[3392307.665] wl_registry@33.global(2, "wl_drm", 2)
[3392307.676] wl_registry@33.global(3, "zwp_linux_dmabuf_v1", 4)
[3392307.688] wl_registry@33.global(4, "wl_compositor", 5)
[3392307.699] wl_registry@33.global(5, "wl_subcompositor", 1)
[3392307.711] wl_registry@33.global(6, "wl_data_device_manager", 3)
[3392307.722] wl_registry@33.global(7, "zwp_primary_selection_device_manager_v1", 1)
@madonuko
madonuko / skiff.log
Created January 31, 2024 14:30
Logs when running `G_MESSAGES_DEBUG=all flatpak run com.fyralabs.SkiffDesktop 2&>1 > skiff.log`
(flatpak run:373596): GLib-GIO-DEBUG: 22:06:40.248: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
flatpak-INFO: 22:06:40.249: No installations directory in /etc/flatpak/installations.d. Skipping
(flatpak run:373596): OSTree-DEBUG: 22:06:40.249: using fuse: 0
flatpak-INFO: 22:06:40.250: Opening system flatpak installation at path /var/lib/flatpak
(flatpak run:373596): OSTree-DEBUG: 22:06:40.250: using fuse: 0
flatpak-INFO: 22:06:40.250: Opening user flatpak installation at path /home/mado/.local/share/flatpak
flatpak-INFO: 22:06:40.251: Opening user flatpak installation at path /home/mado/.local/share/flatpak
flatpak-INFO: 22:06:40.251: Opening system flatpak installation at path /var/lib/flatpak
(flatpak run:373596): GLib-GIO-DEBUG: 22:06:40.253: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
flatpak-INFO: 22:06:40.257: Skipping parental controls check for app/com.fyralabs.SkiffDesktop/x86_64/stable since parental control
@madonuko
madonuko / pacman -Ql python38
Last active June 13, 2021 11:49
Output of `pacman -Ql python38`
python38 /usr/
python38 /usr/bin/
python38 /usr/bin/2to3-3.8
python38 /usr/bin/idle3.8
python38 /usr/bin/pydoc3.8
python38 /usr/bin/python3.8
python38 /usr/bin/python3.8-config
python38 /usr/include/
python38 /usr/include/python3.8/
python38 /usr/include/python3.8/Python-ast.h
@madonuko
madonuko / minecraft_crash.txt
Created December 12, 2020 09:26
Oh well, minecraft crashed.
╔══════════════════════════════════════════════════════════════════════════════════╗
║ GAME CRASH ║
║ ║
║ An unexpected issue occurred and the game has crashed. We're sorry for the ║
║ inconvenience. ║
║ ╔═══════════╗ ║
║ ║ CLOSE ║ ║
║ ╚═══════════╝ ║
║ ║
╚══════════════════════════════════════════════════════════════════════════════════╝
@madonuko
madonuko / ddos.py
Created December 11, 2020 15:34
well. ddos. some really bad code.
import requests, multiprocessing, asyncio, time, sys
link = input("link? > ")
msg = input("req? > ")
# port = 443 # https
port = 80 # http
print("==> Readying...")
n = i = e = 0
@madonuko
madonuko / brute_force.nim
Created December 11, 2020 15:28
brute force stuff in nim. yep, the code in the video.
import nimSHA2
import terminal
import threadpool
import system
import math
import common
import std/sha1
import strutils
threadpool.setMinPoolSize(24)
var