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
| <!-- | |
| seamless="seamless" - Specifies that the <iframe> should look like it is a part of the containing document | |
| allowTransparency="true" - old "seamless" alternative (is not a W3C spec/ option) | |
| frameborder="0" - no border on old browsers (deprecated on HTML5) | |
| scrolling="auto" - Specifies whether or not to display scrollbars in an <iframe> (deprecated on HTML5) | |
| horizontalscrolling - force hide horizontal scrolling on (IE fix) | |
| verticalscrolling - force hide vertical scrolling on (IE fix) | |
| AUTO RESIZE IFRAME | |
| https://github.com/davidjbradshaw/iframe-resizer |
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 fullEncodeURI(str) { | |
| if (str !== undefined && str !== null) { | |
| str = '' + str; | |
| var res = ''; | |
| for(var i = 0, l = str.length; i < l ;) { | |
| res += '%'; | |
| res += str.charCodeAt(i++).toString('16'); | |
| } | |
| return res; | |
| } |
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 focusFirstInput($root) { | |
| $(':input', $root).not('[type="hidden"], button').first().focus(); | |
| } |
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.edivaldobrito.com.br/como-instalar-o-applet-netspeed-indicator-ubuntu-14-04/ | |
| add-apt-repository ppa:nilarimogard/webupd8 | |
| apt-get update | |
| apt-get install indicator-netspeed |
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
| cd /home | |
| rm -i `find -name '*~'` |
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
| package com.github.leodutra.util.tag.JNDIURLAccessTag; | |
| import java.io.IOException; | |
| import java.net.URI; | |
| import java.net.URL; | |
| import java.util.HashMap; | |
| import java.util.Map; | |
| import org.apache.log4j.Logger; |
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 getGlobalOffset(el) { | |
| var x = 0, y = 0 | |
| while (el) { | |
| x += el.offsetLeft | |
| y += el.offsetTop | |
| el = el.offsetParent | |
| } | |
| return { left: x, top: y } | |
| } |
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/sh | |
| WAS_7_PATH=/opt/IBM/WebSphere/AppServer70 | |
| MAIN_PROFILE=$WAS_7_PATH/profiles/AppSrv01/ | |
| rm -Rf $WAS_7_PATH/temp/* | |
| rm -Rf $WAS_7_PATH/logs/* | |
| rm -Rf $MAIN_PROFILE/temp/* | |
| rm -Rf $MAIN_PROFILE/wstemp/* | |
| rm -Rf $MAIN_PROFILE/config/temp/* |
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
| leftPad = function leftPad(value, size, pad) { // very very fast | |
| if (value.length < size) { | |
| size -= value.length; | |
| var res = ''; | |
| for(;;) { | |
| if (size & 1) res += pad; | |
| size >>= 1; | |
| if (size) pad += pad; | |
| else break; | |
| } |
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
| df -h | |
| #or | |
| df -k |
OlderNewer