This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/sbin/openrc-run | |
| ZRAM_SIZE=96M | |
| ZRAM_ALGO=zstd | |
| start() { | |
| ebegin "Starting ${RC_SVCNAME}" | |
| modprobe zram num_devices=1 | |
| echo ${ZRAM_ALGO} > /sys/block/zram0/comp_algorithm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| ALPINE_VERSION_MAJOR="3.23" | |
| ALPINE_VERSION="${ALPINE_VERSION_MAJOR}.4" | |
| ALPINE_ARCH="x86_64" | |
| ALPINE_ROOTFS="https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VERSION_MAJOR}/releases/${ALPINE_ARCH}/alpine-minirootfs-${ALPINE_VERSION}-${ALPINE_ARCH}.tar.gz" | |
| # Download the Alpine Linux root filesystem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/0006-Fix-introspection-failures.patch b/0006-Fix-introspection-failures.patch | |
| deleted file mode 100644 | |
| index 0cdc95c..0000000 | |
| --- a/0006-Fix-introspection-failures.patch | |
| +++ /dev/null | |
| @@ -1,47 +0,0 @@ | |
| -# Patches from https://github.com/archeYR/libfprint-CS9711 | |
| -From 02b285c9703c38d308fbe47a3c566ef1e7f883ca Mon Sep 17 00:00:00 2001 | |
| -From: =?UTF-8?q?Adam=20S=C5=82abo=C5=84?= <asaillen@protonmail.com> | |
| -Date: Mon, 16 Feb 2026 23:56:18 +0100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| source /etc/telegram/telegram.conf | |
| if [ -z "$BOT_TOKEN" ] || [ -z "$CHAT_ID" ]; then | |
| echo "Error: BOT_TOKEN and CHAT_ID must be set in /etc/telegram/telegram.conf" | |
| exit 1 | |
| fi | |
| # Function to send a message to Telegram |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| API="https://api.open-meteo.com/v1/forecast?latitude=35.6895&longitude=139.69171¤t=temperature_2m,relative_humidity_2m,apparent_temperature,is_day,precipitation,cloud_cover,wind_speed_10m,wind_direction_10m,wind_gusts_10m&timezone=Asia%2FBangkok&forecast_days=1" | |
| curl --max-time 2 -s $API | | |
| jq -r '"It'"'"'s currently " | |
| + (.current.temperature_2m | tostring) | |
| + (.current_units.temperature_2m | tostring) + | |
| " with " | |
| + (.current.relative_humidity_2m | tostring) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import subprocess | |
| import plistlib | |
| import time | |
| def send_notification(title, message, sound=None): | |
| command = 'display notification "{}" with title "{}" sound name "{}"'\ | |
| .format(message, title, sound) \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| # Get this value by reading msr 0x606 | |
| rapl_power_unit_value = 0x330A0E08 | |
| # pkg_pl_value = 0x860000DD8600 | |
| # Extract the power unit values | |
| # Power units are in bits 3:0 | |
| power_units = pow(0.5, (rapl_power_unit_value & 0xF)) | |
| time_units = pow(0.5, ((rapl_power_unit_value & 0xF0) >> 8)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Script to recursively find mach-o binaries in a directory | |
| # and convert the buildtools using vtool to IOSSIMULATOR | |
| import os | |
| import subprocess | |
| # Path to the vtool | |
| vtool_path = "/usr/bin/vtool" | |
| codesign_path = "/usr/bin/codesign" | |
| xattr_path = "/usr/bin/xattr" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $TargetUrl = "https://pixiv.net/ranking.php?mode=daily&content=illust&p=" | |
| $Pages = 4 | |
| Add-Type -TypeDefinition @' | |
| using System.Runtime.InteropServices; | |
| public class Wallpaper { | |
| public const uint SPI_SETDESKWALLPAPER = 0x0014; | |
| public const uint SPIF_UPDATEINIFILE = 0x01; | |
| public const uint SPIF_SENDWININICHANGE = 0x02; | |
| [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import urllib.request | |
| import html.parser | |
| import json | |
| TARGET_URL = ( | |
| "http://www.pix" "iv.net/ran" "king.php" "?mode=daily&content=illust&p=" | |
| ) | |
| PAGES = 4 | |
| # get a UA from useragents.me/api |
NewerOlder