Skip to content

Instantly share code, notes, and snippets.

View valkum's full-sized avatar

Rudi Floren valkum

View GitHub Profile
{
"data": [
{
"traceID": "0009789a5dd569284331e2e2b3e7e1df",
"spans": [
{
"traceID": "0009789a5dd569284331e2e2b3e7e1df",
"spanID": "a234e6b4937ff077",
"operationName": "http_request",
"references": [
@valkum
valkum / README.md
Last active April 15, 2021 11:57
Create a local CA that is valid for Browsers using OpenSSL

Create a local CA using OpenSSL

The created CA will be valid for most browsers (if present in your local trust store) and should be accepted by zlint.

Steps

1. Config

Save the ssl.conf somewhere Replace the values in the req_distinguished_name part with your desired values.

2. Create key and cert

Call openssl: (Set -config ssl.conf, -key ca.key, and -out ca.crt to appropiate values)

@valkum
valkum / Pipeline.yaml
Last active May 7, 2020 20:33
build sytest
steps:
- label: "Build SyTest container"
command:
- docker build -f docker/base.Dockerfile -t "docker.pkg.github.com/valkum/valkum/sytest:latest" .
- docker push "docker.pkg.github.com/$GITHUB_REPOSITORY/sytest:latest
- docker build -f docker/conduit.Dockerfile -t "docker.pkg.github.com/valkum/valkum/sytest-conduit:latest" .
- docker push "docker.pkg.github.com/$GITHUB_REPOSITORY/sytest-conduit:latest
plugins:
- docker-login#v2.0.1:
username: valkum
steps:
- label: "SyTest - :rust: nightly / :sled:"
command:
- "bash /bootstrap.sh conduit"
plugins:
- docker#v3.0.1:
image: "valkum/sytest-conduit:latest"
propagate-environment: true
always-pull: true
workdir: "/src"
@valkum
valkum / check_signature.py
Created April 23, 2020 11:27
check_signature update for v2 keys and python3
import argparse
import json
import logging
import sys
import urllib
import dns.resolver
from signedjson.key import (
decode_verify_key_bytes,
encode_verify_key_base64,
fn main() {
Application::from_name("OrbTK-Chat")
.window(|ctx| {
Window::create()
.title("OrbTK Chat Wireframe")
.size(900.0, 600.0)
.resizeable(true)
.borderless(true)
.theme(get_theme())
.child(
@valkum
valkum / test.rs
Created January 6, 2020 17:24
unresponsive window on macos catalina
use orbtk::prelude::*;
fn main() {
Application::from_name("Ironix")
.window(|ctx| {
Window::create()
.title("Buggy")
.size(400.0, 400.0)
.child(
Grid::create()
.columns(
..in on_start
world.exec(
|(loader, mut scene, mut scene_map): (PrefabLoader<'_, ScenePrefabData>, Write<'_, Scene>, Write<'_, SceneMap>)| {
scene_map.insert(0,
loader.load(
Path::new("prefab")
.join("lightroom_0.ron")
.to_string_lossy(),
RonFormat,
self.progress.as_mut().unwrap(),
@valkum
valkum / 01_working_debug_lines.vert.spvasm
Last active May 19, 2019 18:31
Working version is using
; SPIR-V
; Version: 1.0
; Generator: Google Shaderc over Glslang; 7
; Bound: 197
; Schema: 0
OpCapability Shader
%2 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %main "main" %gl_VertexIndex %vertex %color_a %color_b %position_a %position_b %__0
%1 = OpString "shaders/vertex/debug_lines.vert"

Keybase proof

I hereby claim:

  • I am valkum on github.
  • I am valkum (https://keybase.io/valkum) on keybase.
  • I have a public key whose fingerprint is 69C6 B4C0 091A A914 24DE 9DE2 2E2A 7796 7C54 47BD

To claim this, I am signing this object: