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
#!/bin/bash | |
apt-get update | |
a2enmod remoteip | |
a2enmod ratelimit | |
apt install fail2ban | |
touch /etc/fail2ban/jail.local | |
echo "[http-get-dos]" | tee -a /etc/fail2ban/jail.local | |
echo "enabled = true" | tee -a /etc/fail2ban/jail.local | |
echo "port = http,https" | tee -a /etc/fail2ban/jail.local |
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
Object.values(document.styleSheets).map(x => {try{return Object.values(x.rules).map(x => x.cssText).join("\n")}catch{return []}}).join("\n") |
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
#!/bin/bash | |
# Update the package index and upgrade existing packages | |
apt-get update | |
apt-get upgrade -y | |
# Install Apache2 | |
apt install curl wget nmap htop | |
apt-get install apache2 -y |
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
#!/bin/bash | |
domain=$1 | |
domain_conf_file_name="$domain.conf" | |
if test -z "$domain" | |
then | |
echo 'Вы не ввели название хоста' | |
exit 0 | |
fi |
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
#!/bin/sh | |
find /root/data_base_bk/dumps -name '*.*' -mmin +600 -delete > /dev/null #remove files after 10 hour | |
d=$(date +%Y-%m-%d-%H:%M:%S) #make current date | |
mysqldump -u mysql_user_name -h 127.0.0.1 --password='mysqk_password' -P 3306 --no-autocommit --opt data_base_name > "/root/data_base_bk/dumps/data_base_name$d.sql" |
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
$klinesHour = json_decode(file_get_contents("https://fapi.binance.com/fapi/v1/klines?symbol=DOGEUSDT&interval=5m&limit=1500"),1); | |
$capital = 3000; | |
$dealList = []; | |
foreach ($klinesHour as $kline){ | |
if ($capital > 200){ | |
$dealList[] = [ | |
'price_take' => $kline[1] + (($kline[1]/ 100) * 0.5), |
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
curl -s https://gist.githubusercontent.com/Padilo300/49ef989384650cac15f176fe03cffa00/raw/919586f4477facb5342711fca0f2cd8d249b5015/install%2520lamp > install.sh && chmod +x install.sh && ./install.sh |
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
<?php | |
/*echo "<pre>"; | |
print_r($_POST); | |
echo $_POST['age'] ; | |
echo "<br>"; | |
echo $_POST['about'];*/ | |
?> | |
<!doctype html> |
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
var _0xbaec = ["", "\x6C\x65\x6E\x67\x74\x68", "\x63\x68\x61\x72\x41\x74", "\x2D", "\x58", "\x5F", "\x61", "\x7B", "\x6C", "\x7D", "\x4D", "\x28", "\x42", "\x29", "\x62", "\x2E", "\x74", "\x2C", "\x47", "\x3B", "\x6F", "\x21", "\x50", "\x5B", "\x41", "\x5D", "\x78", "\x3A", "\x4B", "\x24", "\x63", "\x40", "\x57", "\x23", "\x77", "\x25", "\x51", "\x5E", "\x71", "\x26", "\x59", "\x2A", "\x79", "\x3F", "\x55", "\x7C", "\x75", "\x7E", "\x52", "\x3C", "\x72", "\x3E", "\x5A", "\x4C", "\x6D", "\x6B", "\x54", "\x67", "\x4F", "\x70", "\x46", "\x66", "\x4A", "\x6A", "\x48", "\x68", "\x73", "\x53", "\x6E", "\x4E", "\x7A", "\x44"]; | |
function jsDecrypt(_0x6accx2) { | |
var _0x6accx3 = _0xbaec[0]; | |
var _0x6accx4 = _0x6accx2[_0xbaec[1]]; | |
for (var _0x6accx5 = 0; _0x6accx5 < _0x6accx4; _0x6accx5++) { | |
var _0x6accx6 = _0x6accx2[_0xbaec[2]](_0x6accx5); | |
var _0x6accx7 = _0x6accx6; | |
if (_0x6accx5 < _0x6accx4 * 0.3) { | |
if (_0x6accx6 == _0xbaec[3]) { |
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
const ALL_COUNTRIES_FORMAT = '/^\+?([87](?!95[5-79]|99[08]|907|94[^0]|336)([348]\d|9[0-6789]|7[01247])\d{8}|[1246]\d{9,13}|68\d{7}|5[1-46-9]\d{8,12}|55[1-9]\d{9}|55[138]\d{10}|55[1256][14679]9\d{8}|554399\d{7}|500[56]\d{4}|5016\d{6}|5068\d{7}|502[45]\d{7}|5037\d{7}|50[4567]\d{8}|50855\d{4}|509[34]\d{7}|376\d{6}|855\d{8,9}|856\d{10}|85[0-4789]\d{8,10}|8[68]\d{10,11}|8[14]\d{10}|82\d{9,10}|852\d{8}|90\d{10}|96(0[79]|17[0189]|181|13)\d{6}|96[23]\d{9}|964\d{10}|96(5[569]|89)\d{7}|96(65|77)\d{8}|92[023]\d{9}|91[1879]\d{9}|9[34]7\d{8}|959\d{7,9}|989\d{9}|971\d{8,9}|97[02-9]\d{7,11}|99[^4568]\d{7,11}|994\d{9}|9955\d{8}|996[2579]\d{8}|9989\d{8}|380[345679]\d{8}|381\d{9}|38[57]\d{8,9}|375[234]\d{8}|372\d{7,8}|37[0-4]\d{8}|37[6-9]\d{7,11}|30[69]\d{9}|34[679]\d{8}|3459\d{11}|3[12359]\d{8,12}|36\d{9}|38[169]\d{8}|382\d{8,9}|46719\d{10})$/'; | |
const SNG_COUNTRIES_FORMAT = '/^((\+?7|8)(?!95[4-79]|99[08]|907|94[^0]|336)([348]\d|9[0-6789]|7[0247])\d{8}|\+?(99[^4568]\d{7,11}|994\d{9}|9955\d{8}|996[57]\d{8}|9989\d{8}|380[34569] |
NewerOlder