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
var Gscrape = function(domain) { | |
var domain = domain || 'com', | |
searchURL = 'http://www.google.' + domain + '/search?q=', | |
searchInProgress = false, | |
cache = { | |
error: '', | |
success: true, | |
pages: 0, | |
urls: {} | |
}; |
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
alias server='open http://localhost:8000 && python -m SimpleHTTPServer' |
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 if ( (is_home() && (!$paged || $paged ==1)) || is_page() || is_single() || is_category()) :?> | |
<meta name="googlebot" content="index,archive,follow,noodp" /> | |
<meta name="robots" content="all,index,follow" /> | |
<meta name="msnbot" content="all,index,follow" /> | |
<?php else : ?> | |
<meta name="googlebot" content="noindex,noarchive,follow,noodp" /> | |
<meta name="robots" content="noindex,follow" /> | |
<meta name="msnbot" content="noindex,follow" /> | |
<?php endif; ?> |
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
#!/usr/bin/env bash | |
# Warning! | |
# if you DIY a stage package like this, | |
# you must use the Stage3`s /etc/udev/* | |
# or rm /etc/udev/rules.d/70* | |
# Warning! | |
# Update by likuku on Nov29,2016 | |
readonly DATE=$(date +%Y_%m_%d_%H_%M_%S) | |
readonly ARCH=$(uname -m) |
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
from Queue import Queue # Threadsafe queue for threads to use | |
from collections import Counter # To count stuff for us | |
import datetime # Because datetime printing is hard | |
from pprint import pprint | |
import time # Should be obvious | |
import subprocess # Used to send notifications on mac | |
import sys # Get system info | |
import threading # Should be obvious | |
import json # Also obvious |
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
#coding: utf-8 | |
from __future__ import unicode_literals | |
from faker.providers import BaseProvider | |
class Provider(BaseProvider): | |
formats = [ | |
"{{verb}} {{noun}}", | |
"{{verb}} for {{noun}}", | |
"{{verb}} and {{verb}} {{noun}} {{project_type}}", | |
"{{verb}} {{noun}} in {{location}}", |
You got your hands on some data that was leaked from a social network and you want to help the poor people.
Luckily you know a government service to automatically block a list of credit cards.
The service is a little old school though and you have to upload a CSV file in the exact format. The upload fails if the CSV file contains invalid data.
The CSV files should have two columns, Name and Credit Card. Also, it must be named after the following pattern:
YYYYMMDD
.csv.
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
pip install selenium | |
python namecheap.py <namecheap_account> <namecheap_password> <domain> |
OlderNewer