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 | |
if (isset($_GET['position'])) { | |
$handle = fopen('/myfile.log', 'r'); | |
$content = stream_get_contents($handle, -1, intval($_GET['position'])); | |
fseek($handle, 0, SEEK_END); | |
echo json_encode(array('position' => ftell($handle), 'content' => $content)); | |
exit(); | |
} | |
?> | |
<!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
daemon | |
nscache 65536 | |
users mylogin:CL:mypassword | |
log /var/log/3proxy.log D | |
logformat "- +_L%t.%. %N.%p %E %U %C:%c %R:%r %O %I %h %T" | |
rotate 30 | |
flush | |
auth strong |
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
# The default requires explicit activation of protocol 1 | |
#Protocol 2 | |
# HostKey for protocol version 1 | |
#HostKey /etc/ssh/ssh_host_key | |
# HostKeys for protocol version 2 | |
HostKey /etc/ssh/ssh_host_rsa_key | |
#HostKey /etc/ssh/ssh_host_dsa_key | |
HostKey /etc/ssh/ssh_host_ecdsa_key | |
HostKey /etc/ssh/ssh_host_ed25519_key |
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
yum install 3proxy; | |
curl https://gist.githubusercontent.com/AntonOrlov/a70aeed276d35dc9d77060b0a6c167ed/raw -o /etc/3proxy.cfg; | |
chmod 644 /etc/3proxy.cfg; | |
firewall-cmd --zone=public --add-port=8080/tcp --permanent | |
firewall-cmd --zone=public --add-port=9000/tcp --permanent | |
systemctl enable 3proxy.service; | |
systemctl restart 3proxy.service; |
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 | |
/* | |
Plugin Name: Wordpress debugger | |
Plugin URI: mailto:[email protected] | |
Description: Debug tools for wordpress | |
Author: Anton Orlov | |
Author URI: mailto:[email protected] | |
Version: 1.0 | |
*/ |
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
{ | |
"type": "item", | |
"id": "Q23", | |
"labels": { | |
"eo": { | |
"language": "eo", | |
"value": "George Washington" | |
}, | |
"pl": { | |
"language": "pl", |
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
license: gpl-3.0 |