βββ app
β βββ Exception
β βββ Http
β β βββ Controller
β β β βββ CLI
β β β βββ Web
β β βββ Middleware
β β βββ Router
β βββ Model
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 | |
// Temp execution file | |
$temp = tmpfile(); | |
var_dump(stream_get_meta_data($temp)["uri"]); | |
fwrite($temp, '<?php echo "ΠΈΡΠΏΠΎΠ»Π½Π΅Π½ ΠΊΠΎΠ΄ ΠΈΠ· Π²ΡΠ΅ΠΌΠ΅Π½Π½ΠΎΠ³ΠΎ ΡΠ°ΠΉΠ»Π° Π² " . microtime(true) . "\n";'); | |
fseek($temp, 0); | |
include stream_get_meta_data($temp)["uri"]; |
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
"scripts": { | |
"serve": "vue-cli-service serve", | |
"build:client": "env VUE_CLI_SERVICE_CONFIG_PATH=\"**Insert full path to vue.configClient.js**\" vue-cli-service build", | |
"build:admin": "env VUE_CLI_SERVICE_CONFIG_PATH=\"**Insert full path to vue.configAdmin.js**\" vue-cli-service build", | |
"build:all": "npm run build:client && npm run build:admin", | |
"lint": "vue-cli-service lint" | |
}, |
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 | |
MASK=32 # wireguard network mask | |
DNS="8.8.8.8" | |
SERVER_IP="<SERVER_IP>" | |
SERVER_PORT="<SERVER_PORT>" # default is 51820 | |
cd /etc/wireguard/ | |
mkdir -p clients |
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
!E1!nR1wZjUos4FnNNwylFhiVbeysQkHWI9zM9C2ACIaebFgJfLSizY8q(TVDl5lYgdXm7S1UpmjtKvRU7V(I6UTdnddc9xteKLeEk()PFFpLhrtwrX)sq)UykJVJic9h)7lMpzX4ftUp0Fdlr8WbrCucn0)HFp4UBNnj0Fln65TIWzwgQDe6pLh9J3F6FCGSMd849NcGZ81O1ITHZC63le2XwwcJlzCczzmnCz5Xy7cNddfgbreXsc9)8Kfb3oE4DfhcWj4m409hY2Y)TL5(i)i)aGiHeGQiRLQqlKA4CEMMq5KyPqZe0DsdWZC2RITxhXPRuKFZdlU9pFywaCaanVq3gTkM6tjIBtwhTIiyC)OFqdN55e6V6qQGT7tXSxXJkv8gio(dLh07pn6GqG)w(y4O2fLeTJSxUt5jy5Ah6hZwjL7PNcmeNdOiXI5SxP8rePrvTrlddRsLVN0MroiylO7jr8q)53n8pMSi0FjdeWDZjj0yee500dCeg8zhswhoskZSxOkh1jXV87tFCkdu5XKub4)Ep(Sq)rpee8W93nzAqhCp3oNWbBrhTLDnm6y5aWvWwoGJJkin4H5lU9t3uLWIf7A7z1PRv)bGetfdhLZQJjrF9UoE2DmRiVbe(ZuXLjUMac(P7BnnMDSH4l)rh2SjTDkhyx6a(W3RCkAfnscMZJEHiOlirR)cHNeL8CjTD0PbWVEaBCTqMW5mEq0ok3(u72Otxtxa3gXstvEU56Dd6ChtV(Dmh0p0)ogtmLt2rlp3JWP818qE0d4XFYsOdxgfhjE7Cmb2mYfRCJ58lYiIMK(fKs4I3AHiAGEDokQUDe55k8tzfoHxxhRs5mM8g9YcpCS6HMPvCw9aR68dertJc9cDdSBLEzujK4IeoREfXtQqPMsa8rrLdg0XXqjedh9Ox74TxNEvb1M4CtUogGXhmJxFGtu(z18rpFKje3yB4P52D5z8aVppa1(C51hTMy7E2W)mlCct(2XK2eDoiLavfvum6cKyaW8aVk)TrB0 |

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 | |
function json_extract() { | |
local key=$1 | |
local json=$2 | |
local string_regex='"([^"\]|\\.)*"' | |
local number_regex='-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?' | |
local value_regex="${string_regex}|${number_regex}|true|false|null" | |
local pair_regex="\"${key}\"[[:space:]]*:[[:space:]]*(${value_regex})" |
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 | |
const CHUNK_SIZE = 50 * 1024 * 1024; | |
function Download(string $url, string $filename) : bool { | |
$inputHandler = fopen($url, "r"); | |
$fileHandler = fopen($filename, "w+"); | |
if ($inputHandler === false || $fileHandler === false) { | |
return false; | |
} |
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/selfsigned.key -out /etc/ssl/certs/selfsigned.crt
openssl dhparam -out /etc/nginx/dhparam.pem 4096
ecco "ssl_certificate /etc/ssl/certs/selfsigned.crt;"
echo "ssl_certificate_key /etc/ssl/private/selfsigned.key;"
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 | |
namespace PharData; | |
class Custom extends \PharData { | |
/** | |
* Add directory and sub-file/directory | |
* | |
* @param string $directory | |
* @param ?string $excludingPath string what path in beginning must by ignore on adding to archive. If pass NULL - set as the parent directory of |
NewerOlder