Skip to content

Instantly share code, notes, and snippets.

@denisoster
denisoster / svg2icns.sh
Last active January 16, 2024 07:08
Convert SVG file to macOS icon (icns) format
#!/bin/sh -x
set -e
SIZES="
16,16x16
32,16x16@2x
32,32x32
64,32x32@2x
128,128x128
@denisoster
denisoster / Fastfile
Last active September 11, 2023 02:48
Resign ipa
# frozen_string_literal: true
lane :resign_ipa do |options|
resign_ipa_os(options[:provision], options[:ipa], options[:identity]) { |plist| }
end
def resign_ipa_os(provision, ipa_path, identity, &block)
provision = verify_provision(provision)
ipa_path = verify_ipa_path(ipa_path)
puts "Using IPA #{ipa_path}"
@denisoster
denisoster / PKGBUILD
Last active August 14, 2022 19:23
Tool to launch X11 clients with unique IDs
# Maintainer: Denis Oster <denis.oster.dev@gmail.com>
pkgname=wm-launch
pkgver=0.5.1
pkgrel=1
pkgdesc="Tool to launch X11 clients with unique IDs"
arch=("x86_64")
url="https://github.com/jcrd/wm-launch"
license=("GPL" 'custom:GPL3 or any later version')
depends=(libx11)
@denisoster
denisoster / PKGBUILD
Last active August 14, 2022 19:33
Standalone X session manager for systemd-logind
# Maintainer: Denis Oster <denis.oster.dev@gmail.com>
pkgname=sessiond
pkgver=0.6.1
pkgrel=1
pkgdesc="Standalone X session manager for systemd-logind"
arch=("x86_64")
url="https://sessiond.org/"
license=("GPL" 'custom:GPL3 or any later version')
depends=(dbus-python wireplumber python-pyqt5)
@denisoster
denisoster / PKGBUILD
Last active August 5, 2022 23:41
UDisks 2 with support mountpoint via udev rule
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
pkgname=udisks2
pkgver=2.9.4
pkgrel=2
pkgdesc="Disk Management Service, version 2"
arch=('x86_64')
url="https://www.freedesktop.org/wiki/Software/udisks"
license=('GPL2')
@denisoster
denisoster / PKGBUILD
Created July 23, 2022 12:44
Podman with support Name Service Switch
# Maintainer: Morten Linderud <foxboron@archlinux.org>
# Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
pkgbase=podman
pkgname=(podman podman-docker)
pkgver=4.1.1
pkgrel=3
pkgdesc='Tool and library for running OCI-based containers in pods'
arch=(x86_64)
@denisoster
denisoster / start.sh
Last active March 2, 2022 12:12
Arch QEMU KVM Libvirt Single GPU PCI
#
#
# /etc/libvirt/hooks/qemu.d/winnvme/prepare/begin/start.sh
#
#
#!/bin/bash
set -x
# Stop display manager
@denisoster
denisoster / proton_exec.sh
Created January 10, 2021 14:43
Run another exe file from steam proton
#!/bin/bash
game_id=$1
game_folder=$2
executable_file=$3
### Checks
if [ -z "$game_id" ] || [ -z "$game_folder" ] || [ -z "$executable_file" ]; then
echo "Example: ./proton_exec.sh 211600 thief_gold \$HOME/executable_file.exe"

Troubleshooting

Versions differ on projects!

Whe using rmagick

Linux:
Need install imagemagick6

PKG_CONFIG_PATH='/usr/lib/imagemagick6/pkgconfig' gem install rmagick -v '2.13.4'