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
# On Windows 7, 8, 10 Hosts file is in c:\windows\system32\drivers\etc\hosts | |
# | |
# Block Skype ads | |
127.0.0.1 secure-sin.adnxs.com # On skype 7.* | |
127.0.0.1 *.adnxs.com # On skype 7.* | |
127.0.0.1 logi10.xiti.com # On skype 7.* | |
127.0.0.1 *.everesttech.net # On skype 7.* | |
127.0.0.1 pixel.everesttech.net # On skype 7.* | |
127.0.0.1 d.adroll.com # On skype 7.* |
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
/** | |
* Class SoapClientCurl extends SoapClient __doRequest method with curl powered method | |
*/ | |
class SoapClientCurl extends SoapClient{ | |
//Required variables | |
public $url = null; | |
public $certfile = null; | |
public $keyfile = null; | |
public $passphrase = null; |
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
<html> | |
<body> | |
<pre id="output"></pre> | |
<script src="//cdn.jsdelivr.net/jquery/2.1.1/jquery.js"></script> | |
<script> | |
var $output = $('#output'); | |
var db = openDatabase('fts_demo', 1, 'fts_demo', 5000000); | |
db.transaction(function (tx){ |
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
# Split MYSQL dump file | |
zcat dump.sql.gz | awk '/DROP TABLE IF EXISTS/{n++}{print >"out" n ".sql" }' | |
# Parallel import using GNU Parallel http://www.gnu.org/software/parallel/ | |
ls -rS *.sql | parallel --joblog joblog.txt mysql -uXXX -pYYY db_name "<" | |