Skip to content

Instantly share code, notes, and snippets.

@budnik
budnik / report.txt
Created August 28, 2026 11:40
quickshell crash report 9s1re8hkt (issue #1021)
===== Version Information =====
Quickshell: 0.3.0 (revision 28771c7c74b42e20afca0b1b63980cb46515537c, distributed by AUR (package: quickshell-git))
Qt: 6.11.1 (built against 6.11.1)
===== Build Information =====
Build Type: RelWithDebInfo
Compiler: GNU (16.1.1)
Compile Flags: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/src/quickshell-git/src=/usr/src/debug/quickshell-git -flto=auto
Configuration:
Distributor: AUR (package: quickshell-git)
@budnik
budnik / SKILL.md
Created August 14, 2026 18:21
SKILL.md — generate isometric drafting-style architecture documents (single-file HTML, monochrome, SVG block-chart)
name isometric-architecture-doc
description Generate a single-file HTML architecture document in a retro drafting style — beige monochrome, strict monospace, an isometric SVG block-chart of the system, a Bill-of-Materials anchor index, and compartmentalized detail sections. Use when asked to produce a technical design doc, system overview, or architecture report with a distinctive blueprint aesthetic.

Isometric Architecture Documentation

Produce a single, self-contained HTML file (no external assets, no build step) that documents a software system in the visual language of engineering schematics and retro-computing manuals. The result should read like a photocopied drafting sheet:

@budnik
budnik / gist:85197cf1de40c43399a0f59b55b18a09
Created December 2, 2025 17:20
Results of git grep 'Aws::'
app/controllers/api/v3/users_controller.rb: dynamodb = Aws::DynamoDB::Client.new(region: 'us-west-2')
app/controllers/api/v3/users_controller.rb: # dynamodb = Aws::DynamoDB::Client.new(region: 'us-west-2')
app/controllers/api/v4/users_controller.rb: # s3 = Aws::S3::Client.new
app/controllers/api/v4/users_controller.rb: rescue Aws::Rekognition::Errors::InvalidParameterException
app/controllers/api/v4/users_controller.rb: rescue Aws::Rekognition::Errors::ImageTooLargeException
app/controllers/api/v4/users_controller.rb: rescue Aws::Rekognition::Errors::InvalidS3ObjectException => e
app/controllers/api/v4/users_controller.rb: rescue Aws::Rekognition::Errors::InvalidImageFormatException
app/controllers/api/v4/users_controller.rb: rescue Aws::Rekognition::Errors::InvalidParameterException, Aws::Rekognition::Errors::ImageTooLargeException, Aws::Rekognition::Errors::InvalidS3ObjectException => e
app/controllers/api/v4/users_controller.rb: dynamodb = Aws::DynamoDB::Client.new(
@budnik
budnik / d1t1.rb
Last active December 24, 2019 16:29
advent2019
def move(d, l, c)
case d
when ?R then [c.first+l, c.last]
when ?L then [c.first-l, c.last]
when ?U then [c.first, c.last-l]
when ?D then [c.first, c.last+l]
end
end
@budnik
budnik / sort.rb
Created November 19, 2017 15:20
Crossover chalange sort
def rearrange(elements)
number_of_ones = Hash.new {|h, n| h[n] = n.to_s(2).each_char.count('1')}
elements.map(&:to_i).uniq.sort do |a,b|
noo_a = number_of_ones[a]
noo_b = number_of_ones[b]
if noo_a==noo_b
a<=>b
else
noo_a<=>noo_b
@budnik
budnik / keybase.md
Created August 4, 2017 10:03
keybase.md

Keybase proof

I hereby claim:

  • I am budnik on github.
  • I am d1b (https://keybase.io/d1b) on keybase.
  • I have a public key ASDUPAxNntz18-tztBGELj3Pm2I5798jj8UgJxT61DHYdgo

To claim this, I am signing this object:

def solution(a)
sum = a[0]
sum += a[-1] if a[-1] < 0
negative = []
a[1..-1].each_with_index do |el,i|
if el >= 0
sum+=el
elsif i==a.size-2 || a[i+2]>=0
chunk = (i+1).downto(1).take_while{|j| a[j]<0}
negative << a[chunk.last..chunk.first] if chunk.size>=6
ar = [:a, :b, :c]
ar.each_with_index.each do |x,xi|
p ar[xi]
end
@budnik
budnik / govbot.sh
Created June 17, 2015 08:45
Heroku config for govbot
HUBOT_GITHUB_EVENT_NOTIFIER_ROOM: #random
HUBOT_GITHUB_EVENT_NOTIFIER_TYPES: issues,issue_comment
HUBOT_GITHUB_MILESTONES_ROOMS: {"https://github.com/e-government-ua/i/milestones/Portal-FrontEnd_PHP": "#_portal-front_php",
"https://github.com/e-government-ua/i/milestones/BackEnd-ActivitiExplorer_Java-GWT": "#_back-actexp_java-gwt",
"https://github.com/e-government-ua/i/milestones/Portal-Dashboard_NodeJS-Java": "#_portal-dashboard_js",
"https://github.com/e-government-ua/i/milestones/BackEnd-REST-Activiti_Java": "#_back-rest-act_java",
"https://github.com/e-government-ua/i/milestones/Auth": "#_auth",
"https://github.com/e-government-ua/i/milestones/BA-BusinesProcess-ActivitiDesigner": "#_ba-process-actdesign",
"https://github.com/e-government-ua/i/milestones/Support_DevOps-Server-Jenkins": "#_support_devop-srv-si",
"https://github.com/e-government-ua/i/milestones/Organization_Git-BugTracking-Rules": "#_org_git-btrack-rules",
@budnik
budnik / bootstrap.sh
Last active September 28, 2017 00:37
DO dokku
#!/bin/bash
TOKEN=foo
ES_NAME=bar
EXPOSED_IP=$(ip -o -f inet addr show eth0|egrep '([0-9]{1,3}\.){3}[0-9]{1,3}' -o|head -n1)
export ELASTICSEARCH_IMAGE_VERSION="1.7.1"
# Protect ES with Firewall
sed -i '/DEFAULT_FORWARD_POLICY/s/DROP/ACCEPT/g' /etc/default/ufw
IPS_ALLOW=/var/tmp/ufw-dynamic-ips.allow
ufw allow http