0%

台湾岛旅游网

台北

国父纪念馆
101大楼-宁夏夜市
士林官邸
台北故宫
阳明山国家公园
诚品信义

台北总统府 - 中正纪念堂 - 士林官邸 - 台北故宫博物院

西门町 艋舺

花莲

普悠瑪 太魯閣 是快车

鐵路:從台北車站搭普悠瑪號列車(2-2.5小時).太魯閣號列車(2.5-3小時).自強號列車(2.5-3.5小時看班次).以上三種型列車皆為自強號票價但是以普悠瑪號列車為最快但是不出售站票..但是自強號列車有站票.

太鲁阁国家公园+七星潭+清水断崖
出海赏鲸豚

2天足够,半天去赏鲸,半天去太鲁阁,半天去七星潭。

====

高铁官网: https://irs.thsrc.com.tw
台铁官网: http://railway.hinet.net

http://www.mafengwo.cn/sales/2172008.html?cid=1010402&sourceFrom=zhuti-12684-12000

http://www.mafengwo.cn/sales/2171948.html?cid=1010402&sourceFrom=zhuti-12684-12000

提前到可刷票进站,乘坐前面车次(不足半小时一趟车)的自由座不用久等,如果晚了一个小时就坐原来车次不用怕迟到。不过享受早鸟折扣票的谨慎使用此技巧,最好不要被工作人员发现,否则未乘坐原定车次需要按全价补齐差价。

台北-垦丁 高铁台北到左营(高雄)2-2.5小时 快线巴士 垦丁大街 2小时
花莲-垦丁 台铁到枋寮 快线巴士 垦丁大街 1小时

台北站 桃园机场 捷运(国内叫地铁) 35-40分钟

1.台北佳德糕饼(这是我最爱的,他们家的太阳饼和绿豆糕也好吃得不要不要的!)

.糖村(这好像是最有名的一家,他们家法式原味确实很棒,就买原味就对了。重要的事情说三遍,草莓味儿的很难吃很难吃很难吃,不要买不要买不要买。)

台北林华泰茶行
这家店是台北的百年老茶叶店,门脸十分简陋,特别有一种国营老字号的赶脚。去这儿买茶的都是台湾本地人和日本人,亲测比猫空的茶性价比高。
推荐茶叶:①高山乌龙,比冻顶乌龙好喝。②金萱,比起高山乌龙有些奶味。
包装是半斤打成一个真空包装。台湾的1斤是600g。

1.森田面膜&眼膜(绝对草鸡便宜且好用,其他品牌跟它比都被秒成渣。这次去买下来相当于4元/片,自己感受。)

2.宠爱之名(是台湾本土化妆品,所以在这里买最划算。)

3.所有日妆或日本产药物(如果你近期不去日本,那在这里买特别合适,包括各种洗面皂,狮王眼药水和FX眼药水。)

4.强烈需要推荐的单品:如果经常关注美妆的姑娘应该知道SOFINA妆前乳(对就是各种美妆达人都推荐的那个)。是日产的,但是在台湾买台版的比在日本买便宜好多好多好多!日本买折合200+人民币一瓶,台湾买无论是康是美还是屈臣氏,折合70人民币一瓶,大家自己看着来吧~)

docker shadowsocks

docker run -d
-e METHOD=aes-256-gcm
-e PASSWORD=123456
–name=gsssr
-p 8388:8388/tcp
-p 8388:8388/udp
–restart=always
acrisliu/shadowsocks-libev

Server

Install

Debian / Ubuntu:

apt-get install python-pip
pip install git+https://github.com/shadowsocks/shadowsocks.git@master

CentOS:

yum install python-setuptools && easy_install pip
pip install git+https://github.com/shadowsocks/shadowsocks.git@master

For CentOS 7, if you need AEAD ciphers, you need install libsodium

1
2
dnf install libsodium python34-pip
pip3 install git+https://github.com/shadowsocks/shadowsocks.git@master

Linux distributions with snap:

snap install shadowsocks

Windows:

See Install Shadowsocks Server on Windows.

Usage

ssserver -p 443 -k password -m aes-256-cfb

To run in the background:

sudo ssserver -p 443 -k password -m aes-256-cfb --user nobody -d start

To stop:

sudo ssserver -d stop

To check the log:

sudo less /var/log/shadowsocks.log

Check all the options via -h. You can also use a [Configuration] file
instead.

If you installed the snap package, you have to prefix the commands with shadowsocks.,
like this:

shadowsocks.ssserver -p 443 -k password -m aes-256-cfb

Usage with Config File

Create configuration file and run

To start:

ssserver -c /etc/shadowsocks.json

Documentation

You can find all the documentation in the Wiki.

install git

1
yum install git

check

1
git --version

git version 1.8.3.1

server side

1
2
3
cd /home
mkdir myrepo
git init --bare /home/myrepo/gs.git

client side

git clone root@blog.guoshuang.com:/home/myrepo/gs.git

git add .

git commit -m ‘hi,test’
git push

hooks

cd hooks

创建post-receive文件

vim post-receive

输入以下内容

1
2
#!/bin/bash
git --work-tree=/home/guoshuang/nginx/html/blog checkout -f
1
chmod +x post-receive

-https://juejin.im/post/5c7e4e43f265da2d980923a6
-https://www.digitalocean.com/community/tutorials/how-to-create-a-blog-with-hexo-on-ubuntu-14-04

Package ControlUnable to download Sass. Please view the console for more details.

删除包控制器,然后重装。

deleted the ~/.config/sublime-text-3/Packages/Package Control folder and the
~/.config/sublime-text-3/Installed Packages/Package Control.sublime-package file and reinstalled the package manager. Now it’s working again.

重装

https://packagecontrol.io/installation#st2

via

https://upcloud.com/community/tutorials/wordpress-with-docker/

图形界面 配置网络 dhcp

1
nmtui
1
yum update && yum upgrade
1
2
systemctl start httpd.service
# systemctl enable httpd.service
1
2
3
firewall-cmd --permanent --add-service=http
# systemctl restart firewalld
systemctl restart httpd.service

sudo systemctl stop firewalld

or

systemctl disable firewalld

aili mirrors

http://mirrors.aliyun.com/centos/7/isos/x86_64/

1
2
3
4
5
6
7
8
9
10
11
sudo yum update httpd

sudo yum install httpd

sudo systemctl start httpd

sudo systemctl status httpd

sudo systemctl restart httpd

sudo systemctl enable httpd

/etc/init.d/network restart

======

sudo vi /etc/httpd/conf/httpd.conf

sudo vi /etc/httpd/sites-available/example.com.conf

<VirtualHost *:80>
ServerName www.example.com
ServerAlias example.com
DocumentRoot /var/www/example.com/html
ErrorLog /var/www/example.com/log/error.log
CustomLog /var/www/example.com/log/requests.log combined

local

1
ssh-keygen -t rsa

SSH密钥会保存在home目录下的.ssh/id_rsa文件中.SSH公钥保存在.ssh/id_rsa.pub文件中

upload key 2 server

ssh-copy-id username@remote-server

反过来

server {
listen 80;
server_name blog.guoshuang.com;
charset utf-8;
location / {
root /usr/share/nginx/html/blog;
index index.html index.htm;
}
}

Check the fingerprint for the ECDSA key sent by the remote host

添加了重复的 主机

1
2
3
ssh-keygen -R <remote-system-ip-address>


用CSS给SVG 的内容添加样式

https://www.w3cplus.com/svg/styling-svg-use-content-css.html

js add style

1
2
3
4
5
6
7
8
9
10
11
12
13
var css = 'h1 { background: red; }',
head = document.head || document.getElementsByTagName('head')[0],
style = document.createElement('style');

head.appendChild(style);

style.type = 'text/css';
if (style.styleSheet){
// This is required for IE8 and below.
style.styleSheet.cssText = css;
} else {
style.appendChild(document.createTextNode(css));
}

Create and append style sheets to document using JavaScript

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(function() {
var css = [
'/css/default.css',
'/css/section.css',
'/css/custom.css'
],
i = 0,
link = document.createElement('link'),
head = document.getElementsByTagName('head')[0],
tmp;
link.rel = 'stylesheet';

for(; i < css.length; i++){
tmp = link.cloneNode(true);
tmp.href = css[i];
head.appendChild(tmp);
}
})();

78.141.222.176

ssh root@78.141.222.176


curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

python get-pip.py

pip install shadowsocks

vi /etc/shadowsocks.json

{
“server”:”0.0.0.0”,
“server_port”:443,
“local_port”:1080,
“password”:”1234567890”,
“timeout”:600,
“method”:”aes-256-cfb”
}

vi /etc/systemd/system/shadowsocks.service

[Unit]
Description=Shadowsocks
[Service]
TimeoutStartSec=0
ExecStart=/usr/bin/ssserver -c /etc/shadowsocks.json
[Install]
WantedBy=multi-user.target

设置开机自启命令

systemctl enable shadowsocks

启动命令

systemctl start shadowsocks

#查看状态命令
systemctl status shadowsocks

firewalld(centos7)

systemctl stop firewalld

https://www.4spaces.org/centos-open-porter/

find server ip

1
ip addr

default directory

1
/usr/share/nginx/html

global configuration

1
/etc/nginx/nginx.conf

ss install

默认有防火墙,需要关闭

virtual host

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
server {
listen 80;
listen [::]:80;

root /guoshuang/demo;

index index.html;

server_name demo.guoshuang.com;

access_log /var/log/nginx/demo.guoshuang.com.access.log;
error_log /var/log/nginx/demo.guoshuang.com.error.log;

location / {
try_files $uri $uri/ =404;
}
}