Skip to content

Instantly share code, notes, and snippets.

@Kison
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
Windows
php -i|findstr "Thread"
*nix
php -i|grep "Thread"
View scp examples
Copy the file "foobar.txt" from a remote host to the local host
$ scp your_username@remotehost.edu:foobar.txt /some/local/directory
Copy the file "foobar.txt" from the local host to a remote host
$ scp foobar.txt your_username@remotehost.edu:/some/remote/directory
Copy the directory "foo" from the local host to a remote host's directory "bar"
$ scp -r foo your_username@remotehost.edu:/some/remote/directory/bar
Copy the file "foobar.txt" from remote host "rh1.edu" to remote host "rh2.edu"
View Install composer
cd /usr/src
apt-get install curl php5-cli
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/bin/composer
@Kison
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.