Skip to content

Instantly share code, notes, and snippets.

View Kison's full-sized avatar
🚀
Turning big ideas into digital reality.

Denys Oliinyk Kison

🚀
Turning big ideas into digital reality.
View GitHub Profile
cd /usr/src
apt-get install curl php5-cli
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/bin/composer
Windows
php -i|findstr "Thread"
*nix
php -i|grep "Thread"
@Kison
Kison / gist:6d65158cb9c72b71f13d7cc624523544
Created January 23, 2017 13:53
How to create symbol link in Windows 10
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.
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"
@Kison
Kison / nginx.conf
Created April 7, 2016 21:32
Nginnx config for Yii 2 Advanced App Template (subdomains)
# 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;