Skip to content

Instantly share code, notes, and snippets.

View bkuri's full-sized avatar

Bernardo Kuri bkuri

View GitHub Profile
@bkuri
bkuri / PKGBUILD
Created December 26, 2024 23:11
nzbget-git PKGBUILD
# Maintainer: bkuri <aur+nzbget-git@bkuri.com>
# Contributor: selfdenial <selfdenial@pm.me>
# Contributor: Nicola Hinssen <nicola.hinssen@gmail.com>
# Contributor: Jan Holthuis <holthuis.jan@googlemail.com>
pkgbase=nzbget-git
pkgname=(nzbget-git nzbget-git-debug)
pkgver=24.6.r2550.a0e27026
pkgrel=1
pkgdesc="Download from Usenet using .nzb files (testing release)"
@bkuri
bkuri / PKGBUILD
Created December 26, 2024 22:58
nzbget-git PKGBUILD (no par2-turbo build step)
# Maintainer: bkuri <aur+nzbget-git@bkuri.com>
# Contributor: selfdenial <selfdenial@pm.me>
# Contributor: Nicola Hinssen <nicola.hinssen@gmail.com>
# Contributor: Jan Holthuis <holthuis.jan@googlemail.com>
pkgbase=nzbget-git
pkgname=(nzbget-git nzbget-git-debug)
pkgver=24.6.r2550.a0e27026
pkgrel=1
pkgdesc="Download from Usenet using .nzb files with par2cmdline-turbo support (testing release)"
@bkuri
bkuri / boot_backup_to_usb.sh
Last active September 6, 2024 10:18
Arch Linux Boot Backup to USB Script
#!/bin/bash
# Script to backup the current boot environment to a USB drive for systemd-boot on Arch Linux
# Ensure the script is run as root
if [ "$(id -u)" -ne 0 ]; then
echo "This script must be run as root" >&2
exit 1
fi
@bkuri
bkuri / 99-toggle-osk.rules
Last active April 6, 2022 19:49
Attempts to toggle OSK visibility depending upon usb dongle (dis)connection
ACTION=="add", ATTRS{idProduct}=="c52b", ATTRS{idVendor}=="046d", ENV{DISPLAY}=":0", RUN+="dbus-send --print-reply --dest=com.deepin.VirtualKeyboard /com/deepin/VirtualKeyboard com.deepin.VirtualKeyboard.HideKeyboard"
ACTION=="remove", ATTRS{idProduct}=="c52b", ATTRS{idVendor}=="046d", ENV{DISPLAY}=":0", RUN+="dbus-send --print-reply --dest=com.deepin.VirtualKeyboard /com/deepin/VirtualKeyboard com.deepin.VirtualKeyboard.ShowKeyboard"
@bkuri
bkuri / PKGBUILD
Last active June 2, 2023 03:53
Latest version for inkscape-axidraw
# Maintainer: Alex Leray <alexandre@stdin.fr>
# Maintainer: Bernardo Kuri <aur@bkuri.com>
pkgname=inkscape-axidraw
pkgver='391'
pkgrel=1
pkgdesc='Inkscape extension for Axidraw.'
provides=('inkscape-axidraw' 'inkscape-eggbot')
url='https://github.com/evil-mad/EggBot/'
depends=('python' 'python-lxml' 'inkscape>=1.0.0')
ERROR in ./.nuxt/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: [BABEL] /source/.nuxt/index.js: @babel/preset-env: The plugins/built-ins '@babel/plugin-proposal-private-property-in-object' passed to the 'exclude' option are not
valid. Please check data/[plugin-features|built-in-features].js in babel-preset-env (While processing: "/source/node_modules/@nuxt/babel-preset-app/src/index.js$0")
at OptionValidator.invariant (/source/node_modules/@babel/helper-validator-option/lib/validator.js:48:13)
at expandIncludesAndExcludes (/source/node_modules/@babel/preset-env/lib/normalize-options.js:49:5)
at normalizeOptions (/source/node_modules/@babel/preset-env/lib/normalize-options.js:128:19)
at /source/node_modules/@babel/preset-env/lib/index.js:271:37
at /source/node_modules/@babel/helper-plugin-utils/lib/index.js:22:12
at async (/source/node_modules/@babel/core/lib/gensync-utils/async.js:43:33)
From 686b7778767f1f94cf9f6d5c2acd401d76bb3d4a Mon Sep 17 00:00:00 2001
From: Marius Hillenbrand <mhillen@linux.ibm.com>
Date: Tue, 14 Apr 2020 16:00:36 +0200
Subject: [PATCH] Move Stroke::save() and load() into header
The template member functions Stroke::save and Stroke::load get called
via the serialize() function generated by boost's macro
BOOST_SERIALIZATION_SPLIT_MEMBER() in gesture.h. Since the definitions
of save()/load() are only available in gesture.cc, the compiler may
produce two versions of Stroke::serialize() -- one with save()/load()
#!/bin/bash
# seed-storage
# ============
# Seed an existing firebase cloud storage emulator instance. Run it inside your
# project's firebase folder, ie: ./seed-storage.sh <project-name> <dest-folder>
name=firebase_export # firebase export dir name
project=$1 # project name
root=$2 # export root path
@bkuri
bkuri / 2019-08-03T22_06_25_899Z-debug.log
Created August 3, 2019 22:26
vue-cli install error
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli '/usr/bin/npm',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli '--prefix=/home/bk/.cache/yay/vue-cli/pkg/vue-cli/usr',
1 verbose cli '@vue/cli@3.9.3' ]
2 info using npm@6.10.2
3 info using node@v11.15.0
4 verbose npm-session 9f5faafac0a97d61
<TaskerData sr="" dvi="1" tv="5.4.5b">
<Task sr="task17">
<cdate>1355619832791</cdate>
<edate>1536877231833</edate>
<id>17</id>
<nme>Random quote</nme>
<pri>6</pri>
<Action sr="act0" ve="7">
<code>417</code>
<Str sr="arg0" ve="3">quotes.txt</Str>