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
| sudo -u apache ssh-keygen -t rsa | |
| //make sure ./.ssh dir is set to 770 |
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 URLEncode (clearString) { | |
| var output = ''; | |
| var x = 0; | |
| clearString = clearString.toString(); | |
| var regex = /(^[a-zA-Z0-9_.]*)/; | |
| while (x < clearString.length) { | |
| var match = regex.exec(clearString.substr(x)); | |
| if (match != null && match.length > 1 && match[1] != '') { | |
| output += match[1]; | |
| x += match[1].length; |
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
| find ./ -name .svn -exec ls -l {} \; | |
| find ./ -name .svn -exec rm -rf {} \; |
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
| find /var/www/ -type d -not -iwholename '*.svn*' -print0 | xargs -0 chmod 755 | |
| find /var/www/ -type f -not -path '*.svn*', -not -path '*.ssh*', -not -iwholename '*.sh*' -print0 | xargs -0 chmod 644 |
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
| onmouseover="this.style.cursor='pointer';" |
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
| <script language="JavaScript" type="text/javascript"> | |
| <!-- | |
| function CheckForm() { | |
| if (!(document.contactForm.name.value.length > 0)) | |
| { | |
| alert("You must enter your Name"); | |
| contactForm.name.focus(); | |
| 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
| function changeBG(theid){ | |
| if(theid.style.backgroundImage == 'url(images/expand.jpg)') { | |
| var your_image = 'images/collapse.jpg'; | |
| theid.style.backgroundImage="url('"+your_image+"')"; | |
| } | |
| else { | |
| var your_image = 'images/expand.jpg'; | |
| theid.style.backgroundImage="url('"+your_image+"')"; | |
| } | |
| } |
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 getCSSRule(ruleName, deleteFlag) { // Return requested style obejct | |
| ruleName=ruleName.toLowerCase(); // Convert test string to lower case. | |
| if (document.styleSheets) { // If browser can play with stylesheets | |
| for (var i=0; i<document.styleSheets.length; i ) { // For each stylesheet | |
| var styleSheet=document.styleSheets[i]; // Get the current Stylesheet | |
| var ii=0; // Initialize subCounter. | |
| var cssRule=false; // Initialize cssRule. | |
| do { // For each rule in stylesheet | |
| if (styleSheet.cssRules) { // Browser uses cssRules? | |
| cssRule = styleSheet.cssRules[ii]; // Yes --Mozilla Style |
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
| return confirm('Remove Image: Are You Sure?'); |
OlderNewer