Skip to content

Instantly share code, notes, and snippets.

@syuu1228
syuu1228 / gist:0a1385b60017b7fedb916addb1745785
Created April 14, 2025 12:57
install-dependencies.sh.el9.patch
diff --git a/install-dependencies.sh b/install-dependencies.sh
index 5ea4cd6784..fb8b58f30b 100755
--- a/install-dependencies.sh
+++ b/install-dependencies.sh
@@ -64,8 +64,6 @@ fedora_packages=(
gdb
lua-devel
yaml-cpp-devel
- antlr3-tool
- antlr3-C++-devel
@syuu1228
syuu1228 / test100w.sh
Created March 26, 2025 20:46
fio benchmark script
#!/bin/bash
DEV_NAME=$1
DEV_NODE=$(basename $DEV_NAME)
if [ "$DEV_NAME" = "" ]; then
echo "device not specified"
exit 1
fi
function CheckHasFS
@syuu1228
syuu1228 / i7ie.12xlarge.0.1024k-read.json
Created March 26, 2025 20:41
fio benchmark result of i7ie instance
{
"fio version" : "fio-3.36",
"timestamp" : 1743018899,
"timestamp_ms" : 1743018899161,
"time" : "Wed Mar 26 19:54:59 2025",
"global options" : {
"ioengine" : "libaio",
"runtime" : "30s",
"numjobs" : "48",
"iodepth" : "128",
@syuu1228
syuu1228 / coredumptest.py
Created July 10, 2023 11:29
coredumptest
#!/usr/bin/python3
import os
import signal
import socket
import time
from selectors import DefaultSelector, EVENT_READ
from http.server import HTTPServer, SimpleHTTPRequestHandler
interrupt_read, interrupt_write = socket.socketpair()
@syuu1228
syuu1228 / 0001docomo-nmcli.txt
Last active April 16, 2025 17:54
Linuxのコマンドラインから0001docomoに接続
$ nmcli connection add type wifi ifname wlo1 con-name 0001docomo ssid 0001docomo
Connection '0001docomo' (a6fde1b0-6055-4e6c-a314-05027eb6083a) successfully added.
$ nmcli con edit id 0001docomo
===| nmcli interactive connection editor |===
Editing existing '802-11-wireless' connection: '0001docomo'
Type 'help' or '?' for available commands.
Type 'print' to show all the connection properties.
@syuu1228
syuu1228 / hmac.tar.gz
Last active May 15, 2023 07:53
hmac.tar.gz
./.libcrypto.so.1.1.1k.hmac0000644000000000000000000000010114030716735014056 0ustar rootroot9b44646da75a74145ded9aa349b79ceac1bd3e9e41a89f32259841a0900348a6
#!/usr/bin/python3
import re
with open('/etc/chrony/chrony.conf') as f:
chrony_conf = f.read()
chrony_conf = re.sub(r'^(pool .*$)', '# \\1', chrony_conf, flags=re.MULTILINE)
with open('/etc/chrony/chrony.conf', 'w') as f:
@syuu1228
syuu1228 / macOS_smbfs_crash.txt
Created December 12, 2022 12:39
macOS smbfs crash
panic(cpu 4 caller 0xfffffe001335f2f0): watchdog timeout: no checkins from watchdogd in 91 seconds (190 total checkins since monitoring last enabled)
Debugger message: panic
Memory ID: 0x6
OS release type: User
OS version: 22A400
Kernel version: Darwin Kernel Version 22.1.0: Sun Oct 9 20:14:30 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8103
Fileset Kernelcache UUID: 45C5EC70B9F83105E3F59CFE0A124F15
Kernel UUID: 0BFE6A5D-118B-3889-AE2B-D34A0117A062
Boot session UUID: C3C94A9E-8C1E-4A89-809D-E949D951715B
iBoot version: iBoot-8419.41.10
@syuu1228
syuu1228 / rar2zip.sh
Last active August 12, 2020 08:37 — forked from ferdnyc/rar2zip.sh
Conversion from rar to zip (ported to macos)
#!/bin/bash
#
# rar2zip conversion script
# Based on: https://shkspr.mobi/blog/2016/12/converting-rar-to-zip-in-linux/
#
# Usage: rar2zip.sh file [file ...]
echo "Converting RARs to ZIPs"
# Use /tmp for temporary files.
syuu@X1CARBON:~$ sudo parted /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: Msft Virtual Disk (scsi)
Disk /dev/sda: 275GB
Sector size (logical/physical): 512B/4096B
Partition Table: loop
Disk Flags: