Skip to content

Instantly share code, notes, and snippets.

View akku1139's full-sized avatar
๐Ÿ”ฅ
Translating Hono docs

-akku- akku1139

๐Ÿ”ฅ
Translating Hono docs
View GitHub Profile
@akku1139
akku1139 / never_newtab.user.js
Last active December 12, 2023 05:22
ๆ–ฐใ—ใ„ใ‚ฟใƒ–ใงใƒชใƒณใ‚ฏใ‚’้–‹ใใ“ใจใ‚’้˜ปๆญขใ™ใ‚‹ใƒฆใƒผใ‚ถใƒผใ‚นใ‚ฏใƒชใƒ—ใƒˆ
// ==UserScript==
// @name ็ตถๅฏพๆ–ฐใ—ใ„ใ‚ฟใƒ–ใง้–‹ใ‹ใชใ„
// @namespace Violentmonkey Scripts
// @match *://*/*
// @grant none
// @version 1.0
// @author -
// @description 12/7/2023, 10:44:38 PM
// ==/UserScript==
@akku1139
akku1139 / keep_alive.py
Last active December 17, 2023 06:39
Replitใฎkeep-alive็”จ
from http.server import HTTPServer
from http.server import BaseHTTPRequestHandler
from threading import Thread
class CustomHTTPRequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header('Content-type', 'text/plain; charset=utf-8')
self.end_headers()
self.wfile.write('GETใƒกใ‚ฝใƒƒใƒ‰ใ‚’ๅฎŸ่ฃ…'.encode())
@akku1139
akku1139 / .mkchroot-common.sh
Last active January 21, 2024 10:53
chrootใ‚’ไฝœใ‚‹ใ‚นใ‚ฏใƒชใƒ—ใƒˆใŸใก
#!/bin/bash
# .mkchroot-common.sh distroname minirooturl chrootname
if [ `whoami` != "root" ]
then
echo "Must be run as root user."
exit 1
fi
tmpdir=$(mktemp -p /tmp -d chroot-${3}-${1}.XXXXXXXX)
trap "rm -rf $tmpdir" EXIT
@akku1139
akku1139 / enhanced-h264ify.user.js
Last active January 19, 2024 15:23
User script version of enhanced-h264ify
// ==UserScript==
// @name enhanced-h264ify
// @namespace Violentmonkey Scripts
// @version 0.1
// @description enhanced-h264ify for user script.
// @author akku
// @match *://*.youtube.com/*
// @match *://*.youtube-nocookie.com/*
// @match *://*.youtu.be/*
// @grant none
@akku1139
akku1139 / overlay_profile.service
Last active January 21, 2024 12:58
Vivaldi overlay profile
[Unit]
Description=Overlayfs Vivaldi profile
Requires=local-fs.target
After=local-fs.target
[Service]
User=root
Type=oneshot
Restart=no
RemainAfterExit=true
@akku1139
akku1139 / .editorconfig
Created January 25, 2024 08:37
Correspondence between .editorconfig and .vscode/settings.json
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true
[*]
# Change these settings to your own preference
@akku1139
akku1139 / keybase.md
Created March 18, 2024 17:51
keybase.md

Keybase proof

I hereby claim:

  • I am akku1139 on github.
  • I am akku1139 (https://keybase.io/akku1139) on keybase.
  • I have a public key whose fingerprint is 8D16 20B6 0CDF C431 806B 0FA7 0BE4 41B4 20B2 1AD3

To claim this, I am signing this object:

@akku1139
akku1139 / filter.txt
Last active December 30, 2024 10:01
uBlock Origin custom filter
! Jun 14, 2024 https://www.youtube.com
www.youtube.com###clarify-box
||mobile.events.data.microsoft.com^
! Jul 1, 2024 https://wallet.duinocoin.com
wallet.duinocoin.com##.adblocker_detected
!||discord.com^
!||x.com^
@akku1139
akku1139 / YouTube-Music-do-not-stop.user.js
Last active December 10, 2024 14:43
Preventing music from stopping automatically on YouTube Music
// ==UserScript==
// @name No stop YouTube Music
// @namespace Violentmonkey Scripts
// @match https://music.youtube.com/*
// @grant none
// @author akku
// @description 11/22/2024, 7:29:38 PM
// @description YouTube music has been modified to detect tab transitions and stop the music.
// @run-at document-start
// ==/UserScript==
@akku1139
akku1139 / LKML_Reader.js
Created November 27, 2024 15:14
LKML reader for NullStudio
// https://gist.github.com/akku1139/5355e46b54982ba868dfa1175388eb72
/** ๆœ€ๅฐๅฎŸ่ฃ…
* https://developers.cloudflare.com/email-routing/email-workers/runtime-api/
* @typedef EmailMessage
* @property {string} from
* @property {string} to
* @property {Headers} headers
* @property {ReadableStream} raw
* @property {number} rawSize