Skip to content

Instantly share code, notes, and snippets.

View bkuri's full-sized avatar

Bernardo Kuri bkuri

View GitHub Profile
@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>
@bkuri
bkuri / index.pug
Created January 20, 2017 19:05
VelocityJS Modal
.screen
.body
button#open Modal
.layer
.content
span This is the content area
.overlay
button#close X

Keybase proof

I hereby claim:

  • I am bkuri on github.
  • I am bkuri (https://keybase.io/bkuri) on keybase.
  • I have a public key whose fingerprint is 66BB BB1C 5BE6 4B9C 4259 C1CB 229F 43CD 875A 8599

To claim this, I am signing this object:

@bkuri
bkuri / script.coffeescript
Last active June 27, 2016 18:33 — forked from anonymous/script.coffeescript
weborama lightbox demo
swal
customClass: 'weborama-ad'
imageClass: 'weborama-ad-img'
imageWidth: 300
imageHeight: 300
imageUrl: 'http://clientsmedia2.adrime.com/9251124598/111733/bg_layer.jpg'
padding: 0
showCloseButton: yes
showConfirmButton: no
timer: 15000