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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from bs4 import BeautifulSoup | |
import urllib2 | |
__author__ = "Aymen Amri" | |
__email__ = "[email protected]" | |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<root> | |
<element> | |
<code>AF</code> | |
<name>Afghanistan</name> | |
</element> | |
<element> | |
<code>AX</code> | |
<name>Åland Islands</name> | |
</element> |
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
[ | |
{"name": "Afghanistan", "code": "AF"}, | |
{"name": "Åland Islands", "code": "AX"}, | |
{"name": "Albania", "code": "AL"}, | |
{"name": "Algeria", "code": "DZ"}, | |
{"name": "American Samoa", "code": "AS"}, | |
{"name": "AndorrA", "code": "AD"}, | |
{"name": "Angola", "code": "AO"}, | |
{"name": "Anguilla", "code": "AI"}, | |
{"name": "Antarctica", "code": "AQ"}, |
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
deb http://mirror.cse.iitk.ac.in/debian/ jessie main | |
deb-src http://mirror.cse.iitk.ac.in/debian/ jessie main | |
deb http://security.debian.org/ jessie/updates main contrib | |
deb-src http://security.debian.org/ jessie/updates main contrib | |
# wheezy-updates, previously known as 'volatile' | |
deb http://mirror.cse.iitk.ac.in/debian/ jessie-updates main contrib | |
deb-src http://mirror.cse.iitk.ac.in/debian/ jessie-updates main contrib |
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
DELETE p FROM wp_posts p WHERE p.post_type = 'product'; | |
DELETE pm FROM wp_postmeta pm LEFT JOIN wp_posts wp ON wp.ID = pm.post_id WHERE wp.ID IS NULL; | |
DELETE tr FROM wp_term_relationships tr INNER JOIN wp_term_taxonomy tt ON (tr.term_taxonomy_id = tt.term_taxonomy_id) WHERE tt.taxonomy != 'link_category' AND tr.object_id NOT IN ( SELECT ID FROM wp_posts ); |
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
Port 22 | |
ListenAddress 192.168.1.1 | |
HostKey /etc/ssh/ssh_host_key | |
ServerKeyBits 1024 | |
LoginGraceTime 600 | |
KeyRegenerationInterval 3600 | |
PermitRootLogin no | |
IgnoreRhosts yes | |
IgnoreUserKnownHosts yes | |
StrictModes yes |
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
SetEnvIfNoCase User-Agent ^$ bad_bot | |
SetEnvIfNoCase User-Agent "^AESOP_com_SpiderMan" bad_bot | |
SetEnvIfNoCase User-Agent "^Alexibot" bad_bot | |
SetEnvIfNoCase User-Agent "Anonymouse.org" bad_bot | |
SetEnvIfNoCase User-Agent "^asterias" bad_bot | |
SetEnvIfNoCase User-Agent "^attach" bad_bot | |
SetEnvIfNoCase User-Agent "^BackDoorBot" bad_bot | |
SetEnvIfNoCase User-Agent "^BackWeb" bad_bot | |
SetEnvIfNoCase User-Agent "Bandit" bad_bottest | |
SetEnvIfNoCase User-Agent "^Baiduspider" bad_bot |
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
DELETE FROM wp_term_relationships WHERE object_id IN (SELECT ID FROM wp_posts WHERE post_type = 'product'); | |
DELETE FROM wp_postmeta WHERE post_id IN (SELECT ID FROM wp_posts WHERE post_type = 'product'); | |
DELETE FROM wp_posts WHERE post_type = 'product'; |
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
# PERISHABLE PRESS ULTIMATE REFERRER BLACKLIST | |
# https://perishablepress.com/4g-ultimate-referrer-blacklist/ | |
# This is the referrer blacklist from http://brassblogs.com/blog/htaccess-and-spam | |
# This blacklist is ready to use in your site's root htaccess file | |
# Edit the first two lines with your specific domain information | |
# Check http://brassblogs.com/blog/htaccess-and-spam for updates |
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
(?P<scheme>[a-zA-Z][a-zA-Z0-9+.-]*):(?://(?P<iauthority>(?:(?P<iuserinfo>(?:(?:[ | |
a-zA-Z0-9._~-]|[\xa0-\ud7ff\uf900-\ufdcf\ufdf0-\uffef\U00010000-\U0001fffd\U0002 | |
0000-\U0002fffd\U00030000-\U0003fffd\U00040000-\U0004fffd\U00050000-\U0005fffd\U | |
00060000-\U0006fffd\U00070000-\U0007fffd\U00080000-\U0008fffd\U00090000-\U0009ff | |
fd\U000a0000-\U000afffd\U000b0000-\U000bfffd\U000c0000-\U000cfffd\U000d0000-\U00 | |
0dfffd\U000e1000-\U000efffd])|%[0-9A-F][0-9A-F]|[!$&'()*+,;=]|:)*)@)?(?P<ihost>\ | |
\[(?:(?:[0-9A-F]{1,4}:){6}(?:[0-9A-F]{1,4}:[0-9A-F]{1,4}|(?:(?:(?:25[0-5]|2[0-4] | |
[0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))|::(?:[0 | |
-9A-F]{1,4}:){5}(?:[0-9A-F]{1,4}:[0-9A-F]{1,4}|(?:(?:(?:25[0-5]|2[0-4][0-9]|[01] | |
?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))|[0-9A-F]{1,4}?::( |
OlderNewer