Skip to content

Instantly share code, notes, and snippets.

@e-tobi
e-tobi / hook.py
Last active February 26, 2023 17:38
dehydrated hook for IONOS dns-01 challenge
#!/usr/bin/env python3
import requests
import sys
import logging
import os
#
# START of config-section - modify your needs!
#
@e-tobi
e-tobi / gist:5975288
Created July 11, 2013 13:06
Failing RavenDB Test
using Raven.Client.Embedded;
using Raven.Client.Indexes;
using Raven.Database.Extensions;
using Xunit;
namespace Raven.Tests.Bugs.Indexing
{
public class RestartingADocumentStore : RavenTest
{
public class Foo
@e-tobi
e-tobi / gist:5822466
Created June 20, 2013 13:01
RavenDB Streaming API OOME-issue
using System;
using System.IO;
using System.Linq;
using Raven.Abstractions.Data;
using Raven.Client.Embedded;
using Raven.Client.Indexes;
class Program
{
private static void Main(string[] args)
@e-tobi
e-tobi / gist:5290942
Created April 2, 2013 09:06
RavenDB "caching" not existing documents
using System.Linq;
using Raven.Client.Embedded;
using Raven.Database.Extensions;
namespace etobi.RavenDB2Test01
{
public class Program
{
private static EmbeddableDocumentStore _documentStore;
@e-tobi
e-tobi / StronglyTypedDocumentQueryExtensions.cs
Created May 10, 2012 11:26
type safe RavenDb Advanced.LuceneQuery
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Raven.Abstractions.Data;
namespace Raven.Client
{
public static class StronglyTypedDocumentQueryExtensions
{
...
DocumentStore = new EmbeddableDocumentStore
{
Configuration =
{
Catalog = { Catalogs = { new TypeCatalog(typeof(FixedPasswordAuthenticateClient)) } },
AuthenticationMode = "oauth",
OAuthTokenCertificate = CertGenerator.GenerateNewCertificate("MyApp"),