Skip to content

Instantly share code, notes, and snippets.

{
debug
}
localhost:1234 {
tls internal
@websockets {
path /ws/*
header Connection *Upgrade*
// ==UserScript==
// @name MuteCM
// @namespace Violentmonkey Scripts
// @match https://abema.tv/*
// @grant none
// @version 1.0
// @author -
// @description 3/19/2023, 8:56:31 PM
// ==/UserScript==
@yaamai
yaamai / original.png
Last active September 13, 2023 01:34
original.png
// ==UserScript==
// @name MuteCM
// @namespace Violentmonkey Scripts
// @match https://abema.tv/*
// @grant none
// @version 1.0
// @author -
// @description 3/19/2023, 8:56:31 PM
// ==/UserScript==
aina@mihiro ~ % curl -vLo- -u aina --basic aina "http://192.168.100.253:33280/control/querylog?response_status=&search=%22192.168.100.101%22" | jq -r ".data[].question.name" | sort | uniq
Enter host password for user 'aina':
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Could not resolve host: aina
* Closing connection 0
curl: (6) Could not resolve host: aina
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 192.168.100.253:33280...
@yaamai
yaamai / tmux.gif
Last active November 17, 2022 01:51
a
tmux.gif
@yaamai
yaamai / dl-rpms.sh
Last active November 17, 2022 00:49
rhel8.5 docker
aina@mihiro ~/t/20221116-test-rhel8.5 % docker run --rm -it -v $PWD/w2:/w -w /w rockylinux:8.5.20220308 [2022/11/16 19:48:56.854] [130]
dnf install dnf-plugins-core
echo 8.5 > /etc/yum/vars/releasever
for f in $(ls /etc/yum.repos.d/*); do sed -E 's:repo=:repo=vault-:g' -i $f; done
curl -Lo /etc/yum.repos.d/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo
dnf download --resolve docker-ce docker-ce-cli containerd.io docker-compose-plugin tar audit audit-libs
@yaamai
yaamai / tmux.conf
Created November 14, 2022 04:08
tmux conf
####
# Options set -g prefix C-t
set -g prefix C-q
set -g set-clipboard on
set -g history-limit 655360
set -g base-index 1
set -g pane-base-index 1
set -g renumber-windows off
set -g automatic-rename off
set -g allow-rename off
@yaamai
yaamai / udp-loader.go
Created July 25, 2020 09:23 — forked from jtblin/udp-loader.go
UDP server performance optimisation
package main
import (
"crypto/rand"
"flag"
"log"
mrand "math/rand"
"net"
"os"
"os/signal"
etcher-cli -d /dev/sdc ubuntu-20.04-preinstalled-server-arm64+raspi.img
mount /dev/sdc2 /mnt/msd/
mount /dev/sdc1 /mnt/msd/boot/
cp firmware/boot/{*.dat,*.elf} /mnt/msd/boot/
zcat /mnt/msd/boot/vmlinuz > /mnt/msd/boot/vmlinux
sed -e '/\[pi4]/,/\[/{//!d}' -e '/\[pi4]/a max_framebuffers=2\nboot_delay\nkernel=vmlinux\ninitramfs initrd.img followkernel\n' -i /mnt/msd/boot/config.txt
cat <<EOF | sudo tee /mnt/msd/boot/auto_decompress_kernel
#!/bin/bash -e