Skip to content

Instantly share code, notes, and snippets.

View Akagi201's full-sized avatar
🎯
Focusing

Bob Liu Akagi201

🎯
Focusing
View GitHub Profile
@Akagi201
Akagi201 / certified_assets.mo
Created October 11, 2022 12:10 — forked from ninegua/certified_assets.mo
Certified Assets Type Definitions in Motoko
module {
public type BatchId = Nat;
public type BatchOperationKind = {
#CreateAsset : CreateAssetArguments;
#UnsetAssetContent : UnsetAssetContentArguments;
#DeleteAsset : DeleteAssetArguments;
#SetAssetContent : SetAssetContentArguments;
#Clear : ClearArguments;
};
public type ChunkId = Nat;
@Akagi201
Akagi201 / .Cloud.md
Created October 2, 2022 05:27 — forked from imba-tjd/.Cloud.md
☁️ 一些免费的云资源

IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。

其他人的集合

@Akagi201
Akagi201 / docker-registry-mirrors.md
Created April 17, 2020 06:10 — forked from y0ngb1n/docker-registry-mirrors.md
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

创建或修改 /etc/docker/daemon.json

@Akagi201
Akagi201 / INSTALL.rst
Created January 15, 2019 03:51 — forked from LuoZijun/INSTALL.rst
以太坊客户端 Parity 的安装
@Akagi201
Akagi201 / ss-redir 透明代理.md
Created July 20, 2018 08:45 — forked from wen-long/ss-redir 透明代理.md
ss-redir 透明代理.md

##ss-redir 的 iptables 配置(透明代理)

透明代理指对客户端透明,客户端不需要进行任何设置就使用了网管设置的代理规则

创建 /etc/ss-redir.json 本地监听 7777 运行ss-redir -v -c /etc/ss-redir.json

iptables -t nat -N SHADOWSOCKS
# 在 nat 表中创建新链
iptables -t nat -A SHADOWSOCKS -p tcp --dport 23596 -j RETURN
# 23596 是 ss 代理服务器的端口,即远程 shadowsocks 服务器提供服务的端口,如果你有多个 ip 可用,但端口一致,就设置这个
@Akagi201
Akagi201 / install_tls.sh
Created May 21, 2018 11:10 — forked from chuyik/install_tls.sh
CentOS 7 Nginx(OpenResty) Let’ s Encrypt SSL 证书安装配置
# install certbot
yum install certbot
# create cert folder
mkdir -p /usr/local/openresty/nginx/html/.well-known/acme-challenge
# configure nginx
```nginx
location ^~ /.well-known/acme-challenge/ {
default_type "text/plain";
@Akagi201
Akagi201 / zsh.md
Created April 30, 2018 03:14 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
0 = Success
1 = Operation not permitted
2 = No such file or directory
3 = No such process
4 = Interrupted system call
5 = Input/output error
6 = No such device or address
7 = Argument list too long
8 = Exec format error
@Akagi201
Akagi201 / router.pi-3.md
Created October 16, 2016 14:39 — forked from snakevil/router.pi-3.md
使用树莓派3B打造超强路由之三:阴影

使用树莓派3B打造超强路由之三:阴影

在[《使用树莓派3B打造超强路由之二:初成》][之二:初成]之后,似乎接下来的工作,就是朝着整合网络扩展存储 NAS家庭影院电脑 HTPC 去努力了。但在此之前,省视实际需求,不难发现其中的阴影——公共需求和私人需求存在显著差异——如:儿童能接触到的、成年人能接触到的和我能接触到的,如何区分开?所以在开始整合前,先尝试解决这个问题。

WARNING 本文所有指令均仅供参考,切勿无脑复制粘贴!

〇 前文提要

@Akagi201
Akagi201 / router.pi-2.md
Created October 16, 2016 14:27 — forked from snakevil/router.pi-2.md
使用树莓派3B打造超强路由之二:初成

使用树莓派3B打造超强路由之二:初成

通过第一篇《使用树莓派3B打造超强路由之一:初装》的努力,树莓派3B已经可以作为一台超低能耗、随身携带的开发用服务器来使用了。但这对于目标——打造超强路由而言,才刚刚开始。接下来,我们需要将其打磨成一台基本的无线路由器。

WARNING 本文所有指令均仅供参考,切勿无脑复制粘贴!