Skip to content

Instantly share code, notes, and snippets.

Avatar

Martin Smith martinsmith1968

View GitHub Profile
View SetDarkMode.cmd
curl -X POST -d @darkmode.json -H "kbn-xsrf: 123" -H "Content-Type: application/json" localhost:5601/api/kibana/settings/theme:darkMode
@martinsmith1968
martinsmith1968 / docker-compose.yml
Last active Oct 25, 2020
Docker Compose file for ElasticSearch 7.9.3 with Kibana 7.9.3
View docker-compose.yml
version: '2.2'
# Docker compose fiel for ElasticSearch 7.9.3 with Kibana 7.9.3
# Based on: https://www.elastic.co/guide/en/elastic-stack-get-started/current/get-started-docker.html
services:
elasticsearch793:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.3
container_name: elasticsearch793
@martinsmith1968
martinsmith1968 / ExtendedMemoryConfigurationProvider.cs
Last active Jun 29, 2020
Convenient IConfiguration for Testing
View ExtendedMemoryConfigurationProvider.cs
namespace DNX.ExtendedMemoryConfiguration
{
public class ExtendedMemoryConfigurationSource : IConfigurationSource
{
/// <summary>
/// The initial key value configuration pairs.
/// </summary>
public IDictionary<string, string> Data { get; set; }
/// <summary>
@martinsmith1968
martinsmith1968 / SequenceNumbers.sql
Created Apr 30, 2020
SQL Server Manual Sequence Numbers
View SequenceNumbers.sql
-- DROP TABLE [SequenceNumbers]
IF OBJECT_ID('SequenceNumbers', 'U') IS NULL BEGIN
CREATE TABLE [SequenceNumbers]
(
[Name] SYSNAME PRIMARY KEY,
[Start] INT NOT NULL DEFAULT 0,
[Increment] INT NOT NULL DEFAULT 1,
[Current] INT NOT NULL,
@martinsmith1968
martinsmith1968 / xd2md.cs
Created Nov 16, 2016 — forked from formix/xd2md.cs
Generates Markdown From VisualSturio XML documentation files
View xd2md.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Linq;
namespace Formix.Utils
{
class Program