Skip to content

Instantly share code, notes, and snippets.

View akku1139's full-sized avatar
🦜
MediaTek MT6589 Mainline

Akari Tsuyukusa akku1139

🦜
MediaTek MT6589 Mainline
View GitHub Profile
@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 / 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 / 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
@akku1139
akku1139 / gemini_opt.c
Last active December 30, 2024 07:09
ASUSN CTF 2 - Reversing - whitespace
#include <assert.h>
#include <setjmp.h>
#include <stdio.h>
#include <stdlib.h>
// インライン展開の定義 (C++以外)
#ifndef __cplusplus
# if defined(_MSC_VER)
# define inline __inline
# define __inline__ __inline
@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^
import discord
import os
TOKEN = "TOKEN" # Discordのtoken
ID = 1324402148137504800 # スパマーのID
client = discord.Client()
@client.event
async def on_ready():
- waiting for device -
--------- beginning of main
I/lowmemorykiller( 120): Using in-kernel low memory killer interface
I/auditd ( 117): type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
W/init ( 1): type=1400 audit(0.0:3): avc: denied { sys_module } for capability=16 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability
I/cm ( 137): ____ _ _ ____ _ _ ____ ____ ____ _ _ _ _ ____ ___
I/cm ( 139): | \_/ |__| |\ | | | | __ |___ |\ | |\/| | | | \
I/cm ( 143): |___ | | | | \| |__| |__] |___ | \| | | |__| |__/
--------- beginning of system
I/Vold ( 122): Vold 2.1 (the revenge) firing up