Skip to content

Instantly share code, notes, and snippets.

@Lougarou
Lougarou / esdb_exploration.ipynb
Last active April 2, 2023 13:43
Exploring data in EventStoreDB with Polyglot notebooks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Lougarou
Lougarou / gist:b061cd4d5e0be48e9342f003ca032ff2
Last active March 17, 2023 14:47
Projections training example
//Settings
options({
// resultStreamName: "fruit_state_name",
$includeLinks: false,
reorderEvents: false, //important when reading from multipe streams
processingLag: 0
})
fromStream('fruits')
.partitionBy(
import asyncio
import logging
import fire
logging.basicConfig(level=logging.INFO,
format='%(asctime)s %(levelname)-8s %(message)s',
filename='honeypot.log',
filemode='a')
async def smiley_protocol(reader, writer):
import akka.actor.*;
import akka.event.Logging;
import akka.event.LoggingAdapter;
import akka.util.ByteString;
import eventstore.*;
import eventstore.j.*;
import eventstore.tcp.ConnectionActor;
import java.util.UUID;
import svn.remote
import os
outputFolder = "repo"
if not os.path.exists(outputFolder):
os.makedirs(outputFolder)
ignoreDirectory = ["trunk/downloads"]
ignoreFile = ["*"];
githubUrl = "https://github.com/Lougarou/backtestfbprophet"
mkdir steamcmd
cd steamcmd
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_osx.tar.gz" | tar zxvf -
./steamcmd.sh +@sSteamCmdForcePlatformType windows +login anonymous +force_install_dir csgo_ds +app_update 740 validate +quit
mkdir steamcmd
cd steamcmd
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_osx.tar.gz" | tar zxvf -
./steamcmd.sh +@sSteamCmdForcePlatformType windows +login username password +force_install_dir csgo_ds +app_update 740 validate +quit
using System;
using NLog;
using NLog.Targets;
using NLog.Config;
using Serilog;
using Serilog.Sinks.File;
namespace logspeedtest
{
//nlog 4.5.6
//serilog 2.7.1
query {
repository(owner:"flutter", name:"flutter") {
pullRequests(last: 50, states:MERGED) {
edges {
node {
title
url
createdAt
bodyHTML
number
package main
import (
"context"
"fmt"
"github.com/shurcooL/githubql"
"golang.org/x/oauth2"
)