Skip to content

Instantly share code, notes, and snippets.

@ChristianSch
ChristianSch / bellman_ford.go
Created March 9, 2024 08:14 — forked from ewancook/bellman_ford.go
Arbitrage with Bellman Ford
package bellmanford
import (
"math"
)
// Graph represents a graph consisting of edges and vertices
type Graph struct {
edges []*Edge
vertices []uint
// Package go-lufthansa provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
package go-lufthansa
import (
"bytes"
"compress/gzip"
"context"
"encoding/base64"
@ChristianSch
ChristianSch / maderas.txt
Created January 14, 2024 16:26 — forked from heywoodlh/maderas.txt
Clone of the arsenal, armory & library by Maderas (@hackermaderas) -- https://pastebin.com/v8Mr2k95
The arsenal, armory & library by Maderas (@hackermaderas, #CyberpunkisNow) 6/8/2019
Original / 1st version here: https://pastebin.com/rMw4WbhX
___________________________________________________________________________________
# Basic knowledge requirements for Red Teaming, PenTesting, Hacking & Cybersecurity
# These are the basic competencies expected (and tested for during the in-person technical interview) by one of the largest, most visible InfoSec companies # on Earth.
@ChristianSch
ChristianSch / dailyNoteTemplate.txt
Created July 3, 2023 08:24 — forked from bennewton999/dailyNoteTemplate.txt
My current Daily Note Template in Obsidian utilizing Templater and DataView Plugins
---
creation date: <% tp.file.creation_date() %>
tags: DailyNote <% tp.file.title.split('-')[0] %>
---
modification date: <%+ tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm:ss") %> // This doesn't currently work in front matter, hoping that gets fixed.
# <% tp.file.title %>
<< [[<% tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>]] | [[<% tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>]]>>
import {
Namespace,
Context,
} from "@ory/permission-namespace-types";
class User implements Namespace {}
class Workspace implements Namespace {
related: {
owners: User[];
@ChristianSch
ChristianSch / hide-emails.html
Created June 15, 2023 20:42
hiding emails with alpine.js
<span x-data="{'contact': 'foo' + '@' + 'bar.com','contactMail':'mailto:foo' + '@' + 'bar.com'}">
<a x-bind:href="contactMail">
<span x-text="contact"></span>
</a>
</span>
@ChristianSch
ChristianSch / MailhogContainer.kt
Created May 24, 2023 14:53 — forked from xhanin/MailhogContainer.kt
A simple Kotlin Mailhog Test Container - allow to use mailhog to test sending emails with a real smtp server
package mailhog
/*
dependencies:
testImplementation("org.testcontainers:testcontainers:1.15.2")
testImplementation(platform("org.http4k:http4k-bom:4.3.5.4"))
testImplementation("org.http4k:http4k-core")
testImplementation("org.http4k:http4k-client-apache") {
because("mailhog http api messages access")
@ChristianSch
ChristianSch / Generate Tags.md
Created April 29, 2023 15:48
Generate Tags (Obsidian Text Generator Prompt)

PromptInfo: promptId: tagNote name: ✍️ Generate tags for a note description: Generate tags for a note. required_values: author: ChristianSch tags: writing version: 0.0.1

@ChristianSch
ChristianSch / main.go
Created April 24, 2023 19:40
main.go to test openAI chat generation with langchaingo
package main
import (
"fmt"
"log"
"github.com/tmc/langchaingo/chatmodels/openai"
"github.com/tmc/langchaingo/exp/chains"
"github.com/tmc/langchaingo/exp/prompts"
)
@ChristianSch
ChristianSch / gitea-action-runner.log
Created March 3, 2023 21:55
gitea action runner env log
INFO[2023-03-03T22:49:32+01:00] plan: [Explore-Gitea-Actions]
INFO[2023-03-03T22:49:32+01:00] task 17 repo is foobar/test https://codeberg.org http://192.168.178.70:3000
INFO[2023-03-03T22:49:32+01:00] workflow prepared buildID=17
[Gitea Actions Demo/Explore-Gitea-Actions] [DEBUG] evaluating expression 'success()'
[Gitea Actions Demo/Explore-Gitea-Actions] [DEBUG] expression 'success()' evaluated to 'true'
[Gitea Actions Demo/Explore-Gitea-Actions] 🚀 Start image=node:16-bullseye
[Gitea Actions Demo/Explore-Gitea-Actions] 🐳 docker pull image=node:16-bullseye platform= username= forcePull=false
[Gitea Actions Demo/Explore-Gitea-Actions] [DEBUG] 🐳 docker pull node:16-bullseye
[Gitea Actions Demo/Explore-Gitea-Actions] [DEBUG] Image exists? true
[Gitea Actions Demo/Explore-Gitea-Actions] 🐳 docker create image=node:16-bullseye platform= entrypoint=["/bin/sleep" "3600"] cmd=[]