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 | |
| # KULLANIM | |
| # bash esxi-scan.sh 195.175.33.0/24 | |
| # | |
| input=$1 | |
| net=$(echo $input | cut -d '/' -f 1) | |
| prefix=$(echo $input | cut -d '/' -f 2) | |
| if (($prefix != 24)) | |
| then | |
| echo "sadece /24" |
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 | |
| $curl = curl_init(); | |
| curl_setopt($curl, CURLOPT_URL, 'https://myip.cpanel.net/v1.0/'); | |
| curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
| $addr = curl_exec($curl); | |
| curl_close($curl); | |
| header('Location: https://verify.cpanel.net/app/verify?ip='.$addr, true, 303); | |
| exit; |
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
| -- Sample maintenance work file prepared for Lua supported Nginx. You can customize it as you like. | |
| -- Note: It works within websites that work with | |
| -- services such as Reverse proxy and CloudFlare, | |
| -- and you can create a special article or html | |
| -- page by changing ngx.exit(ngx.HTTP_FORBIDDEN) | |
| local whitelist = { | |
| "192.168.1.2", | |
| "192.168.1.3", |
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
| package main | |
| import ( | |
| "fmt" | |
| "hash" | |
| "io" | |
| "os" | |
| "github.com/pierrec/xxHash/xxHash64" | |
| ) |
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
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| ) | |
| // How to determine an interface{} value type and existing values... | |
| func main() { | |
| value := make(map[string]interface{}) | |
| value["dogru"] = string("hebele, hübele") |
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
| package lib | |
| import ( | |
| "net" | |
| "net/http" | |
| "strings" | |
| ) | |
| func GetIPAddr(r *http.Request) string { | |
| ipaddr, _, _ := net.SplitHostPort(r.RemoteAddr) |
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 | |
| ################## Supervisor ################## | |
| # [program:repo] | |
| # command=bash -c /go/src/repo/start.sh | |
| # directory=/root | |
| # autostart=true | |
| # autorestart=true | |
| # stderr_logfile=/var/log/repo-err.log | |
| # stdout_logfile=/var/log/repo-out.log | |
| # environment=GOPATH="/go" |
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/sh | |
| SENTRY_KEY= | |
| SENTRY_SECRET= | |
| SENTRY_PROJECTID=1 | |
| SENTRY_HOST=sentry.example.com | |
| SCRIPT_ARGUMENTS=$@ | |
| capture_error() | |
| { |