Skip to content

Instantly share code, notes, and snippets.

View yude's full-sized avatar

Takehiro Ogura yude

  • Internet Initiative Japan Inc.
  • Chiba, Japan
  • 13:54 (UTC +09:00)
View GitHub Profile
[% aregeword = ['アレゲはアレゲ以上のなにものでもなさげ -- アレゲ研究家',
'吾輩はリファレンスである。名前はまだ無い -- perlの中の人',
'犯人は巨人ファンでA型で眼鏡をかけている -- あるハッカー',
'犯人はmoriwaka -- Anonymous Coward',
'クラックを法規制強化で止められると思ってる奴は頭がおかしい -- あるアレゲ人',
'日本発のオープンソースソフトウェアは42件 -- ある官僚',
'あつくて寝られない時はhackしろ! 386BSD(98)はそうやってつくられましたよ? -- あるハッカー',
'未知のハックに一心不乱に取り組んだ結果、私は自然の法則を変えてしまった -- あるハッカー',
'皆さんもソースを読むときに、行と行の間を読むような気持ちで見てほしい -- あるハッカー',
'ナニゲにアレゲなのは、ナニゲなアレゲ -- アレゲ研究家',
@eggplants
eggplants / pinball_mac.sh
Last active May 13, 2022 12:36
Build k4zmu2a/SpaceCadetPinball on Ubuntu & MacOS
brew install sdl2 sdl2_mixer cmake timidity
git clone --depth 1 https://github.com/k4zmu2a/SpaceCadetPinball
cd SpaceCadetPinball
cmake . && cmake --build .
git clone --depth 1 https://github.com/FmasterofU/WinXP-Pinball
mv WinXP-Pinball/Pinball/* bin
rm -rf WinXP-Pinball
./bin/SpaceCadetPinball
@CombinedEffort
CombinedEffort / readme.en.md
Last active May 16, 2026 11:56
How to run Windows 11 on ARM in QEMU 6.1 on Apple Silicon Mac

How to run Windows 11 on ARM in QEMU 6.1 on Apple Silicon Mac

  1. Follow the excellent gist here, up to and including step 7 : https://gist.github.com/niw/e4313b9c14e968764a52375da41b4278

  2. I converted my VHDX to qcow2 - I doubt if that's significant, but YMMV:

./qemu-img convert -p -O qcow2 ~/Windows11_InsiderPreview_Client_ARM64_en-us__22454-orig.VHDX Windows11.img
  1. Run qemu with a slightly modified command-line. It may not be the most efficient, but it worked for me:
@tsukumijima
tsukumijima / TwitterRevertColoring.user.css
Last active May 7, 2024 12:08
Twitter の UI の配色を元に戻すユーザースタイル
/* ==UserStyle==
@name TwitterRevertColoring
@description Twitter の UI の配色を元に戻すユーザースタイル
@namespace https://gist.github.com/tsukumijima
@updateURL https://gist.github.com/tsukumijima/931905c4ed3f181ce926730463a29d80/raw/TwitterRevertColoring.user.css
@author tsukumi
@version 1.3.9
@license MIT
==/UserStyle== */
@tsukumijima
tsukumijima / npm.ps1
Created June 8, 2021 17:23
Windows で npm run serve を Ctrl+C で終了すると毎回「バッチ ジョブを終了しますか (Y/N)?」と表示されるのを回避するための PowerShell スクリプト
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}
$ret=0
@MartijnHols
MartijnHols / useDocumentHeight.ts
Last active April 13, 2026 18:34
React hooks for getting the document height that updates when the On Screen Keyboard/Virtual Keyboard toggles
The latest version is available at https://martijnhols.nl/gists/how-to-get-document-height-ios-safari-osk
@Narangelife
Narangelife / discordbot.py
Created May 28, 2021 14:06
Discord bot for interaction button
import discord
import requests
from discord.ext import commands
from pprint import pprint
import aiohttp
TOKEN = "AAAAA"
headers = {
"Authorization": "Bot AAAAA"
@siketyan
siketyan / rdp-iikanji.json
Created April 14, 2021 05:02
US 配列の macOS から Windows へ RDP をいい感じにしたかった
{
"title": "RDP をいい感じにするルール",
"rules": [
{
"description": "Cmd 単押しで Alt,長押しで Ctrl",
"manipulators": [
{
"type": "basic",
"description": "LCmd 単押しで LAlt,長押しで LCtrl を送信",
"from": {
@puhitaku
puhitaku / fontify.py
Last active February 12, 2021 13:52
Unicode special character converter
#!/usr/bin/env python3
import fileinput, sys
from dataclasses import dataclass
@dataclass
class Style:
start: int
patch: dict
@kurokobo
kurokobo / automuteus-over-ssl.md
Last active March 11, 2021 01:54
AutoMuteUs over SSL: All-in-One Docker Compose file with Nginx/Caddy reverse proxy with Let's Encrypt SSL certificate