Skip to content

Instantly share code, notes, and snippets.

@blacknon
blacknon / test_parseopt.nim
Created January 4, 2023 23:36
nimでshort optionを書いているコマンドラインをパースしてseqにするサンプルコード
import std/parseopt
import hashes
import sets
import sequtils
var p = initOptParser("-ab -c:123 -d xyz -e:5 --foo --bar=20 file.txt")
var cmdline: OrderedSet[string] = initOrderedSet[string]()
while true:
p.next()
@blacknon
blacknon / kaomoji.txt
Created February 25, 2023 02:35
ちょっと後で使いたくなりそうな顔文字系のメモ
`ʕ•͡ᴥ•ʔ ʕ•͡ᴥ•ʔ ʕ•͡ᴥ•ʔ`
@blacknon
blacknon / google-dorks
Last active June 23, 2025 03:05 — forked from mehdichaouch/google-dorks
Listing of a number of useful Google dorks.
Explanations:
cache: If you include other words in the query, Google will highlight those words within
the cached document. For instance, [cache:www.google.com web] will show the cached
content with the word “web” highlighted. This functionality is also accessible by
clicking on the “Cached” link on Google’s main results page. The query [cache:] will
show the version of the web page that Google has in its cache. For instance,
[cache:www.google.com] will show Google’s cache of the Google homepage. Note there
can be no space between the “cache:” and the web page url.
------------------------------------------------------------------------------------------
@blacknon
blacknon / create-cloud-template.sh
Created August 17, 2023 01:24 — forked from chriswayg/create-cloud-template.sh
This script will download a cloud image of many Linux distros and create a Proxmox 6 KVM template from it.
#!/bin/bash
set -o errexit
clear
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n"
### HOW TO USE
### Pre-req:
### - run on a Proxmox 6 server
### - a dhcp server should be active on vmbr1
@blacknon
blacknon / hoge.bash
Created May 22, 2025 08:48
command
xorriso -as mkisofs \
-o proxmox-auto.iso \
-isohybrid-mbr iso/boot/isolinux/isohdpfx.bin \
-c isolinux/boot.cat \
-b isolinux/isolinux.bin \
-no-emul-boot -boot-load-size 4 -boot-info-table \
-eltorito-alt-boot \
-e boot/grub/efi.img \
-no-emul-boot \
-isohybrid-gpt-basdat \