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
export EC2_KEYPAIR=<your keypair name> # name only, not the file name | |
export EC2_URL=https://ec2.<your ec2 region>.amazonaws.com | |
export EC2_PRIVATE_KEY=$HOME/<where your private key is>/pk-XXXXXXXXXXXXXXXXXXXXXXXXXXXX.pem | |
export EC2_CERT=$HOME/<where your certificate is>/cert-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.pem | |
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/ | |
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
<input id="box-toggle" type="checkbox"> | |
<label for="box-toggle">Show geometry</label> |
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
<input id="box-toggle" type="checkbox"> | |
<label for="box-toggle">Show geometry</label> |
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 | |
ini_set('memory_limit', '5120M'); | |
set_time_limit ( 0 ); | |
/*************************************************************************** | |
* sql_parse.php | |
* ------------------- | |
* begin : Thu May 31, 2001 | |
* copyright : (C) 2001 The phpBB Group | |
* email : [email protected] |
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
#http://www.securityweek.com/hacked-mit-server-used-stage-attacks-scan-vulnerabilities | |
Using mod-rewrite in HTACCESS can filter these scans, redirecting them to your main domain or elsewhere, such as a 403 page. | |
RewriteCond %{REQUEST_URI} ^(.*)//+(.*)$ | |
RewriteRule / http: //www.example.com/%1/%2 [R=301,L] |
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 flag = false; | |
$(window).resize(function(){ | |
if(flag === false){ | |
setTimeout(function(){ | |
$( '.scroll-pane' ).jScrollPane(); | |
flag = false; | |
}, 300); | |
} | |
flag = true; | |
}); |
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
gApplication.getMap().getCenter() |
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
http://www.facebook.com/sharer.php?u=<url to share>&t=<title of content>link or image</a> | |
<a href="http://www.twitter.com/share?url=http://www.google.com/>Tweet</a> |
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
<meta http-equiv="Imagetoolbar" content="no" /> | |
<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" /> | |
<meta name="format-detection" content="telephone=no" /> | |
<meta name="viewport" content="" /> |
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 | |
# | |
# processname: stargazer | |
# config: /etc/stargazer/stargazer.conf | |
# pidfile: /var/run/stargazer.pid | |
# Source function library. | |
. /etc/rc.d/init.d/functions | |
# Source networking configuration. |