- 利用 /dev/urandom 快速生成随机 hexadecimal
hexdump -v -e '4/1 "%02x" "\t" "%02x" "\n"' /dev/urandom
- 快速生成10000个随机数字
hexdump -v -e '4/1 "%02x""\n"' /dev/urandom | awk '{ print strtonum("0x" $0) }' | head -n 10000
[Unit] | |
Description=naiveproxy - Make a fortune quietly | |
Documentation=https://github.com/klzgrad/naiveproxy/blob/master/USAGE.txt | |
After=network.target nss-lookup.target | |
Wants=network-online.target | |
[Service] | |
# If the version of systemd is 240 or above, then uncommenting Type=exec and commenting out Type=simple | |
Type=exec | |
#Type=simple |
hexdump -v -e '4/1 "%02x" "\t" "%02x" "\n"' /dev/urandom
hexdump -v -e '4/1 "%02x""\n"' /dev/urandom | awk '{ print strtonum("0x" $0) }' | head -n 10000
function welcome() { | |
local cowfiles=($(cowsay -l | tail -n+2 | tr '\n' ' ')) | |
local last_idx_cowfiles=$(expr ${#cowfiles[@]} - 1 ) | |
local selected_cowfile=${cowfiles[$(shuf -i 0-$last_idx_cowfiles -n1)]} | |
fortune | cowsay -f $selected_cowfile | lolcat | |
} | |
welcome |
Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
// ==UserScript== | |
// @name Twitter related | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Replace twitter ugly font in Chinese and remove ad tweet! | |
// @author Bill Chan | |
// @match https://twitter.com/* | |
// @match https://x.com/* | |
// @icon | |
// @grant none |
<metaversedlc p="brc-420" name="你的DLC名称">
<element id="DLC里面的420资源铭文id" />
<element id="DLC里面的420资源铭文id" />
...
</metaversedlc>