Total Pageviews

Saturday, 25 October 2025

就是溜溜的她

 

-原来‘溜溜的她’这首歌是齐秦首唱,而非费翔。

related post: https://briteming.blogspot.com/2015/10/blog-post_74.html

修理工手把手教你给汽车搭电

-先准备好备用电池,比如‘充电宝’。然后正极对正极,负极对负极。先用充电宝的正极去夹汽车电池的正极,后用充电宝的负极去夹汽车电池的负极,顺序千万不要搞反。充了一段时间的电后,取下充电宝的电极;此时,要先取充电宝的负极,后取充电宝的正极。买个充电宝,并不贵。

Friday, 24 October 2025

信天游。阿宝和他的老婆合唱

 

-他的老婆达到了专业水平

基于go的导航网站生成器gena

 

gena

导航网站生成器 | English Document

Test Lint Go Report Card goproxy.cn

安装

一键生成(推荐

gena-template 自动生成并自动部署到 GitHub Pages

源码安装:

go1.16 required

go get -u github.com/x1ah/gena/cmd/gena
> gena --help
Usage of ./gena:
  -c string
    	Config file (default "config.yml")

可执行文件下载

Release page 下载对应平台文件

生成网站

参照 config.yml 填入自己的网站列表

gena -c your/path/to/config.yaml 1> index.html

可选的模板

效果预览

浏览器打开生成的 index.html

使用案例

from https://github.com/x1ah/gena 

Thursday, 23 October 2025

搭建基于github issues的静态博客程序ginb

   首先fork 此项目https://github.com/ChrAlpha/ginb,我 fork后,得到的项目地址是

 https://github.com/briteming/ginb。访问https://github.com/briteming/ginb/settings,启用issues.

然后编辑 _config.js:

 https://github.com/briteming/ginb/blob/main/_config.js, 把第5行的username的值改为你的github用户名,把第6行的 repository的值改为你的github仓库名。

 登录https://vercel.com,然后访问vercel.com/new,导入项目  https://github.com/briteming/ginb。在environment variables那一步,Key的值填写GITHUB_TOKEN ,Value的值填写你的GITHUB TOKEN的值。然后点击下方的deploy按钮,等待部署完成。部署完成后,

我得到了网址https://ginb-v359.vercel.app/ ;

 

 

cryptochat


npm

Encrypted P2P chat over ICMP (Internet Control Message Protocol).

I strongly advise you to pick a high-entropy encryption key to avoid the possibility of brute-force attacks.

Uses raw-socket for ICMP handling and terminal-colors to spice it up a bit.

Install and usage

Make sure you have node 0.10.x (tip: use n) and then install the package globally with sudo.

sudo npm install -g cryptochat

Three variants of cryptochat are available depending on your use case:

  • Send and receive messages

    $ sudo cryptochat <ip> <encryption_key>

Receive messages

$ sudo cryptochat server <encryption_key>

Send messages

$ sudo cryptochat client <ip> <encryption_key>

Because it relies on stdin for input, it is possible to use pipes to send data:

cat cryptochat.js | sudo cryptochat client <ip> <encryption_key>
bits 0-7 bits 8-15 bits 16-31
type = 0x08 code = 0x00 checksum
identifier sequence number
payload

The message data is attached as the ICMP payload.

Message

Messages are piped from stdin and split into payload packages, which are encrypted and sent as ICMP Echo requests. The payload size per request is currently set to 32 bytes. The first byte is the length of the message and the rest is the message itself.

The first request contains a salt and an initialization vector needed to decrypt the payloads.

byte 0 bytes 1-15 bytes 16-31
0x3e salt initialization vector

An "end" request is sent in order for the receiver to know when a message is completed. The end request has the following format:

byte 0 bytes 1-31
0x3e 0xffffffff...

When the end request is received, the full message is printed to the screen.

from  https://github.com/mateogianolio/cryptochat

歌唱祖国

《歌唱祖国》,王莘创作的原版于1950年创作,并在同年发表于《大众歌选》,于1951年9月15日在《人民日报》正式发表。 1950年9月:: 作曲家王莘在为国庆一周年庆祝活动所见的场景中,创作了《歌唱祖国》的初稿。