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; |
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
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
#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
# 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
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
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
module App | |
open Fable.React | |
open Fable.React.Props | |
open Elmish | |
open Elmish.React | |
open Elmish.Navigation | |
type Route = |
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
;;; -*- lexical-binding: t; -*- | |
(require 'cl-lib) | |
;; lexical binding makes it possible to write functions which return closures | |
;; that behave as expected (e.g. capture their local environment) | |
;; cl-lib is the newer, recommended way to tap into the large subset of | |
;; common lisp functions/macros |
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
version: "3.3" | |
services: | |
gitlab: | |
image: 'gitlab/gitlab-ce:9.5.2-ce.0' | |
restart: always | |
hostname: 'git.example.com' | |
links: | |
- postgresql:postgresql |
NewerOlder