I hereby claim:
- I am andypook on github.
- I am andypook (https://keybase.io/andypook) on keybase.
- I have a public key ASDTiKH0PWmgycLyEv9erqHBwKrpqc9ap3OAUUKSmbdzRgo
To claim this, I am signing this object:
| FROM debian:stretch-slim | |
| # Install system components | |
| RUN apt-get update | |
| RUN apt-get install -y curl apt-transport-https dirmngr gnupg ca-certificates unzip | |
| RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | |
| # Import the public repository GPG keys | |
| RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - |
I hereby claim:
To claim this, I am signing this object:
| Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableOpenFileExplorerToQuickAccess -EnableShowRecentFilesInQuickAccess -EnableShowFrequentFoldersInQuickAccess -EnableExpandToOpenFolder | |
| Enable-RemoteDesktop | |
| Update-ExecutionPolicy Unrestricted -Force | |
| Disable-InternetExplorerESC | |
| Disable-BingSearch | |
| cinst chocolatey | |
| cinst Boxstarter |
| [Serializable] | |
| [TypeConverter(typeof(ElasticObjectTypeConverter))] | |
| [TypeDescriptionProvider(typeof(ElasticObjectTypeDescriptionProvider))] | |
| public sealed class ElasticObject : DynamicObject, IDictionary<String, Object>, ICloneable, INotifyPropertyChanged | |
| { | |
| private static readonly String [] SpecialKeys = new String[] { "$Path", "$Parent", "$Root", "$Value", "$Type" }; | |
| private readonly IDictionary<String, Object> values = new Dictionary<String, Object>(); | |
| private Object value; | |
| private ElasticObject parent; | |
| /// <summary> | |
| /// Parses a full product version string into component parts | |
| /// </summary> | |
| public sealed class SemVer : IComparable<SemVer> | |
| { | |
| public static readonly SemVer Null = new SemVer((string)null); | |
| public static SemVer GetFromPath(string path) | |
| { | |
| if (!File.Exists(path)) |
| # Set environment variables for Visual Studio Command Prompt | |
| # Based on: http://stackoverflow.com/questions/2124753/how-i-can-use-powershell-with-the-visual-studio-2010-command-prompt | |
| $version=14 | |
| pushd "c:\Program Files (x86)\Microsoft Visual Studio ${version}.0\Common7\Tools" | |
| cmd /c "vsvars32.bat&set" | | |
| foreach { | |
| if ($_ -match "=") { | |
| $v = $_.split("=") | |
| set-item -force -path "ENV:\$($v[0])" -value "$($v[1])" | |
| } |
| # get indexes in "logstash" alias | |
| $indexes = Invoke-RestMethod "http://eshost:9200/logstash/_settings" | |
| # get the names of the indexes | |
| $indexNames = Get-Member -InputObject $indexes -MemberType NoteProperty|%{$_.Name} | |
| # foreach index check its age. If over 10 days, delete it | |
| # "Substring(9)" returns the date part of "logstash-yyyy-mm-dd" | |
| $indexNames|sort |%{ | |
| $datePart = $_.Substring(9) |
| public static class Arrays | |
| { | |
| public static T[] Empty<T>() { return EmptyArray<T>.Instance; } | |
| } | |
| public static class EmptyArray<T> | |
| { | |
| public static readonly T[] Instance = new T[0]; | |
| } |
| public class QueueHandler<T> | |
| { | |
| public static QueueHandler<T> Start(Action<T> handler, CancellationToken? token = null, ParallelOptions options = null) | |
| { | |
| var q = new QueueHandler<T>(handler, token, options); | |
| q.Start(); | |
| return q; | |
| } | |
| public QueueHandler(Action<T> handler, CancellationToken? token = null, ParallelOptions options = null) |