- 将DLC所用资源都上链,并在creator一个个设计好420 html上链
- 整合DLC里所有420 资源铭文
- 格式
<metaversedlc p="brc-420" name="你的DLC名称"> <element id="DLC里面的420资源铭文id" /> <element id="DLC里面的420资源铭文id" /> ... </metaversedlc>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
- 利用 /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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install libboost-dev libboost-system-dev libboost-filesystem-dev\ | |
libboost-regex-dev libboost-locale-dev libgtest-dev libgoogle-glog-dev\ | |
libibus-1.0-dev libnotify-dev libleveldb-dev libmarisa-dev libopencc-dev\ | |
libyaml-cpp-dev cmake capnproto |
- 面向对象特性:封装、继承、多态
- 集合: List、Set、Map
- 异常:
- Checked Exception
- Unchecked Exception: RuntimeException, Error, and their subclasses
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
OS=${OS:-`uname`} | |
if [ "$OS" = 'Darwin' ]; then | |
get_touch_time() { | |
date -r ${unixtime} +'%Y%m%d%H%M.%S' | |
} | |
else | |
# default Linux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# fail fast | |
set -e | |
# Symbolic file | |
LINK_CONF="config.json" | |
if [ ! -h "$LINK_CONF" ] | |
then | |
echo "'$LINK_CONF' is not a symbolic file or not exist" |
NewerOlder