-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
140 additions
and
172 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
v2022-03-17 | ||
* all: | ||
格式化文档 | ||
* vim: | ||
go 文件使用 tab 缩进 | ||
|
||
v2022-02-08.2 | ||
* git: | ||
禁用了代理配置 | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Copyright © 2015-2022 秦凡东 (Qin Fandong) | ||
Copyright (c) 2015-2022 Qin Fandong <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
<!Doctype html> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<link rel="stylesheet" type="text/css" href="/.web/style.css" /> | ||
<meta charset="UTF-8"> | ||
<title>TITLE</title> | ||
</head> | ||
|
||
<body> | ||
<p>HERE THE LIST</p> | ||
<head> | ||
<link rel="stylesheet" type="text/css" href="/.web/style.css" /> | ||
<meta charset="UTF-8" /> | ||
<title>TITLE</title> | ||
</head> | ||
|
||
<body> | ||
<p>HERE THE LIST</p> | ||
</body> | ||
</html> |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
与 vsftpd 配置配合使用, Arch Linux 配置文件,仅供参考。如果是Red Hat 系列发行版,需要留意文件 `/etc/httpd/conf.d/welcome.conf` 。 | ||
与 vsftpd 配置配合使用, Arch Linux 配置文件,仅供参考。如果是 Red Hat 系列发行版,需要留意文件 `/etc/httpd/conf.d/welcome.conf` 。 | ||
|
||
```bash | ||
```sh | ||
cp -rvf .web /home/ftp/root/ | ||
sudo htpasswd -c /home/ftp/root/.web/passwords http | ||
``` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
这是一个bash 和其他shell 的接口配置,用于其他shell 向bash 转换时指定bash 初始行为。 | ||
这是一个 bash 和其他 shell 的接口配置,用于其他 shell 向 bash 转换时指定 bash 初始行为。 | ||
|
||
你需要将期望bash 完成的操作以`.sh`文件的形式写入`~/.bash/interface/`,然后像下面这样调用bash: | ||
你需要将期望 bash 完成的操作以 `.sh`文件的形式写入 `~/.bash/interface/` ,然后像下面这样调用 bash: | ||
|
||
```bash | ||
```sh | ||
bash --init-file ~/.bash/interface.sh | ||
``` | ||
|
||
这个功能只是实验性的,请不要使用。 | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
| 目录 | 说明 | | ||
| --- | --- | | ||
| [boot](boot) | 修复 Arch Linux UEFI 下损坏的 GRUB2 | | ||
| [multiboot](multiboot) | 用于制作USB 多启动盘的一系列GRUB2 配置文件 | | ||
| 目录 | 说明 | | ||
| ---------------------- | -------------------------------------------- | | ||
| [boot](boot) | 修复 Arch Linux UEFI 下损坏的 GRUB2 | | ||
| [multiboot](multiboot) | 用于制作 USB 多启动盘的一系列 GRUB2 配置文件 | |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
个人 SSH 密钥备份。 | ||
|
||
```bash | ||
```sh | ||
gpg ssh-env.tar.gz.asc | ||
sshenv import ssh-env | ||
rm -f ssh-env.tar.gz | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
这是一份自用的sysctl 配置文件。 | ||
这是一份自用的 sysctl 配置文件。 | ||
|
||
```bash | ||
```sh | ||
sudo cp -r ./sysctl.d/ /etc | ||
sudo systemctl restart systemd-sysctl | ||
``` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
一个灵活但输出效率较低的 TTY 分屏方案,使用了Vim 键位。 | ||
一个灵活但输出效率较低的 TTY 分屏方案,使用了 Vim 键位。 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
设置默认用户目录: | ||
|
||
| 名称 | 位置 | | ||
| --- | --- | | ||
| 桌面 | ~/Desktop | | ||
| 下载 | ~Download | | ||
| 模板 | ~/Templates | | ||
| 名称 | 位置 | | ||
| ---- | ------------- | | ||
| 桌面 | ~/Desktop | | ||
| 下载 | ~Download | | ||
| 模板 | ~/Templates | | ||
| 共享 | ~/Publicshare | | ||
| 文档 | ~/Documents | | ||
| 音乐 | ~/Music | | ||
| 图片 | ~/Pictures | | ||
| 视频 | ~/Videos | | ||
| 文档 | ~/Documents | | ||
| 音乐 | ~/Music | | ||
| 图片 | ~/Pictures | | ||
| 视频 | ~/Videos | |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
 | ||
|
||
> 从2016-01-05 开始,vim 配置致力于回归编辑器本职,不再提供重量级插件,也不再提供一些本应该由IDE 提供的功能。参见[#21](https://github.com/Arondight/profile/issues/21)。 | ||
> 从 2016-01-05 开始,vim 配置致力于回归编辑器本职,不再提供重量级插件,也不再提供一些本应该由 IDE 提供的功能。参见[#21](https://github.com/Arondight/profile/issues/21)。 |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
这是一个shell 的插件目录,使用了bash 语法,可以由所有兼容bash 语法的shell 加载。 | ||
这是一个 shell 的插件目录,使用了 bash 语法,可以由所有兼容 bash 语法的 shell 加载。在你的 shell 配置文件中加入以下语句: | ||
|
||
- [x] Zsh | ||
- [x] bash | ||
- [x] dash | ||
|
||
在你的shell 配置文件中加入以下语句: | ||
|
||
```bash | ||
```sh | ||
source $HOME/.zsh/reactor.sh | ||
``` | ||
|
||
其中的插件必须: | ||
|
||
1. 在`$HOME/.zsh/reactor.sh` 的`myPluginLoader` 函数中注册 | ||
+ 逻辑必须适合在当前shell 执行,而非作为脚本执行 | ||
+ 权限可读且不可执行 | ||
+ 因为zsh 和bash/dash 数组下标规则不同,想要写通用的插件就不能够使用任何数组下标 | ||
|
||
1. 在 `~/.zsh/reactor.sh` 的 `myPluginLoader` 函数中注册 | ||
2. 逻辑必须适合在当前 shell 执行,而非作为脚本执行 | ||
3. 权限可读且不可执行 | ||
4. 因为 zsh 和 bash/dash 数组下标规则不同,想要写通用的插件就不能够使用任何数组下标 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
一些alias,并且去除了几乎所有的global alias —— 因为它们时常会引发问题。 | ||
|
||
一些 alias,并且去除了几乎所有的 global alias —— 因为它们时常会引发问题。 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
如果你的系统是Arch Linux,你还需要设置一些软连接: | ||
如果你的系统是 Arch Linux,你还需要设置一些软连接: | ||
|
||
运行本目录下的初始化脚本: | ||
|
||
```bash | ||
```sh | ||
./init.sh | ||
``` | ||
|
||
或者手动执行(你需要清楚你在做什么): | ||
|
||
```bash | ||
```sh | ||
echo /usr/lib/{libtinfo.so{,.5,.6},libncurses.so{.5,.6}} |\ | ||
xargs -d ' ' -I {} sudo ln -s /usr/lib/libncursesw.so {} | ||
``` | ||
|
||
| 需要的库 | 链接到 | | ||
| --- | --- | | ||
| /usr/lib/libtinfo.so | /usr/lib/libncursesw.so | | ||
| /usr/lib/libtinfo.so.5 | /usr/lib/libncursesw.so | | ||
| /usr/lib/libtinfo.so.6 | /usr/lib/libncursesw.so | | ||
| 需要的库 | 链接到 | | ||
| ------------------------ | ----------------------- | | ||
| /usr/lib/libtinfo.so | /usr/lib/libncursesw.so | | ||
| /usr/lib/libtinfo.so.5 | /usr/lib/libncursesw.so | | ||
| /usr/lib/libtinfo.so.6 | /usr/lib/libncursesw.so | | ||
| /usr/lib/libncurses.so.5 | /usr/lib/libncursesw.so | | ||
| /usr/lib/libncurses.so.6 | /usr/lib/libncursesw.so | | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
这是一个封装了pacman 的脚本,允许以slackpkg 的使用方式管理Arch Linux 的软件包。 | ||
|
||
这是一个封装了 pacman 的脚本,允许以 slackpkg 的使用方式管理 Arch Linux 的软件包。 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
读取`~/.custom_shellrc` | ||
|
||
读取 `~/.custom_shellrc` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
跳到git 仓库顶层目录 | ||
|
||
跳到 git 仓库顶层目录 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
根据GPG 密钥自动配置GIT 仓库环境变量 | ||
|
||
根据 GPG 密钥自动配置 GIT 仓库环境变量 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
ipmitool | ||
|
||
| 指令 | 动作 | | ||
| --- | --- | | ||
| ipmi-status | 电源状态 | | ||
| ipmi-boot | 开机 | | ||
| ipmi-halt | 关机 | | ||
| ipmi-attach | 连接 | | ||
| ipmi-deattach | 断开 | | ||
|
||
| 指令 | 动作 | | ||
| ------------- | -------- | | ||
| ipmi-status | 电源状态 | | ||
| ipmi-boot | 开机 | | ||
| ipmi-halt | 关机 | | ||
| ipmi-attach | 连接 | | ||
| ipmi-deattach | 断开 | |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
这是一个用于替代less 的脚本,分别会优先使用vim 和nano 模仿less 的行为, | ||
如果这两个程序没有被找到,则使用less 指令。 | ||
|
||
你可以使用sysless 直接调用系统less 指令而非less 函数。 | ||
这是一个用于替代 less 的脚本,分别会优先使用 vim 和 nano 模仿 less 的行为, | ||
如果这两个程序没有被找到,则使用 less 指令。 | ||
|
||
你可以使用 sysless 直接调用系统 less 指令而非 less 函数。 |
Oops, something went wrong.