Skip to content

Instantly share code, notes, and snippets.

View lae's full-sized avatar

只今立ち去った存在です lae

View GitHub Profile
#!/usr/bin/perl
use strict;
use warnings;
my %associations = (
100 => ['/microcosm/audio', '/microcosm/books', '/microcosm/games', '/microcosm/scramble', '/microcosm/work'],
101 => ['/microcosm/audio', '/microcosm/games']
);
@lae
lae / PKGBUILD
Created December 12, 2021 21:28
CoppeliaSim package for Arch Linux
# Maintainer: Musee Ullah <lae@lae.is>
pkgname=coppeliasim-bin
_name=coppeliasim
pkgver=4.2.0
_pkgver=${pkgver//./_}
pkgrel=1
pkgdesc="CoppeliaSim, formerly known as V-REP, is the Swiss army knife among robot simulators."
arch=("x86_64")
url="http://www.coppeliarobotics.com/"
@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 November 13, 2021 15:49
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:7d63de94e55b9c1a680adb0c8934111d
Created September 7, 2020 22:41
arch glibc updates
[lae@lilienne ~]$ grep glibc /var/log/pacman.log
[2019-05-27 11:14] [ALPM] installed glibc (2.29-1)
[2019-06-19 08:17] [ALPM] upgraded glibc (2.29-1 -> 2.29-2)
[2019-06-29 00:28] [ALPM] upgraded glibc (2.29-2 -> 2.29-3)
[2019-07-25 01:35] [ALPM] upgraded glibc (2.29-3 -> 2.29-4)
[2019-10-17 00:34] [ALPM] upgraded glibc (2.29-4 -> 2.30-1)
[2019-11-10T02:33:24-0800] [ALPM] upgraded glibc (2.30-1 -> 2.30-2)
[2019-11-21T15:11:27+0900] [ALPM] upgraded glibc (2.30-2 -> 2.30-3)
[2020-01-08T00:38:05-0800] [ALPM] installed lib32-glibc (2.30-3)
[2020-02-15T16:30:26-0800] [ALPM] upgraded glibc (2.30-3 -> 2.31-1)
@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).