Skip to content

Instantly share code, notes, and snippets.

View yude's full-sized avatar

Takehiro Ogura yude

  • Internet Initiative Japan Inc.
  • Chiba, Japan
  • 04:19 (UTC +09:00)
View GitHub Profile
@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 April 11, 2025 02:00
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 March 20, 2025 17:14
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

Minecraft on Apple Silicon

In this gist, you can find the steps to run Minecraft 1.16.4 natively on Apple Silicon (AS), without needing Rosetta 2 translation of the dependencies (mainly LWJGL and related libraries).

While it's possible to use a launcher like MultiMC to have a prettier way to run the game on AS, it requires installing even more dependencies (like QT) which take time and are difficult to distribute. Therefore, I've put together a command line-based launcher tool using a couple shell & Python scripts.

To get up and running quickly, follow the steps below. Otherwise, for more detail, watch my YouTube video.

Download my package