Pank: July 2018 Archives

Shadowsocks server

user-pic
Vote 0 Votes

pip install shadowsocks

create /etc/shadowsocks.json
{
"server":"my_server_ip",
"server_port":8388,
"local_port":1080,
"password":"your_password",
"timeout":600,
"method":"aes-256-cfb"
}

ssserver -c /etc/shadowsocks.json -d start

cd /etc/yum.repos.d
wget https://repo.codeit.guru/codeit.el7.repo

yum -y install httpd

Linux mount disk image

user-pic
Vote 0 Votes

若要 mount 一個以 dd dump 出來的 image
(例如 dd if=/dev/sda of=disk.img)
先用 fdisk -l disk.img 看一下 Sector size 是多少, 通常是 512
要 mount 那一個分割區, 就用 offset 參數指定 512*Start 位置
例如 partition 1 Start 2048, offset 就是 512*2048 = 1048576
mount -o loop,offset=1048576 disk.img /mnt

CNAME and other data

user-pic
Vote 0 Votes

BIND 出現 CNAME and other data 錯誤, 其意表示 CNAME 不能跟其他的指向共存,
@ 至少會有 SOA 及 NS, 所以 @ 就無法再指 CNAME

RFC1912 2.4 CNAME records
A CNAME record is not allowed to coexist with any other data.

其他的名稱也一樣, 例如 aaa 指了 A 記錄, aaa 就不能再指 CNAME

為避免同步把 C: 灌爆
先把 "%APPDATA%\Apple Computer\MobileSync" 複製到目的, 例如 X:\Apple\MobileSync
mklink/j "%APPDATA%\Apple Computer\MobileSync" G:\Apple\MobileSync

Google 注音輸入法

user-pic
Vote 0 Votes

Google 似乎要讓 Gboard 取代其他所有的輸入法,
在 Play 搜尋「Google 注音輸入法」已經找不到了
備份一下網址
https://play.google.com/store/apps/details?id=com.google.android.apps.inputmethod.zhuyin

About this Archive

This page is an archive of recent entries written by Pank in July 2018.

Pank: May 2018 is the previous archive.

Pank: November 2018 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives