Skip to content

Instantly share code, notes, and snippets.

View elderica's full-sized avatar
🚞
I'm enjoying with trains and computers.

elderica

🚞
I'm enjoying with trains and computers.
View GitHub Profile

FreeBSD rc.subr + daemon(8) 組み合わせの作法

1. daemon(8) フラグの役割

daemon [フラグ] -- コマンド [引数...]
フラグ 意味
@elderica
elderica / llama.sh
Last active June 14, 2026 09:49
FreeBSD llama-server rc.d script for Hugging Face
#!/bin/sh
#
# PROVIDE: llama
# REQUIRE: DAEMON networking
# KEYWORD: shutdown
#
# /usr/local/etc/rc.d/llama (chmod 555)
#
# /etc/rc.conf に追加して有効化する:
#
using System.Diagnostics;
class Program
{
static FileInfo? SearchExecutable(string cmd)
{
var envpath = Environment.GetEnvironmentVariable("PATH") ?? "";
string[]? paths;
import math
import numpy
import pedalboard.io
wav_hz = 44100
musictime = wav_hz * 5
root = 1/(2**(1/2))
frq1 = 1./440.
frq2 = 440. * root * root
import math
import numpy
import pedalboard.io
wav_hz = 44100
musictime = wav_hz * 5
root = 1/(2**(1/2))
frq1 = 1./440.
frq2 = 440. * root * root
import math
import numpy
import pedalboard.io
wav_hz = 44100
musictime = wav_hz * 5
frq = 440.0
def main():
rawframes = []
import math
import array
import io
import os
import os.path as path
import wave
import winsound
wav_hz = 44100
musictime = wav_hz * 5
# See: https://github.com/openwrt/openwrt/issues/9619#issuecomment-1722333145
from tkinter import *
from tkinter import filedialog
from tkinter import messagebox
import gzip
import os
import os.path
def find_gzip_size(gz_filepath):
st = os.stat(gz_filepath)
@elderica
elderica / WindowsPathChecker.ps1
Last active September 3, 2025 11:29 — forked from yamamaya/WindowsPathChecker.cs
WindowsPathChecker - A simple console application to check the validity of paths
# ***********************************************************************
# WindowsPathChecker
# A simple console application to check
# the validity of paths in the Windows PATH environment variable.
# ***********************************************************************
using namespace System
using namespace System.IO
using namespace System.Collections.Generic
# システムにインストールされているパッケージをすべて更新して再起動する。
apt update && apt upgrade
reboot
# 再びrootとしてログインし、GNU ScreenとFreecivサーバをインストールする。
apt install screen freeciv-server
# Freecivサーバを動かすユーザfreecivを作り、パスワードを設定する。
useradd -m -s /bin/bash freeciv
passwd freeciv