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
module App | |
open Fable.React | |
open Fable.React.Props | |
type Model = {Count: int} | |
type Msg = Incr | Decr | |
let init () = | |
{Count = 0} |
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
import asyncio | |
from contextlib import asynccontextmanager, AsyncExitStack | |
import typing as t | |
ContextList = t.List[t.AsyncContextManager] | |
@asynccontextmanager | |
async def ctx(name): | |
try: | |
print(f"{name} before") |
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
# Basic setup with traefik | |
# | |
# To use: | |
# create network (docker network create traefik) | |
# change email (certificatesresolvers.myresolver.acme.email) | |
# Create new services which | |
# - configures. | |
version: "3.3" | |
services: |
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
#lang racket | |
(require racket/tcp) | |
(struct server | |
(custodian | |
client-handler | |
[listener #:mutable] | |
client-threads | |
[main-thread #:mutable]) | |
#:transparent) |
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
pseud@pseudotop:~/GolandProjects/daemonload$ make build && time ./spammer -e localhost:11776 -p tcp spam -j 3 -s 180 --d 0 | |
go build ./cmd/echosrv | |
go build ./cmd/spammer | |
Job Params | |
=========== | |
Jobs: 3 | |
Duration: 180s | |
Delay: 0msecs | |
Protocol: tcp | |
Endpoint: localhost:11776 |
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
{ stdenv, coreutils, gcc }: | |
stdenv.mkDerivation { | |
name = "hello"; | |
# Source Code | |
# See: https://nixos.org/nixpkgs/manual/#ssec-unpack-phase | |
src = ./src; | |
# Dependencies | |
# See: https://nixos.org/nixpkgs/manual/#ssec-stdenv-dependencies |
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
{ python3Packages | |
, python-libclang | |
, fetchFromGitHub | |
, libclang | |
, lib | |
, clang | |
, glibc | |
}: | |
let | |
buildPythonPackage = python3Packages.buildPythonPackage; |
OlderNewer