Skip to content

Instantly share code, notes, and snippets.

Kison / gist:6d65158cb9c72b71f13d7cc624523544
Created Jan 23, 2017
How to create symbol link in Windows 10
View gist:6d65158cb9c72b71f13d7cc624523544
MKLINK [[/D] | [/H] | [/J]] Link Target
/D Creates a directory symbolic link. Default is a file
symbolic link.
/H Creates a hard link instead of a symbolic link.
/J Creates a Directory Junction.
Link Specifies the new symbolic link name.
Target Specifies the path (relative or absolute) that the new link
refers to.
View Cli find something about php
php -i|findstr "Thread"
php -i|grep "Thread"
View scp examples
Copy the file "foobar.txt" from a remote host to the local host
$ scp /some/local/directory
Copy the file "foobar.txt" from the local host to a remote host
$ scp foobar.txt
Copy the directory "foo" from the local host to a remote host's directory "bar"
$ scp -r foo
Copy the file "foobar.txt" from remote host "" to remote host ""
View Install composer
cd /usr/src
apt-get install curl php5-cli
curl -sS | php
mv composer.phar /usr/bin/composer
Kison / nginx.conf
Created Apr 7, 2016
Nginnx config for Yii 2 Advanced App Template (subdomains)
View nginx.conf
# frontend
server {
listen 80;
server_name yii2.lo;
server_tokens off;
client_max_body_size 128M;
charset utf-8;
access_log /var/log/nginx/yii2-access.log main buffer=50k;
You can’t perform that action at this time.