This file contains 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
/// <summary> | |
/// Filter that replaces [] with . so that model binding works. | |
/// </summary> | |
/// <remarks> | |
/// simplistic - does a global replace. Also assumes that [, ] | |
/// are not url encoded in the key names (and this is | |
/// the case with chargify right now | |
/// so product name like 'Daily Plan []' is sent as | |
/// payload[subscription][product][name]=Daily%20Plan%20%5B%5D | |
/// ie key names square brackets are sent as is, whereas in values they are url encoded. |
This file contains 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
let s:grepopts='\ --exclude-dir=packages\ --exclude-dir=.git\ --exclude-dir=.svn\ --exclude-dir=tmp\ --exclude=*.intellisense.js\ --exclude=*-vsdoc.js\ --exclude=*.tmp\ --exclude=*.min.js\ -PHIirn\ $*' | |
if has('win32') | |
let s:find=fnamemodify(findfile("find.exe", $GNUWIN."**"), ":p") | |
let s:grep=fnamemodify(findfile("grep.exe", $GNUWIN."**"), ":p") | |
endif | |
execute "set grepprg=" . s:grep ."\\ " . s:grepopts | |
fun! Get_grep_include_opt(prefix) |
This file contains 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
@echo off | |
SET st2Path=E:\Utils\ST3\sublime_text.exe | |
SET gvimPath=c:\users\raghuramanr\bin\gvi.bat | |
SET gvimIcoPath=e:\Utils\gvim\gvim.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f | |
This file contains 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
# ~/.tmux.conf | |
# | |
# See the following files: | |
# | |
# /opt/local/share/doc/tmux/t-williams.conf | |
# /opt/local/share/doc/tmux/screen-keys.conf | |
# /opt/local/share/doc/tmux/vim-keys.conf | |
# | |
# URLs to read: | |
# |
This file contains 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
filetype off | |
set rtp^=~/.vim | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc("$HOME/.vim/bundle/") | |
Plugin 'gmarik/vundle' | |
Plugin 'kshenoy/vim-signature' | |
Plugin 'https://git.gitorious.org/vim-gnupg/vim-gnupg' | |
Plugin 'raghur/vim-helpnav' | |
Plugin 'vim-scripts/L9' | |
Plugin 'kien/ctrlp.vim' |
This file contains 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
#/etc/nginx/sites-enabled/default | |
ssl_certificate /path/to/cert.pem; | |
ssl_certificate_key /path/to/private.key; | |
ssl_session_timeout 5m; | |
ssl_protocols SSLv3 TLSv1; | |
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP; | |
ssl_prefer_server_ciphers on; |
This file contains 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
import jenkins.model.*; | |
import hudson.model.Fingerprint.RangeSet; | |
def jobName = "Monitors/Monitor-Wadlogs (DevTest)" | |
def buildRange = "123-2140" | |
def j = Jenkins.instance.getItemByFullName(jobName); | |
println j | |
def r = RangeSet.fromString(buildRange, true); | |
j.getBuilds(r).each { it.delete() } |
This file contains 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
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var notify = require("gulp-notify"); | |
var buffer = require('vinyl-buffer'); | |
var globby = require('globby'); | |
var source = require('vinyl-source-stream'); | |
var sourcemaps= require('gulp-sourcemaps'); |
This file contains 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
gfind -maxdepth 2 -name *.csproj |xargs grep -i "ProjectReference Include"| grep -Pino [a-zA-Z.]+\.csproj| awk -F: -f e:\depgraph.awk > graph.md | |
mermaid -p graph.md |
This file contains 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
// ==UserScript== | |
// @name BambooMamboo | |
// @namespace http://blog.rraghur.in | |
// @description make Bamboo web ui bearable | |
// @include https://acsbamboo.honeywell.com/* | |
// @version 1.0 | |
// ==/UserScript== | |
this.$ = this.jQuery = jQuery.noConflict(true); | |
var nodes = $("td.dashboard-operations") |
OlderNewer