Little steps

For everyone you meet is fighting a hard battle.

0%

SFTP命令汇总

securefx下按 : shift+command+p 进入sftp

命令 说明
cd 路径更改到远程目录的路径
lcd 更改到本地目录的路径
chfrp group path 将文件path的组更改为group
chmod mode path 将文件path的权限更改为mode
chown owner path 将文件path的归属更改为owner
exit 退出
help 显示帮助文本
get 下载文件
ln existingpath linkpath 符号链接远程文件
ls [选项][路径] 显示远程目录
lls [选项][路径] 显示本地目录
mkdir 路径 创建远程目录
lmkdir 路径 创建本地目录
mv oldpath newpath 移动远程文件
open[user@]主机[:端口] 连接到远程主机
put 本地路径 上传文件
pwd 显示远程工作目录
lpwd 显示本地工作目录
quit 退出
rmdir 路径 移除远程目录
lrmdir 移除本地目录
rm 路径 删除远程文件
lrm 路径 删除本地文件
symlink existingpath linkpath 符号链接远程文件
version 显示协议版本

Set Up Subdomains with Apache Virtual Hosts

Some people are unaware that the “www” part of the URL is actually a subdomain (http://www.example.com), and can (in theory) point to a different location than http://example.com - it is not advised that you use www as an active sudomain, as most people expect both example.com and www.example.com to have the same content.

This is actually the basis for canonicalisation, but that’s another blog post altogether

So how do we set up subdomains using Apache virtual hosts? It’s actually very simple, we just need to configure two things, follow this guide for a very simple apache subdomain virtual host example:
Apache Virtual Host Configuration File

阅读全文 »

Run this command:

diskutil list
The output should look something like this:

1
2
3
4
5
#: TYPE                     NAME          SIZE       IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 250.1 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3

In this case, the volume identifier of the EFI partition is disk0s1

阅读全文 »

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(node:29753) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
module.js:568
return process.dlopen(module, path._makeLong(filename));
^

Error: dlopen(/Users/jovi/longtou-web/gzletou.com/node_modules/node-sass/vendor/darwin-x64-48/binding.node, 1): no suitable image found. Did find:
/Users/jovi/longtou-web/gzletou.com/node_modules/node-sass/vendor/darwin-x64-48/binding.node: truncated mach-o error: segment __TEXT extends to 1212416 which is past end of file 86576
at Error (native)
at Object.Module._extensions..node (module.js:568:18)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/jovi/longtou-web/gzletou.com/node_modules/node-sass/lib/index.js:24:15)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)

Process finished with exit code 1