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
DELETE FROM `wp_options` WHERE `option_name` LIKE '_transient_%' |
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
skyebookpro:Party skyebook$ rhc app restart -a MPCParty | |
Password: ************ | |
Problem reported from server. Response code was 500. | |
Re-run with -d for more information. | |
RESULT: | |
Node execution failure (invalid exit code from node). If the problem persists please contact Red Hat support. | |
skyebookpro:Party skyebook$ rhc app force-stop -a MPCParty |
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
#!/bin/bash | |
# Backs up the OpenShift PostgreSQL database for this application | |
# by Skye Book <[email protected]> | |
NOW="$(date +"%Y-%m-%d")" | |
FILENAME="$OPENSHIFT_DATA_DIR/$OPENSHIFT_APP_NAME.$NOW.backup.sql.gz" | |
pg_dump $OPENSHIFT_APP_NAME | gzip > $FILENAME |
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 | |
/** | |
* Remove expired transients from the wp_options table. | |
* This script cycles through a number of expired transients until it doesn't find anymore. | |
* Our wp_options tables has over 2 million stale entries at time of writing, this limiting is really needed | |
* @author Skye Book | |
*/ | |
$user = ""; | |
$pass = ""; |
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
function doRequest(request, headers, http_method, request_body, successCallback, failureCallback){ | |
$.ajax({ | |
url: api+request, | |
headers: headers, | |
data:JSON.stringify(request_body), | |
//data:request_body, | |
processData:false, | |
type: http_method, | |
contentType: "application/json", | |
error: function(XMLHttpRequest, textStatus, errorThrown){ |
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
public static final double EARTH_CIRCUMFERENCE = 637279.82; | |
public double getMetersPerPixelAt(LatLon latLon, int zoomLevel){ | |
//S=C*cos(y)/2^(z+8) | |
double latCos = Math.cos(Math.toDegrees(latLon.getLat())); | |
System.out.println("latCos " + latCos); | |
double result = EARTH_CIRCUMFERENCE*latCos; | |
return result/Math.pow(2, zoomLevel+8); | |
} |
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
develop@develop-VirtualBox:~/src/postgis$ make check | |
/usr/bin/perl utils/svn_repo_revision.pl | |
Not updating existing rev file at 9499 | |
for s in liblwgeom libpgcommon postgis regress raster topology loader utils extensions; do \ | |
echo "---- Making all in ${s}"; \ | |
make -C ${s} all || exit 1; \ | |
done; | |
---- Making all in liblwgeom | |
make[1]: Entering directory `/home/develop/src/postgis/liblwgeom' | |
WARNING: Lexer not generated. Run 'make parse' to manually build lexer/parser. |
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/ld: cannot find -ldgal | |
/dev/zero: file not recognized: File format not recognized | |
collect2: ld returned 1 exit status |
NewerOlder