Skip to content

Instantly share code, notes, and snippets.

View AdrianVollmer's full-sized avatar

Adrian Vollmer AdrianVollmer

View GitHub Profile
#!/bin/bash
# Podman runner for claude-code. Hint: Create alias for claude-code:
# alias claude="podman-claude-code.sh claude"
# Configuration
NODE_IMAGE="docker.io/library/node:slim"
DERIVED_IMAGE="localhost/claude-code:latest"
CONTAINER_NAME="podman-claude-code-runner"
NODE_HOME_ROOT="${HOME}/.local/share/podman-claude-code/root"
@AdrianVollmer
AdrianVollmer / cvss4.lua
Last active February 8, 2024 08:30
CVSSv4 Lua implementation
#!/usr/bin/env lua
-- This is a translation of https://github.com/RedHatProductSecurity/cvss/blob/master/cvss/cvss4.py
-- Translated by Adrian Vollmer, SySS GmbH, 2024
-- Copyright (c) 2023 FIRST.ORG, Inc., Red Hat, and contributors
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- 1. Redistributions of source code must retain the above copyright notice, this
-- list of conditions and the following disclaimer.
@AdrianVollmer
AdrianVollmer / posh-rc4.ps1
Created September 12, 2019 15:28
test powershell rc4
function RC4 {
param([Byte[]]$buffer)
$key = ([system.Text.Encoding]::UTF8).GetBytes("abcdefghjikjlmnopqrstuvwxyz")
$s = New-Object Byte[] 256;
$k = New-Object Byte[] 256;
for ($i = 0; $i -lt 256; $i++)
{
@AdrianVollmer
AdrianVollmer / test-rc4.rb
Created September 12, 2019 15:26
test rc4 ruby
# -*- coding: binary -*-
require 'digest'
class RC4
def initialize(str)
begin
raise SyntaxError, "RC4: Key supplied is blank" if str.eql?('')
@q1, @q2 = 0, 0
@key = []