This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows | |
php -i|findstr "Thread" | |
*nix | |
php -i|grep "Thread" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Copy the file "foobar.txt" from a remote host to the local host | |
$ scp [email protected]:foobar.txt /some/local/directory | |
Copy the file "foobar.txt" from the local host to a remote host | |
$ scp foobar.txt [email protected]:/some/remote/directory | |
Copy the directory "foo" from the local host to a remote host's directory "bar" | |
$ scp -r foo [email protected]:/some/remote/directory/bar | |
Copy the file "foobar.txt" from remote host "rh1.edu" to remote host "rh2.edu" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /usr/src | |
apt-get install curl php5-cli | |
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/bin/composer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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; |