I hereby claim:
- I am brendanthompson on github.
- I am bthompson (https://keybase.io/bthompson) on keybase.
- I have a public key whose fingerprint is B660 1042 6D52 0F61 ED34 742E 8D37 2514 5E87 1BD7
To claim this, I am signing this object:
// This validation is used inside an ASP.net WebForms application. | |
function dateValidation(source, args) { | |
var today = new Date(); | |
var parsedInputDate = new Date(args.Value.replace(/(\d{2})\/(\d{2})\/(\d{4})/, '$3-$2-$1')); // This assumes the splitting of date parts on the input is a "/" | |
function stripTime(inputDate) { | |
var strippedInputDate = new Date(inputDate.getFullYear(), inputDate.getMonth() + 1, inputDate.getDate()); // Require to add one to the month as in JavaScript January is month 0 | |
return strippedInputDate; | |
} |
i=0; cut -d '/' -f $(( $i + $(grep -o '/' <<< $FILE | grep -c .) )) <<< $FILE |
#!/usr/bin/env bash | |
MONO=$(command -v mono) | |
SCRIPTCS="/usr/local/etc/scriptcs/scriptcs.exe" ## Later will get it to pull and extract here | |
COMMAND="" | |
case $1 in | |
"-repl" ) | |
COMMAND="$MONO $SCRIPTCS -modules mono -repl" | |
$COMMAND |
#!/usr/bin/env bash | |
OS="" | |
if [[ -n $(command -v brew) ]]; then | |
OS="OSX" | |
elif [[ -n $(command -v yum) ]]; then | |
OS="RH" | |
elif [[ -n $(command -v apt-get) ]]; then | |
OS="DEB" |
#!/bin/sh | |
# add a simple 'nuget' command to Mac OS X under Mono | |
# get NuGet.exe binary from http://nuget.codeplex.com/releases/view/58939 | |
# get Microsoft.Build.dll from a Windows .NET 4.0 installation | |
# copy to /usr/local/bin and Robert is your father's brother.... | |
# | |
PATH=/usr/local/bin:$PATH | |
mono --runtime=v4.0 /usr/local/bin/NuGet.exe $* |
I hereby claim:
To claim this, I am signing this object:
#Test
This is just a test to see how the gist stuff works from ST3
{ | |
"template": "logstash*", | |
"settings": { | |
"index.analysis.analyzer.default.stopwords": "_none_", | |
"index.number_of_replicas": "1", | |
"index.query.default_field": "message", | |
"index.refresh_interval": "5s", | |
"index.number_of_shards": "4", | |
"index.store.compress.stored": "true", | |
"index.analysis.analyzer.default.type": "standard", |
env t='() { :;}; echo You are vulnerable.' bash -c "true" |
function compareHost() { | |
param | |
( | |
[Parameter(Mandatory=$true)] | |
[string] $firstHost, | |
[Parameter(Mandatory=$true)] | |
[string] $secondHost | |
) | |
if($((Test-Connection $firstHost -Count 1).IPV4Address.IPAddressToString) -eq $((Test-Connection $secondHost -Count 1).IPV4Address.IPAddressToString)) { |