Place these lines above the "That's all, stop editing! Happy blogging." line in wp-config.php
Rename "wp-content" folder to "assets" or whatever you like. Modify https to http if you dont use secure connection.
| <? | |
| if ( isset ($_POST['url']) || isset ($_GET['url']) ) | |
| { | |
| $url = $_POST['url']; | |
| if(isset($_GET['url'])) { $url = $_GET['url']; } | |
| if ( filter_var($url, FILTER_VALIDATE_URL) === false ){ | |
| echo "Nem adtal meg webcimet vagy rossz formatumban van"; | |
| echo "<meta http-equiv=\"refresh\" content=\"3; url=./\">"; | |
| return false; |
| export PATH="/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin" | |
| echo "yourpassword" | sudo -S networksetup -setdnsservers Wi-Fi 208.67.222.222 208.67.220.220 | |
| echo "yourpassword" | sudo -S networksetup -setdnsservers Ethernet 208.67.222.222 208.67.220.220 |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta http-equiv="refresh" content="1"> | |
| </head> | |
| <body> | |
| Server memory usage: | |
| <?php | |
| $data = explode("\n", file_get_contents("/proc/meminfo")); |
| <!-- | |
| Simple webpage copy protection by hlorand | |
| - diables selection | |
| - disables right click | |
| - prevents PrintScreening the page | |
| - if page saved offline, hides body (uncomment to use it, and specify a domain) or shuffles characters | |
| This code achieves above things using JavaScript. The content you want to protect | |
| is located in the source code and a qualified programmer can easily extract it. | |
| To make his work harder, a better solution is to dynamically download content |
| #!/bin/bash | |
| # check every 10 seconds if a website is up or down | |
| WEBSITE=$1 | |
| while true; do | |
| #curl downloads only HTTP header in silent mode | |
| #head gets the first line | |
| #grep searches for HTTP 200 OK status code and outputs the number of lines found |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
| </head> | |
| <body> | |
| <script type="text/javascript"> | |
| function stopvideo(id){ |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Facebook reactions counter</title> | |
| <meta http-equiv="refresh" content="60"> | |
| <meta charset="UTF-8"> | |
| <base target="_blank"> | |
| </head> | |
| <body> |
| #!/bin/bash | |
| ###################################### | |
| # REMOVES HUNGARIAN LETTER ACCENTS FROM FILENAMES IN CURRENT FOLDER | |
| # Works with OSX special character representation | |
| # ( https://stackoverflow.com/questions/6153345/different-utf8-encoding-in-filenames-os-x ) | |
| # Usage: | |
| # chmod +x removeaccents.sh | |
| # ./removeaccents.sh | |
| ######################################## |
| #!/bin/bash | |
| ###################################### | |
| # Caclucates and prints the following data to a .txt file separated by commas; | |
| # - MD5 hash | |
| # - SHA1 hash | |
| # - file modification date | |
| # - filename | |
| ######################################## |