Skip to content

Instantly share code, notes, and snippets.

TOP8fcfc9a3 START
TOP8fcfc9a3 attack_mode 3
TOP8fcfc9a3 benchmark 0
TOP8fcfc9a3 benchmark_mode 1
TOP8fcfc9a3 bitmap_max 24
TOP8fcfc9a3 debug_mode 0
TOP8fcfc9a3 eula 0
TOP8fcfc9a3 force 0
TOP8fcfc9a3 gpu_accel 0
TOP8fcfc9a3 gpu_async 0
#!/usr/bin/perl
use strict;
use warnings;
use GD::Simple;
# create a new image (width, height)
my $width = 80;
my $height = 45;
my $img = GD::Simple->new($width, $height);
@vaskozl
vaskozl / gist:7c46bbcfd459bdff25be68e5f74fb873
Created June 21, 2021 22:29
Run x86 images on raspberry pi
ctr i pull docker.io/aptman/qus:latest && \
ctr run --rm --privileged docker.io/aptman/qus:latest qus /qus/register -s -- -p x86_64
@vaskozl
vaskozl / nsenter-talos.sh
Created April 30, 2024 22:12
Talos Root Shell for debugging
#!/bin/sh
set -x
node=${1}
#nodeName=$(kubectl get node ${node} -o template --template='{{index .metadata.labels "kubernetes.io/hostname"}}')
nodeSelector='"nodeSelector": { "kubernetes.io/hostname": "'${node:?}'" },'
podName=${USER}-nsenter-${node}
kubectl -n kube-system run ${podName:?} --restart=Never -it --rm --image overriden --overrides '
{
"spec": {
@vaskozl
vaskozl / htmz.html
Created November 6, 2024 18:16
htmz URL history support + innerHTML
<script>
function htmz(frame) {
// ----------------------------------------------------------------------
// History + innerHTML
// ----------------------------------------------------------------------
setTimeout(() => {
const el = document .querySelector(frame.contentWindow.location.hash || null)
el.innerHTML = frame.contentDocument.body.innerHTML;