元素法师的修习日志-SD/NovelAI Prompt写法总览

总览

image.png

平时写tag超过150就会心慌了,之前的极限是不超过250。
这次元素堆的有点多,堆tag超过400了,也顺便试试看哪些有冲突。目前完整按照我设想的出图率在5%,良品率在20%左右。
其他大部分都是背景设定(虽然效果也不错)。
减少一些元素描述会增加出图稳定性(或者你也可以当成词条包来看待

Read more

使用 Raspberry Pi 搭建 Kodi 家庭影院

下载kodi

1
sudo apt install kodi

配置kodi自启动

  • 配置服务
    1
    sudo vim /lib/systemd/system/kodi.service

并输入以下内容

1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description = Kodi Media Center
After = remote-fs.target network-online.target
Wants = network-online.target

[Service]
Type = simple
ExecStart = /usr/bin/kodi-standalone
Restart = on-abort
RestartSec = 5

[Install]
WantedBy = multi-user.target
Read more

使用 Raspberry Pi 自建 MinIO 图床

在服务器/树莓派搭建MinIO

我使用的图床为MinIO,可以使用docker一键搭建
其中账号和密码均在其中

1
2
3
4
5
6
7
8
9
10
11
docker run \
-p 9000:9000 \
-p 9001:9001 \
--name minio1 \
-v /data/minio/data:/data \
-v /data/minio/config:/root/.minio \
-e "MINIO_ROOT_USER=IHCVodsfa23jsksssv12" \
-e "MINIO_ROOT_PASSWORD=IUH2ioh23xxIid33" \
-e MINIO_SERVER_URL=http://localhost:9000 \
quay.io/minio/minio server /data \
--address ":9000" --console-address ":9001" \

设置启动docker便自启动容器

1
docker update --restart=always minio1
Read more

Ranger Custom Settings

Basic

If you want to custom your ranger,you should do the below changes:

1
2
3
4
5
# In your .zshrc
export RANGER_LOAD_DEFAULT_RC=false

# In the console
ranger --copy-config=all

then,you’ll see the default configretion in .config/ranger folder,also the rc.conf

filename Description
rc.conf The ranger configuration
rifle.conf The default application to open a file
scope.sh Define how to scope a file in ranger
commands.py Custom the commands in ranger
Read more

MacOS Custom Settings

命令行看星战

1
telnet towel.blinkenlights.nl

Homebrew

三条命令安装 Homebrew

1
/bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"
1
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
1
eval "$(/opt/homebrew/bin/brew shellenv)"
Read more

精确翻译黑客范歌曲 AllTheThings

前段时间国内安全圈流传了一首《Hacking Style》,忽然想起来看门狗 2 里同样也有一首歌词特别有黑客范儿的 Hip Hop,叫做《All The Things》
网易云链接:http://music.163.com/song?id=32231380&userid=361913487

歌词放在这(这歌网易云的歌词像是谷歌翻译的,所以我进行了很多改进):

“Not every geek with a commodore 64 can hack into NASA”
“不是所有拥有 commodore64 计算机的黑客都能黑到 NASA”
This one’s dedicated to all the hackers
这首歌是献给所有黑客的

Even out settle score quick
即使平均结算速度很快
My disaster recovery requires even more disks
我也需要更多的磁盘才能进行灾难恢复
“Put your bytes up, prove it or you forfeit”
“把你的‘字节’放在上面,从而证明它或者丧失它”
Got my C64 and we blew it into orbit…
拿到了我的 C64 计算机,接下来把它送入轨道…

Read more

一个黑客能用一台手机做到什么事情

《看门狗2》里黑客Marcus见到自己偶像T-bone讲到:

我看着你曾经”战争驾驶“,并因此改装了我的十段变速脚踏车,然后在背包上加装天线

战争驾驶(WarDriving)就是指使用相应的硬件和软件打造的无线局域网侦察平台,通过徒步或利用相应交通工具的方式在各个城镇的每个街道寻找不设防的无线访问点(AP)的一种统称。

而它的存在,便是黑客对”便携性“这个需求的最大证明

这么些年也折腾过不少安全相关APP,在这里大致汇总了下,并从软件、工具角度出发,带你了解黑客能用一部手机做些什么。

Read more