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一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。

其他人的集合

Live Transcoding

This is a collection of working commandline examples to show how one could use FFMpeg and VLC for live transcoding of video streams. All examples have been tested on OSX 10.7.5 with FFMPeg 1.1.3 and VLC 2.0.5 in early 2013.

Documentation links

@Akagi201
Akagi201 / concurrency-in-go.md
Created March 13, 2016 03:58 — forked from kachayev/concurrency-in-go.md
Channels Are Not Enough or Why Pipelining Is Not That Easy
@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 / router.pi-2.md
Created October 16, 2016 14:27 — forked from snakevil/router.pi-2.md
使用树莓派3B打造超强路由之二:初成

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

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

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

@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 / tcpdump.md
Last active July 3, 2018 08:29 — forked from suziewong/tcpdump.md
[tcpdump]

Tcpdump

看了蛮久的tcpdump,也一直很想尝试抓包这类的技能。

tcpdump

-i 指定监听网卡 lo eth0
-c 数量
-w xxx.cap(直接是wireshark的2进制文件)

-A ACSII显示内容

@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";