Skip to content

Instantly share code, notes, and snippets.

View aoirint's full-sized avatar
🐱

aoirint aoirint

🐱
View GitHub Profile
@morbeo
morbeo / get_minecraft_versions.sh
Last active July 15, 2025 02:50
Get a list of Minecraft version jsons
curl -s https://launchermeta.mojang.com/mc/game/version_manifest.json | sed -E -e 's/.*("versions".*[^\]]).*/\1/g' -e 's/},/},\
/g' | awk -F\" '{print $4,$8,$20}' | column -t
id type url
17w15a snapshot https://launchermeta.mojang.com/mc/game/369f3dabee7485e12aae81e971487bac3da2d6e6/17w15a.json
17w14a snapshot https://launchermeta.mojang.com/mc/game/0536ebf96543b0a0212a89d2a97600c9f263c7bf/17w14a.json
17w13b snapshot https://launchermeta.mojang.com/mc/game/ba59e4831cfa0afc2fba4658f6d86d5599cfaa9c/17w13b.json
17w06a snapshot https://launchermeta.mojang.com/mc/game/7db0c61afa278d016cf1dae2fba0146edfbf2f8e/17w06a.json
1.11.2 release https://launchermeta.mojang.com/mc/game/12f260fc1976f6dd688a211f1a906f956344abdd/1.11.2.json
1.11.1 release https://launchermeta.mojang.com/mc/game/4fce28e8455640c8e1061f40c2be4bec4631a5ff/1.11.1.json
16w50a snapshot https://launchermeta.mojang.com/mc/game/e913d0001d077f341a5c71754ad7766c552e875e/16w50a
@mshkrebtan
mshkrebtan / webex-ubuntu.md
Last active October 28, 2022 15:23
Run Cisco Webex on 64-bit Ubuntu 16.04

Run Cisco Webex on 64-bit Ubuntu 16.04

With Audio and Screen Sharing Enabled

Enable support for 32-bit executables

Add the i386 architecture to the list of dpkg architectures :

sudo dpkg --add-architecture i386
@kafene
kafene / pulseaudio-systemd-user.md
Created May 18, 2017 08:00
Pulseaudio via systemd --user

~/.config/systemd/user/pulseaudio.service:

[Unit]
Description=Pulseaudio Sound Service
Requires=pulseaudio.socket

[Service]
Type=notify
ExecStart=/usr/bin/pulseaudio --verbose --daemonize=no
@funwarioisii
funwarioisii / script_generator.py
Created January 27, 2018 07:34
Beamerでスライド作ると発表用原稿とか作れないからmdで原稿出力するやつ作った
class NoteGenerator:
def __init__(self, source, target):
self.source = source
self.target = target
with open(self.target,'wt') as f:
f.write('')
def write(self, comment):
with open(self.target, "at") as f:
f.write('{}{}'.format(comment, '\n'))
@christopheranderson
christopheranderson / index.ts
Created August 28, 2018 02:10
create-hmac typescript default import
import createHmac from "create-hmac";
const hmac = createHmac("sha256", "hello world").update("I love cupcakes").digest("hex");
console.log(hmac);
@mizchi
mizchi / how-hooks-work.md
Last active December 24, 2024 01:48
(翻訳) React Hooks は魔法ではなく、ただの配列だ

(翻訳) React Hooks は魔法ではなく、ただの配列だ

この記事は https://medium.com/@ryardley/react-hooks-not-magic-just-arrays-cd4f1857236e の日本語訳です。途中で力尽きて雑な翻訳になってる箇所がいくつかあります。


どのように Hooks が動いているか

私は、新しい Hooks の API の "magic" な挙動に悩んでいる人が結構いると聞いています。なのでこの構文の提案が、少なくとも表面的なレベルではどう動いているか、解説してみようと思います。

powershell (Add-Type '[DllImport(\"user32.dll\")]^public static extern int PostMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::PostMessage(-1,0x0112,0xF170,2)
@jooize
jooize / multiple-firefox-in-windows-taskbar.markdown
Last active September 3, 2025 16:34
Multiple Firefox in Windows Taskbar
  • Open Run (Winkey-R or right-click Start menu), insert "%PROGRAMFILES%\Mozilla Firefox\firefox.exe" -p, press OK, to start Firefox profile manager.
  • You may be able to run simply firefox -p. Guide is written to be robust for system differences.
  • Press "Create Profile...".
  • Press "Next".
  • Insert a profile name. It can contain spaces. Example: "Web App 1"
  • Now don't rush. It is easy to inadvertently change the default profile.
  • Press "Finish".
  • Press "Exit". If you instead pressed "Start Firefox" without unchecking "Use the selected profile without asking at startup": open Firefox profile manager again (read step 1), select your desired profile (probably "default"), enable the option "Use the selected profile [...]", press "Start Firefox", continue with the step after this.
  • Open Run, insert: "%PROGRAMFILES%\Mozilla Firefox\firefox.exe" --no-remote -P "Web App 1"
  • Select the location field (Ctrl-L).
@Treeki
Treeki / TurnipPrices.cpp
Last active October 29, 2025 10:41
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@colemickens
colemickens / amiibo-emulation-with-linux-vm.md
Last active August 3, 2025 05:11
amiibo-emulation-with-linux-vm.md

Easy Amiibo Emulation - https://bit.ly/2z0m09k

(^ that's a short-link to this page, so you can open it in Linux)

Some users are discussing this guide in #hacking on the JoyConDroid Discord: https://discord.gg/SQNEx9v.

DO NOT ask for, or share links to, Amiibo bins in the comments! They will be removed. Thank you for understanding.

(Windows|Linux PC) + JoyControl + Bluetooth = AMIIBO EMULATION