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
$ wget -nH --no-clobber --page-requisites --html-extension --restrict-file-names=windows --domains www.website-address.co.uk http://www.website-address.co.uk/ |
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
# Search for:'_s', Replace with:'yourthemename' (text domain) | |
find . -type f \( -iname "*.php" -o -iname "*.css" -o -iname "*.txt" \) -exec sed -i "" "s/\'_s\'/\'yourthemename\'/g" '{}' \; | |
# Search for:_s_, Replace with:yourthemename_ (function names) | |
find . -type f \( -iname "*.php" -o -iname "*.css" -o -iname "*.txt" \) -exec sed -i "" "s/_s_/yourthemename_/g" '{}' \; | |
# Search for: _s, Replace with: Yourthemename (in comments) | |
find . -type f \( -iname "*.php" -o -iname "*.css" -o -iname "*.txt" \) -exec sed -i "" "s/ _s/ Yourthemename/g" '{}' \; | |
# Don't remove the space in ' Yourthemename' |
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
accept(3, {sa_family=AF_INET, sin_port=htons(39263), sin_addr=inet_addr("10.176.133.135")}, [16]) = 15 | |
fcntl(15, F_GETFD) = 0 | |
fcntl(15, F_SETFD, FD_CLOEXEC) = 0 | |
gettimeofday({1345995352, 860155}, NULL) = 0 | |
fcntl(15, F_GETFL) = 0x2 (flags O_RDWR) | |
fcntl(15, F_SETFL, O_RDWR|O_NONBLOCK) = 0 | |
gettimeofday({1345995352, 860364}, NULL) = 0 | |
gettimeofday({1345995352, 860438}, NULL) = 0 | |
gettimeofday({1345995352, 860504}, NULL) = 0 | |
read(15, "GET /simon-hard.php HTTP/1.0\r\nX-"..., 8000) = 1373 |
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
accept(3, {sa_family=AF_INET, sin_port=htons(44590), sin_addr=inet_addr("10.176.133.135")}, [16]) = 15 | |
fcntl(15, F_GETFD) = 0 | |
fcntl(15, F_SETFD, FD_CLOEXEC) = 0 | |
gettimeofday({1345995128, 111295}, NULL) = 0 | |
fcntl(15, F_GETFL) = 0x2 (flags O_RDWR) | |
fcntl(15, F_SETFL, O_RDWR|O_NONBLOCK) = 0 | |
gettimeofday({1345995128, 111533}, NULL) = 0 | |
gettimeofday({1345995128, 111612}, NULL) = 0 | |
gettimeofday({1345995128, 111682}, NULL) = 0 | |
read(15, "GET /simon-hard.php HTTP/1.0\r\nX-"..., 8000) = 1373 |
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
accept(3, {sa_family=AF_INET, sin_port=htons(39290), sin_addr=inet_addr("10.176.133.135")}, [16]) = 15 | |
fcntl(15, F_GETFD) = 0 | |
fcntl(15, F_SETFD, FD_CLOEXEC) = 0 | |
gettimeofday({1345995403, 39206}, NULL) = 0 | |
fcntl(15, F_GETFL) = 0x2 (flags O_RDWR) | |
fcntl(15, F_SETFL, O_RDWR|O_NONBLOCK) = 0 | |
gettimeofday({1345995403, 39418}, NULL) = 0 | |
gettimeofday({1345995403, 39492}, NULL) = 0 | |
gettimeofday({1345995403, 39557}, NULL) = 0 | |
read(15, "GET /simon-soft2.php HTTP/1.0\r\nX"..., 8000) = 1374 |
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
accept(3, {sa_family=AF_INET, sin_port=htons(44640), sin_addr=inet_addr("10.176.133.135")}, [16]) = 15 | |
fcntl(15, F_GETFD) = 0 | |
fcntl(15, F_SETFD, FD_CLOEXEC) = 0 | |
gettimeofday({1345995218, 826638}, NULL) = 0 | |
fcntl(15, F_GETFL) = 0x2 (flags O_RDWR) | |
fcntl(15, F_SETFL, O_RDWR|O_NONBLOCK) = 0 | |
gettimeofday({1345995218, 826856}, NULL) = 0 | |
gettimeofday({1345995218, 826937}, NULL) = 0 | |
gettimeofday({1345995218, 827007}, NULL) = 0 | |
read(15, "GET /simon-soft2.php HTTP/1.0\r\nX"..., 8000) = 1374 |
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
<?php | |
function my_additional_schedules($schedules) { | |
// interval in seconds | |
$schedules['every2min'] = array('interval' => 2*60, 'display' => 'Every two minutes'); | |
return $schedules; | |
} | |
add_filter('cron_schedules', 'my_additional_schedules'); | |
// schedule the wp_cron_testing |
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
var svg = createSVG(); | |
// Associate each circle with a unique ID so that exit() | |
// and updates properly affect the correct element. | |
var circle = svg.selectAll("circle").data($data,ƒ('id')); | |
circle.enter().append('circle') | |
.attr('opacity',0) | |
.attr('class',"m") | |
.attr("cx", ƒ('x')) |
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
#!/bin/sh | |
i="shape-detect.cpp" | |
echo "compiling $i" | |
g++ -ggdb `pkg-config --cflags opencv` -o `basename $i .cpp` $i `pkg-config --libs opencv`; |
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
<?php | |
/* | |
Filter the gravity form shortcode output to retreive the form from the main site | |
*/ | |
add_filter('gform_shortcode_form', 'gform_shortcode_form_mu_override',10,3); | |
function gform_shortcode_form_mu_override( $shortcode_string, $attributes, $content ){ |
OlderNewer