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
javascript:var links=document.getElementsByTagName("link"); for (var i = 0; i < links.length;i++) { var link = links[i]; if (link.rel === "stylesheet") {link.href += "?"; }}; return false |
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
"/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome" --disable-web-security --user-agent="Android" --user-data-dir="C:/temp-chrome-app" --app=file:///C:/path/to/app.html" |
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
# .htaccess or Apache vhost | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^www\. | |
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [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
<!-- displays the following warning, then hide immediately with javascript. | |
If javascript is not enabled, the message will be displayed. No JQuery needed --> | |
<p id="jsenabled" style="color:red">Javascript must be enabled to use the form !</p> | |
<script type="text/javascript"> | |
document.getElementById('jsenabled').innerHTML=''; | |
document.getElementById('jsenabled').style.display = 'none'; | |
</script> |
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="refresh" content="5;url=http://example.com/" /> |
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
# create an .htaccess file in the directory to protect | |
AuthUserFile /full/path/to/.htpasswd | |
AuthType Basic | |
AuthName "My Secret Folder" | |
Require valid-user | |
#create the password with this command | |
htpasswd -c /full/path/to/.htpasswd fred | |
# Now go to http://yourserver/protecteddir/ and insert username:fred, password (the one you inserted after the last command) |
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
# skip admin directory | |
RewriteCond %{REQUEST_URI} !^/admin | |
# rule | |
RewriteRule ... |
NewerOlder