Skip to content

Instantly share code, notes, and snippets.

View yveszoundi's full-sized avatar

Yves Zoundi yveszoundi

View GitHub Profile
@yveszoundi
yveszoundi / qemu.rb
Created February 6, 2022 03:24
MacOS QEMU homebrew formula with spice support
class Qemu < Formula
desc "Emulator for x86 and PowerPC"
homepage "https://www.qemu.org/"
url "https://download.qemu.org/qemu-6.2.0.tar.xz"
sha256 "68e15d8e45ac56326e0b9a4afa8b49a3dfe8aba3488221d098c84698bca65b45"
license "GPL-2.0-only"
head "https://git.qemu.org/git/qemu.git", branch: "master"
bottle do
sha256 arm64_monterey: "57ffc7f97cbd053121f7767f08c2386beac29ef8efa7f93398d347b24d979621"
@yveszoundi
yveszoundi / spice.rb
Created February 6, 2022 03:27
MacOS spice homebrew formula
class Spice < Formula
homepage "https://www.spice-space.org/"
url "https://gitlab.freedesktop.org/spice/spice.git"
version "master"
depends_on "autoconf" => :build
depends_on "autoconf-archive" => :build
depends_on "autogen" => :build
depends_on "automake" => :build
depends_on "gobject-introspection" => :build
@yveszoundi
yveszoundi / brew_install_spice.sh
Created February 6, 2022 03:29
Homebrew installation command for custom spice formula
CMAKE_CXX_STANDARD=11 CFLAGS=-Wno-error CMAKE_TESTING_ENABLED=false ENABLE_TESTS=false ENABLE_TESTING=false BUILD_TESTING=false brew install -v spice
@yveszoundi
yveszoundi / DumpArchimateViewElementTypes.ajs
Created April 26, 2024 22:57
#jArchi script to dump Archimate View element types
// Author: Yves Zoundi
// Dump Archimate View element types for either elements or relationships
// This can be useful for custom coloring, custom import/export etc.
console.show()
console.clear()
console.log("START: DumpArchimateViewElementTypes")
let selection = window.promptSelection("Choose types to dump", ["Element Types", "Relationship Types"] )
@yveszoundi
yveszoundi / ImportSpecializations.ajs
Created April 26, 2024 23:25
#jArchi script to import specializations from properties file
/*
Author: Yves Zoundi
Description: Import specializations and applicable icons
- Assumptions
- Folder with containing your specialization icons and a mapping file 'mapping.properties'
- Icon files are derived automatically from your specialization names (in lowercase)
- Supported icon file names: .png, .jpg, .jpeg, .gif, .tif, .tiff, .bmp, .ico
- The icon file name is derived automatically via the following approach:
- For a specialization 'Custom Location' will attempt loading icons with the name 'custom-location' (spaces to dashes)
@yveszoundi
yveszoundi / AlignSpread.ajs
Created May 10, 2024 12:01
#jArchi script to align and spread components
// Author: Yves Zoundi
// Requires: jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/
// Purpose: Align to lowest, spread the selected elements horizontally or vertically
// Date: 2024-05-10
// Version 0.0.1
// Change: Initial version based on similar previous jArchi scripts on GitHub
console.clear()
console.show()
console.log("START: AlignSpread")
@yveszoundi
yveszoundi / config
Created July 7, 2024 17:31
#sway #wayland Sway configuration file
# Wayland Sway configuration file: https://swaywm.org
# This is located at $HOME/.config/sway/config
# This uses stumpwm/ratpoison style keybindings with a prefix key
# This is derived from w96k dotfiles: https://git.sr.ht/~w96k/dotfiles/tree/master/item/guix/.config/sway/config
# This matches relatively closely the custom configuration that I use with DWL: https://codeberg.org/dwl/dwl
set $term foot
set $StumpMod Control+t
set $left h
set $down j