Thanks to Ondřej Surý, semua jadi lebih mudah. Instal berbagai versi PHP secara bersamaan pun bisa.
This file contains 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
package main | |
import ( | |
"net/http" | |
"github.com/gin-gonic/gin" | |
) | |
type CreateParams struct { |
This file contains 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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
var one int | |
fmt.Println("Inputan deret pertama:") |
This file contains 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
package main | |
import ( | |
"fmt" | |
"sort" | |
) | |
func main() { | |
data := []float64{4, -7, -5, 3, 3.3, 9, 0, 10, 0.2} |
This file contains 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
// Develop by Khaidir Hasan for Test Case Majoo | |
// dibuat dalam 1 file untuk jawaban 3 dan 4 | |
// masukkan nomor jawaban setelah eksekusi file untuk menjalan masing-masing jawaban | |
// ikuti perintah program | |
package main | |
import ( | |
"fmt" | |
"sort" |
This file contains 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
function create_subdomain($subDomain,$cPanelUser,$cPanelPass,$rootDomain) { | |
// $buildRequest = "/frontend/x3/subdomain/doadddomain.html?rootdomain=" . $rootDomain . "&domain=" . $subDomain; | |
$buildRequest = "/frontend/x3/subdomain/doadddomain.html?rootdomain=" . $rootDomain . "&domain=" . $subDomain . "&dir=public_html/subdomains/" . $subDomain; | |
$openSocket = fsockopen('localhost',2082); | |
if(!$openSocket) { | |
return "Socket error"; | |
exit(); |
This file contains 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
============================================= NGINX ================================================== | |
1) Installing Nginx 1.9.5 | |
First we need to update source.list, so that we can download the latest version of nginx. After connecting to the server through ssh, open the sources.list file | |
sudo nano /etc/apt/sources.list | |
and add the following lines: | |
deb http://nginx.org/packages/mainline/debian/ jessie nginx |
This file contains 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
##Docker Installation | |
$ wget -qO- https://get.docker.com/ | sh | |
###user to the “docker” group execute the following command: | |
$ sudo usermod -aG docker user | |
$ sudo reboot | |
###Verify Docker Installation |
This file contains 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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
NewerOlder