Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
precmd_functions=("_exit_status" ${precmd_functions[@]}) | |
function _exit_status() { | |
local last_exit_status=$? | |
export last_exit="" | |
if [ -z "${last_exit_status}" ]; then | |
last_exit="" | |
elif (( last_exit_status != 0 )); then | |
local description |
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
<!-- | |
ASP Webshell | |
Working on latest IIS | |
Referance :- | |
https://github.com/tennc/webshell/blob/master/fuzzdb-webshell/asp/cmd.asp | |
http://stackoverflow.com/questions/11501044/i-need-execute-a-command-line-in-a-visual-basic-script | |
http://www.w3schools.com/asp/ |
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
Disable vim automatic visual mode on mouse select | |
issue: :set mouse-=a | |
add to ~/.vimrc: set mouse-=a | |
my ~/.vimrc for preserving global defaults and only changing one option: | |
source $VIMRUNTIME/defaults.vim | |
set mouse-=a |
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
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
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
/** random 128-bit number as a string */ | |
function random128() { | |
var result = ""; | |
for (var i = 0; i < 8; i++) | |
result += String.fromCharCode(Math.random() * 0x10000); | |
return result; | |
} | |
/** random 128-bit number in canonical uuid format. all bits are random. */ | |
function random128Hex() { |