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
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
:: Deployment | |
:: ---------- | |
:Deployment | |
echo Handling node.js grunt deployment. | |
:: 1. Select node version | |
call :SelectNodeVersion |
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
// ### Production | |
// When running Ghost in the wild, use the production environment | |
// Configure your URL and mail settings here | |
production: { | |
url: 'http://WEBSITENAME.azurewebsites.net', | |
mail: { | |
transport: 'SMTP', | |
options: { | |
host: 'smtp.sendgrid.net', | |
port: 587, |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<startup> | |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | |
</startup> | |
<system.diagnostics> | |
<sources> | |
<source name="MyCompany.Application" switchValue="All"> | |
<listeners> | |
<add initializeData="output.txt" type="LoggingTesting.SimpleTraceListener, LoggingTesting, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" |
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
using System; | |
using System.Collections; | |
using System.Diagnostics; | |
using System.Globalization; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
using System.Security.Permissions; | |
namespace LoggingTesting | |
{ |
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
#!/usr/bin/env ruby | |
# coding: utf-8 | |
require 'rb-inotify' | |
CLEAR = "\n----\n" | |
YELLOW, BLUE, GREY, HIGHLIGHT = '0;33', '0;34', '0;90', '1;30;47' | |
SHORTEST_MESSAGE = 12 | |
LOG_CMD = %{git log --all --date-order --graph --color --pretty="format: \2%h\3\2%d\3\2 %an, %ar\3\2 %s\3"} | |
LOG_REGEX = /(.*)\u0002(.*)\u0003\u0002(.*)\u0003\u0002(.*)\u0003\u0002(.*)\u0003/ |
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
sudo tcpdump -s 0 -A 'tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x47455420' |
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
def sampleSpecCSV = '''field name, description, units, range | |
Item1, The first item, feet, 100..200 | |
Item2, The second item, meters, 1000.000..2000.000 | |
Item3, Enumeration field, enum, MANUAL:AUTOMATIC | |
Item4, Some string, string(10), | |
''' | |
def fieldMappingCSV = '''field name, path, units, enum mapping | |
Item1, field1, feet, | |
Item2, nested1.field1, feet, |
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
#!/usr/bin/python | |
import sys, getopt, time, re, random, os, socket | |
int_len = len(str(0xFFFFFFFFFFFFFFFF)) | |
def run_client(host, port): | |
count = 0 | |
order = 0 | |
dropped = 0 |
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
const MAX_RETRIES = 3 | |
const retryExpired = (context, event) => context.retries >= MAX_RETRIES | |
const passthroughMachine = Machine({ | |
id: 'passthrough', | |
initial: 'send_request', | |
context: { | |
retries: 0 | |
}, | |
states: { |
OlderNewer