I hereby claim:
- I am ostcar on github.
- I am ostcar (https://keybase.io/ostcar) on keybase.
- I have a public key ASCTQlqdzbn1FxrCM8hmPe1KsjR1IcTcj0V0y3Cofv9qogo
To claim this, I am signing this object:
const std = @import("std"); | |
const CrossTarget = std.zig.CrossTarget; | |
const OptimizeMode = std.builtin.OptimizeMode; | |
const LazyPath = std.Build.LazyPath; | |
const Compile = std.Build.Step.Compile; | |
pub fn build(b: *std.Build) void { | |
const target = b.standardTargetOptions(.{}); | |
const optimize = b.standardOptimizeOption(.{}); |
package main | |
import ( | |
"context" | |
_ "embed" | |
"fmt" | |
"log" | |
"os" | |
"github.com/tetratelabs/wazero" |
// From https://github.com/dustin/go-humanize | |
func intToByte(s uint64) string { | |
sizes := []string{"B", "kB", "MB", "GB", "TB", "PB", "EB"} | |
base := 1000.0 | |
logn := func(n, b float64) float64 { | |
return math.Log(n) / math.Log(b) | |
} | |
if s < 10 { |
package main | |
import ( | |
"bytes" | |
"encoding/binary" | |
"encoding/json" | |
"fmt" | |
"io" | |
"strconv" | |
"time" |
from collections import UserDict | |
from typing import Any, Dict, Generator, Tuple, Union | |
ElementID = Tuple[str, int] | |
Element = Dict[str, Any] | |
CollectionType = Union[Dict[int, Element], "Collection"] | |
class AllData(UserDict): | |
def __init__(self, initialdata: Dict[str, CollectionType]) -> None: |
#!/usr/bin/env python | |
import asyncio | |
import functools | |
from datetime import datetime, timedelta | |
import websockets | |
WEBSOCKET_URI = 'ws://localhost:8000/ws/projector/1/' | |
CONNECTION_COUNT = 500 |
I hereby claim:
To claim this, I am signing this object:
--- | |
- hosts: openslides | |
become: yes | |
vars: | |
settings_path: /etc/openslides | |
user_data_path: /usr/local/lib/openslides | |
secure_key: 'MakeMeRANDOM' | |
domain: openslides.oshahn.de |
--- | |
# This script excepts an up to date archlinux system with installed python2, | |
# openssh and sudo and a user account with sudo permissions you can connect | |
# to. | |
- hosts: openslides | |
tasks: | |
- name: Install required packages and update package cache | |
pacman: | |
name: "{{ item }}" |
--- | |
- hosts: inyoka_dev | |
tasks: | |
- name: enable network | |
service: | |
name: "{{ item }}" | |
state: started | |
enabled: yes | |
with_items: |