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 | |
| /* | |
| Plugin Name: Fake Commenter | |
| Description: Add a fake comment to each published post | |
| Version: 1.0 | |
| Author: Danial Hatami | |
| */ | |
| function add_fake_comment_on_publish($ID, $post) { | |
| if ($post->post_type == 'post' && $post->post_status == 'publish') { | 
  
    
      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
    
  
  
    
  | @echo off | |
| SETLOCAL EnableDelayedExpansion | |
| :MENU | |
| CLS | |
| ECHO. | |
| ECHO ............................................... | |
| ECHO PRESS 1 to set DNS to 178.22.122.100 and 185.51.200.2 | |
| ECHO PRESS 2 to reset DNS to automatic | |
| ECHO. | 
  
    
      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
    
  
  
    
  | import urllib.request,xmltodict, json | |
| xml = urllib.request.urlopen('http://data.alexa.com/data?cli=10&dat=s&url={}'.format("www.example.com")).read() | |
| result= xmltodict.parse(xml) | |
| data = json.dumps(result).replace("@","") | |
| data_tojson = json.loads(data) | |
| url = data_tojson["ALEXA"]["SD"][1]["POPULARITY"]["URL"] | |
| rank= data_tojson["ALEXA"]["SD"][1]["POPULARITY"]["TEXT"] | 
  
    
      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
    
  
  
    
  | import re | |
| # to perform multiple replacements in one step: | |
| def multiple_replace(dic, text): | |
| pattern = "|".join(map(re.escape, dic.keys())) | |
| return re.sub(pattern, lambda m: dic[m.group()], text) | |
| def arabic_to_persian(input_text): | |
| characters = { |