For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
| // Vimperator plugin for personas | |
| /* | |
| Command: | |
| :personas {id} | |
| change to {id}'s theme | |
| :personas null | |
| use default theme | |
| :personas {id} -c[color] {color} |
| var page = new WebPage(), | |
| address, output, size; | |
| //capture and captureSelector functions adapted from CasperJS - https://github.com/n1k0/casperjs | |
| capture = function(targetFile, clipRect) { | |
| var previousClipRect; | |
| var clipRect = {top: 0, left:0, width: 40, height: 40}; | |
| if (clipRect) { | |
| if (!isType(clipRect, "object")) { | |
| throw new Error("clipRect must be an Object instance."); |
| <?php | |
| /* host machine settings */ | |
| $GIT_BIN = '/usr/local/bin/git'; | |
| $LOCAL_USER = 'www'; | |
| /* remote repo settings */ | |
| $REMOTE = 'origin'; | |
| $BRANCH = 'production'; |
| ;(function(define){define(function(require,exports,module){ | |
| //... | |
| });})(typeof define=='function'&&define.amd?define | |
| :(function(n,w){'use strict';return typeof module=='object'?function(c){ | |
| c(require,exports,module);}:function(c){var m={exports:{}};c(function(n){ | |
| return w[n];},m.exports,m);w[n]=m.exports;};})('module-name',this)); |
| git config --global alias.link '!f() { echo https://$(git config --get remote.origin.url | sed s/^[[:alpha:]]*@// | sed s/:/\\// | sed s/\\.git$//)/commit/$(git rev-parse ${1:-HEAD}); }; f' | |
| git config --global alias.linkc '!git link ${1:-HEAD} | pbcopy' |
| adb pull /system/b2g/omni.ja | |
| rm -rf omni.old | |
| mv omni omni.old | |
| mkdir omni | |
| mv omni.ja omni | |
| cd omni | |
| unzip omni.ja | |
| rm omni.ja | |
| cd .. |
| #!/bin/bash | |
| # setup your mozilla-central REPO and github REMOTE. | |
| # path to mozilla-central | |
| REPO="mozilla-central" | |
| # regualr expression for gaia github repo url | |
| REMOTE="https:\/\/github\.com\/RickyChien\/gaia" |
| #!/bin/bash | |
| # Define physical ethernet interface to be bridged | |
| # with TAP interface(s) above. | |
| eth="eth0" | |
| eth_ip="192.168.42.2" | |
| eth_netmask="255.255.255.0" | |
| eth_broadcast="192.168.42.255" | |
| eth_gateway="192.168.42.1" | |
| eth_mac="XX:XX:XX:XX:XX:XX" |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent