This file contains hidden or 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
#!/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" |
This file contains hidden or 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
#!/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. |
This file contains hidden or 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
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++) | |
{ |
This file contains hidden or 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
# -*- 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 = [] |