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
| select | |
| er.session_id, | |
| er.command, | |
| er.status, | |
| er.percent_complete | |
| from sys.dm_exec_requests as er | |
| where command like '%rollback%' |
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
| lftp -c 'pget -n 10 sftp://USER:PASSWORD@URL/PATH_TO/FILE.zip' |
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
| FilterDeclare subst | |
| FilterProvider subst SUBSTITUTE resp=Content-Type $text/ | |
| FilterProvider subst SUBSTITUTE resp=Content-Type $/xml | |
| FilterProvider subst SUBSTITUTE resp=Content-Type $/json | |
| FilterProvider subst SUBSTITUTE resp=Content-Type $/javascript | |
| <location /node/> | |
| ProxyPass http://localhost:1337/ | |
| ProxyPassReverse http://localhost:1337/ | |
| ProxyPassReverseCookiePath / /node/ |
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 config --global url."https://".insteadOf git:// |
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
| <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=0;target-densityDpi:device-dpi;" /> |
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
| ssh user@PROXY -N -L LOC_PORT:TARGET:TARGET_PORT | |
| ssh panda@10.0.0.1 -N -L 2222:10.0.2.1:22 |
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/bash | |
| raw=`cat users.txt` | |
| IFS=$'\n' | |
| arr=($raw) | |
| output="" | |
| for i in "${arr[@]}" | |
| do | |
| IFS='=' read -a line <<< "$i" |
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/bash | |
| # Thx to: http://mykospark.net/2014/01/iterating-through-regular-expression-matches-with-bash/ | |
| COMMENT=$1 | |
| REGEX_ISSUE_ID="([A-Z]+-[0-9]+|[0-9]{3,})" | |
| while [[ ${COMMENT} =~ (${REGEX_ISSUE_ID}) ]]; do | |
| echo "${BASH_REMATCH[1]}" | |
| COMMENT=${COMMENT##*${BASH_REMATCH[1]}} | |
| done |
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
| // Anonymous "self-invoking" function | |
| (function() { | |
| // Load the script | |
| var script = document.createElement("SCRIPT"); | |
| script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'; | |
| script.type = 'text/javascript'; | |
| document.getElementsByTagName("head")[0].appendChild(script); | |
| // Poll for jQuery to come into existance | |
| var checkReady = function(callback) { |
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
| SETLOCAL | |
| PUSHD . | |
| REM Update buildroot path | |
| FOR /F "tokens=*" %%i in ('cygpath %3') do SET NEW_BUILDROOT=%%i | |
| REM Update topdir path | |
| SET TOPDIR=%5 | |
| SET TOPDIR=%TOPDIR:~9,-1% | |
| FOR /F "tokens=*" %%i in ('cygpath "%TOPDIR%"') do SET NEW_TOPDIR=%%i |
OlderNewer