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
console.clear && console.clear(); | |
Array.prototype.each = function (fn,this_){ | |
if(this.length <=0 || fn == undefined) return; | |
let i = -1 | |
if (this_) fn = fn.bind(this_); | |
do { fn(this[i],i) } | |
while (i++ < this.length) | |
}; | |
var pow = 16 |
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 PATH=/opt/openssh/bin:${PATH} | |
env=~/.ssh/agent.env | |
agent_is_running() { | |
if [ "$SSH_AUTH_SOCK" ]; then | |
# ssh-add returns: | |
# 0 = agent running, has keys | |
# 1 = agent running, no keys | |
# 2 = agent not running |
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
// Author: [email protected] | |
// Distributed under the MIT License | |
// Extension for CSSStyleSheet ($('style').sheet) class that enables painless manipulation of | |
// your css style sheets. | |
// Be careful! This module extendes built-in prototype! | |
// cssStyleSheet.rule(a?:number | string, i?: number): CSSRule | undefined | |
// x:number - the "x" index of cssStyleSheet.cssRules at which the CSSRule to be deleted | |
// x:string - new "x" CSSRule to add at last of the .cssRules index |
NewerOlder