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
mysqldump -u MYSQL_USERNAME -p YOUR_DATABASE | gzip -c | ssh USERNAME@YOUR_TO_HOST 'cat > ~/dump.sql.gz' |
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 parent, ink, d, x, y; | |
$(".riddle-animate").click(function(e){ | |
parent = $(this).parent(); | |
//create .ink element if it doesn't exist | |
if(parent.find(".ink").length == 0) | |
parent.prepend("<span class='ink'></span>"); | |
ink = parent.find(".ink"); | |
//incase of quick double clicks stop the previous animation | |
ink.removeClass("animate"); |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<title>Welcome!</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<link rel="shortcut icon" href="/favicon.ico" /> | |
<meta name="robots" content="noindex" /> | |
<style type="text/css"><!-- |
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
# Apache configuration file | |
# httpd.apache.org/docs/2.2/mod/quickreference.html | |
# Note .htaccess files are an overhead, this logic should be in your Apache | |
# config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html | |
# Techniques in here adapted from all over, including: | |
# Kroc Camen: camendesign.com/.htaccess | |
# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/ | |
# Sample .htaccess file of CMS MODx: modxcms.com |
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 // custom WordPress database error page tutorial @ digwp.com | |
header('HTTP/1.1 503 Service Temporarily Unavailable'); | |
header('Status: 503 Service Temporarily Unavailable'); | |
header('Retry-After: 3600'); // 1 hour = 3600 seconds | |
mail("spamless@domain.tld", "Database Error", "There is a problem with teh database!", "From: Montgomery Scott"); | |
?> | |
<!DOCTYPE HTML> | |
<html dir="ltr" lang="en-US"> |
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
; cPanel %cpversion% | |
; Zone file for %domain% | |
$TTL %ttl% | |
@ %nsttl% IN SOA %nameserver%. %rpemail%. ( | |
%serial% ; serial, todays date+todays | |
3600 ; refresh, seconds | |
600 ; retry, seconds | |
1209600 ; expire, seconds | |
3600 ; minimum, seconds | |
) |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Default Web Site Page</title> | |
<style type="text/css"> | |
body {font-family:arial;margin:0;padding:0;background:url(/img-sys/bg.jpg) repeat-x #dff4fe;color:#6f6f6f;font-size:12px;} | |
a {color:#0075a9;} | |
* {margin:0;padding:0;} | |
h1 {background:url(/img-sys/header.jpg) no-repeat; height:83px;text-indent:-9999px;} |
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
for i in `cat /etc/trueuserdomains | cut -d: -f1` | |
do | |
/usr/local/cpanel/bin/swapip OLDIP NEWIP $i; | |
done; |
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 MysqlError() | |
{ | |
if (mysql_errno()) | |
{ | |
echo "<b>Mysql Error: " . mysql_error() . "</b>\n"; | |
} | |
} |
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 | |
# | |
# Simple script for setting table prefixes in SQL-dump | |
if [ $# != 2 ]; then | |
cat >&2 << EOH | |
This is Drupal database prefixer. | |
Usage: | |
$0 prefix original_db.sql > prefixed_db.sql | |
- all tables will be prefixed with 'prefix' | |
EOH |