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
| <?php | |
| echo "<p>Test final</p>"; | |
| // class couldn't be used like a parent class | |
| final class A{ | |
| public function __construct(){ | |
| echo __CLASS__."<br>"; | |
| } | |
| } |
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
| #!/bin/bash | |
| read -p "Plsease enter your OS (it could be Linux, Wndows, Mac, or what ever you want)? " OS | |
| case "$OS" in | |
| "Linux") | |
| echo "Great choice" | |
| echo "Here we are" | |
| ;; | |
| "Windows") |
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
| #!/bin/bash | |
| for word in moose, cow, goose | |
| do | |
| echo I have a $word | |
| done |
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
| #!/bin/bash | |
| LIMIT=10 | |
| for((a=1; a <= LIMIT ; a++)) ; do | |
| echo "$a" | |
| done | |
| MENU="1.install apache2 | |
| 2.install php |
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
| #!/bin/bash | |
| G | |
| #this script will install: | |
| #apache2, | |
| #mysql | |
| #php5.6 and php7 | |
| EMPTY="# | |
| # | |
| # |
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
| #!/bin/bash | |
| #this script will create virtual apahe host in | |
| #folder /var/www/ | |
| #you should pass parameter site_name | |
| #and will created folder /var/www/site_name | |
| #and apache will configured serving this site | |
| #set up site path | |
| SITE_NAME=$1 |
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
| #!/bin/bash | |
| #script will accept site domain_name and | |
| #will copy lates version wordpress to | |
| #/var/www/domain_name directory | |
| #1 accept domain_name | |
| #global varialbes |
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
| #!/bin/bash | |
| #script accept site name and remove folder from | |
| #/var/www/site_name | |
| #and virtualhost from apache2 | |
| SITE_NAME=$1 |
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
| #!/bin/bash | |
| #this script will generate sshkey and | |
| #make connection to remote host and | |
| #will put there this key | |
| #parameters: | |
| #set_key.sh [key_name] |
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
| #!/bin/bash | |
| #usage | |
| #change_key.sh [new_key_name] [user_naem] [server_ip] [path_to_public_key] | |
| #this script will generate sshkey and | |
| #make connection to remote host and | |
| #will put there this key | |
| if [ $1 == "--help" ]; then |