Skip to content

Instantly share code, notes, and snippets.

View lae's full-sized avatar
☠️
untreated medical emergency sena please assist

lae

☠️
untreated medical emergency sena please assist
View GitHub Profile
@lae
lae / ff-for-github.user.js
Last active April 28, 2026 13:57
Browser userscript (FireMonkey, etc.) for fast-forward merge support on GitHub
// ==UserScript==
// @name Fast-forward merge for GitHub
// @namespace https://github.com/simnalamburt/ff-for-github
// @version 0.2.0
// @description Shows whether or not a GitHub PR or branch can be fast-forward merged and lets you do it.
// @match https://github.com/*
// @run-at document-idle
// @grant GM_xmlhttpRequest
// @grant GM_getValue
// @grant GM_setValue
@lae
lae / beatani_chats.txt
Created August 20, 2021 06:39
Chat Message Counts For Beatani's Streams
URL: https://youtu.be/WfRg8-_4qE8
Title: [drawing] My idea of an idol costume
Total Chat Messages: 3677
URL: https://youtu.be/8ZeaEdXcw20
Title: [Collabo with Eira] We're gonna take some cute pictures! [yahcraft]
Total Chat Messages: 3311
URL: https://youtu.be/sU-WurcbTWQ
Title: The 2nd war - No drama so the bush war - /yah/craft
@lae
lae / hennge-challenge.go
Last active May 10, 2026 05:03
Sum of Squares Challenge for HENNGE (made public after interviews)
// nyan.
// as the main constraint for this challenge appears to be no use
// of for statements, it primarily makes use of recursion.
package main
import (
"fmt"
"io"
"log"
)
@lae
lae / nijisanji_world_clips.json
Last active May 21, 2021 10:00
A list of clips on the official Nijisanji English channel and their translators
[
{
"id": "4ZQ1esOqmuo",
"title": "Ange plays Horror game ParanormalHK and scares herself! (VTuber/NIJISANJI Moments) (Eng Sub)",
"date": "20200621",
"translator": "Neko Mikuri",
"twitter": "nekondeimasu"
},
{
"id": "dP8atr2Ivlk",
@lae
lae / holoen_first_sc_distributions.adoc
Last active September 18, 2020 03:11
Hololive EN SC Currency Distributions (First Stream)

Hololive EN SC Currency Distributions (First Stream)

This is a set of tables containing the total amount of super chats per currency each Hololive English member received during their first stream with monetization enabled. This is not a comprehensive total of all super chats, as the source for this data is from the chat data that is saved alongside the stream’s archive, so it doesn’t include many super chats from before and after the stream. This document is intended to only provide a general idea as to where super chat donations are coming from for each member.

@lae
lae / gist:61adb314aa3866546e1c6ee3b880a004
Created September 5, 2020 18:34
E301-9D-8CN4 VFIO related specs
IOMMU Group 0:
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
IOMMU Group 1:
00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge [1022:1453]
IOMMU Group 10:
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B [1022:1454]
IOMMU Group 11:
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 59)
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
IOMMU Group 12:
@lae
lae / backup.sh
Created June 13, 2020 21:15
minecraft server differential backup
#!/usr/bin/env bash
# Runs a backup of the Hololive Fan Minecraft server and stores it offsite.
# Bits and pieces from https://github.com/nicolaschan/minecraft-backup (MIT License)
ROOT=/home/lae/.hololive-mc
MCROOT=$ROOT/data
WORLD=world
SAVEROOT=$ROOT/backups
OFFSITE_SAVEROOT="lae@10.17.3.10:/mnt/umaru/backups/hololive-mc"
SSH_ARGS="-i $ROOT/backup.key"
@lae
lae / readme.adoc
Last active January 28, 2020 19:06
minecraft watcher

Minecraft Watcher

Periodically checks a Minecraft server for changes in online players, logs those changes, and sends desktop notifications (using libnotify) for those changes.

Setup

The following setup assumes python-gobject (Python 3) is installed by your package manager. This dependency can be satisified by pip install PyGObject from within the venv, but compile issues might occur (and is outside the scope of this article).

---
- hosts: localhost
connection: local
tasks:
- debug:
var: ansible_ssh_user
- debug:
message: "{{ item }}"
with_items:
- "{{ ansible_ssh_user }}"
@lae
lae / asic.txt
Created October 3, 2018 00:20 — forked from monacoinproject/asic.txt
ASICについて
MonacoinprojectはASICを否定しません。
ASICは消費電力、ネットハッシュの確保(=攻撃コストの増加)という点で有効です。
(同じようなことを2014年にもどこかで書いた記憶が・・・)
先のアルゴリズム変更は遅延を解消することが目的で、"結果的"にscrypt-ASICが使えなくなったという事です。
もっとも当時のscryptはSHA256に次ぐ採用率の高いアルゴリズムであったので、他のコインへの流用は十分可能だったと思います。
将来的にLyra2REv2でも遅延・寡占が問題になった場合はアルゴリズムの変更が検討されるでしょう。
ASICの首を絞めるのはASICによって遅延を引き起こす一部のユーザーにあります。
逆に遅延も無く、高いネットハッシュが安定して続くのであればアルゴリズムの変更はありません。