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
os: Visual Studio 2017 | |
version: 1.0.{build} | |
branches: | |
only: | |
- master | |
configuration: | |
- Release |
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 Nancy; | |
using Nancy.Bootstrapper; | |
using Nancy.TinyIoc; | |
using Serilog; | |
using System.Diagnostics; | |
namespace MyApp.Bootstrappers | |
{ | |
public class Bootstrapper : DefaultNancyBootstrapper | |
{ |
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
version: '2' | |
services: | |
rancher-server: | |
image: rancher/server:stable | |
restart: unless-stopped | |
container_name: rancher-server | |
volumes_from: | |
- mysql | |
environment: | |
- CATTLE_DB_CATTLE_MYSQL_NAME=cattle |
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
#!/bin/sh | |
docker run --name splunk --hostname splunk -p 8000:8000 -p 8088:8088 -p 10000:10000 -d -e "SPLUNK_START_ARGS=--accept-license --answer-yes --seed-passwd {YOUR_PASSWORD}" -e "OPTIMISTIC_ABOUT_FILE_LOCKING=1" splunk/splunk |
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
FROM alpine | |
# Install dependencies | |
RUN apk update && apk upgrade \ | |
&& apk add --update nodejs nodejs-npm \ | |
&& npm install -g npm | |
# Create hubot user | |
RUN adduser -h /hubot -s /bin/bash -S hubot | |
USER hubot |
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 Microsoft.Azure.Services.AppAuthentication; | |
using System.Data.SqlClient; | |
namespace MyApp.Infrastructure.EntityFramework | |
{ | |
public class MyDbContext : DbContext | |
{ | |
public MyDbContext() | |
{ | |
var conn = (SqlConnection)this.Database.GetDbConnection(); |
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
appcmd list site /config /xml > c:\sites.xml |
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
%windir%\system32\inetsrv\appcmd add site /in < c:\sites.xml |
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.Threading; | |
static class Program { | |
static void Main() { | |
Console.Write("Performing some task... "); | |
using (var progress = new ProgressBar()) { | |
for (int i = 0; i <= 100; i++) { | |
progress.Report((double) i / 100); |
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
#!/bin/bash | |
#requires jq -> http://stedolan.github.io/jq/ | |
#optional change working_dir | |
working_dir=${1-$(pwd)} | |
cd $working_dir | |
user="YOUR_USER" | |
token="YOUR_GH_TOKEN" | |
organization="YOUR_ORGANIZATION" |
OlderNewer