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
# Execution policy - https://technet.microsoft.com/en-us/library/ee176961.aspx | |
# Get PS Get (http://psget.net/) | |
(new-object Net.WebClient).DownloadString("http://psget.net/GetPsGet.ps1") | iex | |
import-module PsGet | |
# Usful modules | |
# http://psget.net/directory/Jump.Location/ | |
Install-Module Jump.Location |
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
/*** EXTENSTION METHODS START ***/ | |
public static T GetFirstDescendant<T>(this OpenXmlElement parent) where T : OpenXmlElement | |
{ | |
var descendants = parent.Descendants<T>(); | |
if (descendants != null) | |
return descendants.FirstOrDefault(); | |
else | |
return 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
{ | |
"Profiles": [ | |
{ | |
"Ansi 6 Color" : { | |
"Green Component" : 0.77254900000000004, | |
"Blue Component" : 0.99607840000000003, | |
"Red Component" : 0.77647060000000001 | |
}, | |
"Tags" : [ |
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
# Generated by Powerlevel10k configuration wizard on 2020-08-18 at 05:43 CEST. | |
# Based on romkatv/powerlevel10k/config/p10k-classic.zsh, checksum 46734. | |
# Wizard options: nerdfont-complete + powerline, small icons, classic, unicode, light, | |
# 24h time, vertical separators, sharp heads, flat tails, 1 line, compact, many icons, | |
# concise, instant_prompt=verbose. | |
# Type `p10k configure` to generate another config. | |
# | |
# Config for Powerlevel10k with classic powerline prompt style. Type `p10k configure` to generate | |
# your own config based on it. | |
# |
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 | |
# run sudo apt update or similar and feed the password for the rest to run smooth | |
# this is for the old bash based on ubuntu 14.04 | |
sudo apt update && sudo apt dist-upgrade -y | |
# Instlall NodeJS, Yarn and npm related dependencies | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list |
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
public class MaybeThreadSafeConsumer<TKey, TValue> : IMaybeThreadSafeConsumer<TKey, TValue> | |
{ | |
private static readonly TimeSpan DefaultLockTimeout = TimeSpan.FromSeconds(5); | |
private readonly CancellationTokenSource _cancellationTokenSource = new CancellationTokenSource(); | |
private readonly ReaderWriterLock _lock = new ReaderWriterLock(); | |
private readonly IConsumer<TKey, TValue> _internalConsumer; | |
private readonly ILogger<MaybeThreadSafeConsumer<TKey, TValue>> _logger; | |
private volatile bool _isActive = true; |
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
{ | |
"url": "https://www.example.com", | |
"expTimestamp": "2019-06-06T12:55:38Z" | |
} |
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
{ | |
"code": "AwesomeIntegration", | |
"label": " My Awesome Reservation Integration", | |
"iconSource": "https://www.example.com/awesomeicon.png", | |
"sourceUrl": "https://www.example.com/apaleo/reservations/integration?token=[GUID/JWT]", | |
"sourceType": "Private", | |
"propertyIds": [ | |
"AWE", | |
"SOME" | |
] |
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
{ | |
"url": "string", | |
"expTimestamp": "datetime" | |
} |
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
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. |
NewerOlder