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 | |
# This way you can customize which branches should be skipped when | |
# prepending commit message. | |
if [ -z "$BRANCHES_TO_SKIP" ]; then | |
BRANCHES_TO_SKIP=(master develop test) | |
fi | |
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD 2> /dev/null | grep -oE "[A-Z]+-[0-9]+") | |
if [ -n "$BRANCH_NAME" ]; then |
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
docker run -p 9200:9200 -e "xpack.security.enabled=false" -e "http.host=0.0.0.0" -e "transport.host=127.0.0.1" --name elasticsearch --restart always docker.elastic.co/elasticsearch/elasticsearch:5.4.2 |
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
function openFirstSlnFile() { | |
& ".\\$(dir *.sln | select -first 1 -expand Name)" | |
} | |
Set-Item -Path alias:vs -value openFirstSlnFile |
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> | |
<add key="Password" value="ThisIsNotARealPassword" /> | |
<add key="PublicKey" value="PgpPublicKey.asc" /> | |
<add key="PrivateKeyOnly" value="PgpPrivateKeyOnly.asc" /> | |
</configuration> |
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
#Auth to your azure account | |
Add-AzureAccount | |
Import-Module 'C:\Program Files (x86)\code4ward.net\Royal TS V3\RoyalDocument.PowerShell.dll' -Force | |
function CreateRoyalFolderHierarchy() | |
{ | |
param( | |
[string]$folderStructure, | |
[string]$splitter, |
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
## Octopus Azure Context script, version 1.0 | |
## -------------------------------------------------------------------------------------- | |
## | |
## This script is used to load the Azure Powershell module and select the Azure subscription | |
## | |
## The sript is passed the following parameters. | |
## | |
## $OctopusAzureModulePath = "....\Calamari\AzurePowershell\Azure.psd1" | |
## $OctopusAzureCertificateFileName = "...." | |
## $OctopusAzureCertificatePassword = "...." |
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
#Make sure 7za is installed | |
choco install 7zip.commandline | |
# Create mongodb and data directory | |
md $env:temp\mongo\data | |
# Go to mongodb dir | |
Push-Location $env:temp\mongo | |
# Download zipped mongodb binaries to mongodbdir |
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 tooltips = document.querySelectorAll("[id$='Tooltip']"); | |
for(var i = 0; i < tooltips.length; i++) { | |
tooltips[i].style.position = "inherit"; | |
tooltips[i].style.display = "inherit"; | |
} |
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.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using MongoDB.Bson; | |
using MongoDB.Driver; | |
using MongoDB.Driver.Builders; |