Skip to content

Instantly share code, notes, and snippets.

@k16shikano
k16shikano / SKILL.md
Last active June 29, 2026 23:48
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。整形(一文一行、引用ブロック、脚注、コラム記法)、段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

整形

@stil
stil / ProxmoxAutoType.js
Last active January 23, 2025 14:42
Auto type in noVNC (Proxmox)
(async () => {
const text = prompt("Enter text to type:");
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
const input = document.getElementById("noVNC_keyboardinput");
const keydown = (key) => input.dispatchEvent(new KeyboardEvent("keydown", { key }));
for (let i = 0; i < text.length; i++) { keydown(text[i]); await sleep(50); }
})();
@xrobau
xrobau / extract.sh
Created April 7, 2024 23:11
Windows 10 SLIC and MSDM into Proxmox KVM
#!/bin/bash
# On the 'donor' machine, boot a live linux ISO (Ubuntu or whatever)
# and connect it to the internet. Then run these commands, which will
# dump the contents to sprunge.us so you can retrieve them easily. Or
# copy them manually, whatever.
mkdir -p /tmp/MSDM
cd /tmp/MSDM
for f in SLIC MSDM; do
@edjdavid
edjdavid / file.md
Created October 13, 2022 12:45
Stream Windows webcam/desktop via RTSP

Can be used for streaming data (webcam or screen capture) from the Windows to WSL

Install

  1. Simple RTSP Server
  2. ffmpeg

Get the internal IP of WSL

Run from a WSL terminal

ip route list default | awk '{print $3}'
@diyfr
diyfr / teleport.md
Last active July 5, 2022 17:00
Configurer Teleport derrière Traefik

TELEPORT Un PAM open Source pour se connecter à des serveurs via le navigateur

https://goteleport.com/docs/

Serveur Teleport

Il faut ouvrir les ports de 3023 à 3027 sur la console azure

Ajouter dans un compose

version: '3.7'
@yvesh
yvesh / gist:64ec1f64e3c7c26497282b776348f662
Created December 19, 2019 11:49
Proxmox LXC Arch Linux Container with passed through GPU, KVM, sound, keyboard etc. (Xorg with amdgpu working), Looking Glass Host - Linux Main OS in a container
arch: amd64
cores: 24
features: fuse=1,mount=nfs;cifs,nesting=1
hostname: archxorg
memory: 64000
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=XX:XX:XX:XX:XX.XX,ip=dhcp,type=veth
ostype: archlinux
rootfs: local-zfs:subvol-100-disk-0,size=500G
swap: 512
lxc.autodev: 1
@SDSkyKlouD
SDSkyKlouD / vultr-linode-vps-performance-comparison-20190719.md
Last active May 14, 2025 02:39
Vultr VC2 $5 vs Vultr HF $6 vs Linode Nanode $5 - performance comparison

Vultr VC2 vs Vultr HF vs Linode - $5 ~ $6 Performance Benchmarks

Benchmarked on 2019/07/19
by SD SkyKlouD (https://sdsk.one/ | Twitter @_SDSkyKlouD)

Plans compared

Vultr VC2 $5

  • CPU : Virtual CPU 714389bda930 @ 2.4GHz
  • 1 Core 1 Thread
@jayvdb
jayvdb / RefreshEnv.sh
Last active February 4, 2022 07:01
chocolatey RefreshEnv for bash
function refreshenv
{
powershell -NonInteractive - <<\EOF
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
Update-SessionEnvironment
# Round brackets in variable names cause problems with bash
Get-ChildItem env:* | %{
if (!($_.Name.Contains('('))) {
@janeczku
janeczku / 00-cloud-config.yml
Last active October 25, 2025 02:37
Annotated RancherOS Cloud-init configuration snippets
#cloud-config
# Set the hostname for this machine (takes precedence over hostname assigned by DHCP lease).
hostname: myhost
# Authorize SSH keys for the `rancher` sudoer user
ssh_authorized_keys:
- ssh-rsa AAA...ZZZ example1@rancher
@tonnylitao
tonnylitao / SmartSpeed.swift
Last active July 5, 2022 05:15
Smart Speed like Overcast. Smart Speed means shorten the silence of audio for saving time.
do {
try audioPlayer = AVAudioPlayer(contentsOf: url)
audioPlayer.isMeteringEnabled = true
audioPlayer.enableRate = true
audioPlayer.prepareToPlay()
} catch let error as NSError {
print("audioPlayer error \(error.localizedDescription)")
}
audioPlayer.play()