Skip to content

Instantly share code, notes, and snippets.

@lajosbencz
lajosbencz / README.md
Last active April 1, 2026 13:34
Vortigaunt (Half-Life) themed buddy for Claude Code, powered by any-buddy

any-buddy-vortigaunt

"We serve the same mystery."

A Vortigaunt themed buddy for Claude Code, powered by any-buddy.

Your buddy becomes a Vortigaunt elder who speaks in third person, references the vortessence, and delivers cryptic wisdom about your code with the gravity of an interdimensional being.

 ( )
@lajosbencz
lajosbencz / README.md
Last active March 22, 2026 17:25
Claude statusline with configurable components

claude-statusline

A live statusline for Claude Code that displays real-time environment info.

Fully customizable via environment variables — pick the components you want, change symbols and widths, or rearrange the layout.

Provides

Name Type Description
@lajosbencz
lajosbencz / go-librdkafka.Dockerfile
Last active November 7, 2023 23:25
Go - Minimal Docker image with librdkafka dependency
ARG USER=nobody
# build image
FROM golang:1.21-alpine AS builder
ENV PATH="/go/bin:${PATH}"
ENV CGO_ENABLED=1
ENV GOOS=linux
ENV GOARCH=amd64
@lajosbencz
lajosbencz / graceful_shutdown_with_channels.go
Created November 7, 2023 22:01
Go - Graceful shutdown of goroutines with channel signaling
package main
import (
"fmt"
"os"
"os/signal"
"sync"
"syscall"
"time"
)
@lajosbencz
lajosbencz / disable-snapd.sh
Last active December 18, 2021 15:42
Ubuntu 20 disable snapd
#!/bin/bash
systemctl stop snapd && systemctl disable snapd && systemctl mask snapd && \
apt purge snapd -y && \
rm -fr ~/snap /snap /var/snap /var/lib/snapd /var/cache/snapd /usr/lib/snapd
@lajosbencz
lajosbencz / create-swap.sh
Created December 18, 2021 15:28
Ubuntu 20 create swap space on disk
#!/bin/bash
SIZE="$1"
FILE="/var/swap.img"
SWPS=10
CHPR=50
if [ -z "$SIZE" ]; then
echo "first argument must be size (fallocate -l)"
exit
@lajosbencz
lajosbencz / gitpub.php
Last active November 7, 2018 11:15
Script for bumping semantic versioned packages to git remote
<?php
/**
* Script for bumping semantic versioned packages to git remote
*
* @version 0.1.0
* @author Lajos Bencz <lazos@lazos.me>
* @license MIT
*/
if (!is_dir('.git')) {
use Phalcon\Session\AdapterInterface;
use Phalcon\Cache\Backend\Redis as RedisCache;
use Phalcon\Cache\Frontend\None as FrontendNone;
class Redis implements \SessionHandlerInterface, AdapterInterface
{
const SESSION_ACTIVE = 2;
const SESSION_NONE = 1;
@lajosbencz
lajosbencz / amdgpu-pro-wizard.sh
Created September 19, 2017 13:07
Downloads and installs latest AMDGPU-PRO drivers from the official AMD website
#!/bin/bash
# amdgpu-pro-wizard.sh
# Downloads and installs latest AMDGPU-PRO drivers from the official AMD website
URL="http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Driver-for-Linux-Release-Notes.aspx"
DIR="/tmp/.amdgpu-pro-install-9811a15y85p71m/"
HTML="list.html"
PAT="www2.ati.com/drivers/linux"
REF="http://support.amd.com"
@lajosbencz
lajosbencz / ProgressBar.php
Created May 1, 2016 21:58
Multi-line progress bar for terminal
<?php
class ProgressBar
{
const NL = PHP_EOL;
/** Pattern used to match placeholders in message formats */
const PATTERN_FORMAT = "/%(?'name'[^\\s%:]+)(:(?'format'[^%]+))?%/";
/** Default format for progress update message */