Skip to content

Instantly share code, notes, and snippets.

View grafov's full-sized avatar
🛸
I want to believe

Alexander I.Grafov grafov

🛸
I want to believe
View GitHub Profile
@Thomashighbaugh
Thomashighbaugh / installing-brave-on-void-linux.md
Created December 27, 2021 21:16
For anyone trying to install Brave Browser on Void Linux, cross-post from Reddit

Installing Brave Browser on Void Linux

For anyone curious in the future:

Yes, you can relatively easily install brave browser on void linux, if that is somehow a non-negotiable for you fear not. There are three methods that I am aware of:

  1. Add this template file to your fork of void-packages locally and build the ./xbps-src package like any other.

  2. Use flatpak, which I need not explain since instructions are on the flathub listing itself. (Note: will be isolated from the system which can be a bit of a pain, especially using things like keepassxc)

@AlexxIT
AlexxIT / yandex_station_call.md
Last active March 27, 2024 01:46
Звонок на колонку с Алисой

Создаём в Home Assistant карточку для быстрого звонка на колонку.

  1. Можно создать или просто карточку-кнопку:
type: button
icon: 'mdi:phone-classic'
tap_action:
  action: url
  # Яндекс > Устройства > Колонка > Дополнительная информация > Идентификатор устройства (регистр важен)
@dnlvgl
dnlvgl / 90-kensington-expert-trackball-remap.hwdb
Created January 25, 2020 23:03
Remapping Kensington Expert Trackball Buttons with wayland
# Button remap for Kensington Expert Trackball
# both upper buttons (90003 + 90004) act as BTN_LEFT (272)
# both lower buttons (90001 + 90002) act as BTN_RIGHT (273)
# save this file under '/etc/udev/hwdb.d/90-kensington-expert-trackball-remap.hwdb'
# run `sudo systemd-hwdb update` and reboot
#
# source: https://askubuntu.com/questions/1145057/remapping-mouse-buttons-to-keyboard-keys
# /sys/class/input/event20/device/id/bustype:0003
# /sys/class/input/event20/device/id/product:1020
# /sys/class/input/event20/device/id/vendor:047d
@eliasnaur
eliasnaur / grid.go
Last active April 29, 2023 19:43
Gio Grid example using Flex
package main
import (
"image"
"gioui.org/app"
"gioui.org/f32"
"gioui.org/io/system"
"gioui.org/layout"
"gioui.org/op/paint"
@psanford
psanford / gopls-config.el
Last active June 23, 2022 20:48
gopls (go lsp-mode) config for emacs with useful optional packages.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Pre gopls/lsp-mode/go-mode setup
;;; This section installs use-package from melpa if it isn't
;;; already installed. You can skip this if you already have use-package
;; enable melpa if it isn't enabled
(require 'package)
(when (not (assoc "melpa" package-archives))
(setq package-archives (append '(("melpa" . "https://melpa.org/packages/")) package-archives)))
(package-initialize)
@jumper047
jumper047 / qutemacs.py
Created November 15, 2018 21:28
Qutebrowser config with emacs key bindings
# qutemacs - a simple, preconfigured Emacs binding set for qutebrowser
#
# The aim of this binding set is not to provide bindings for absolutely
# everything, but to provide a stable launching point for people to make their
# own bindings.
#
# Installation:
#
# 1. Copy this file or add this repo as a submodule to your dotfiles.
# 2. Add this line to your config.py, and point the path to this file:
@fdidron
fdidron / ABOUT.md
Last active April 9, 2024 23:53
Ergodox-EZ Glow per layer / per key illumination

rules.mk

Contains all the directives required to activate QMK's rgb matrix features.

config.h

Sets a constant required to read the rgb matrix config from the EEPROM.

keymap.c

Custom keymap based on my layout. This is where the magic happens.

First let's declare a rgb_matrix_config variable of type rgb_config_t :

@jacoduplessis
jacoduplessis / firefox_geckodriver_standalone.go
Created November 14, 2018 05:53
Running headless firefox without selenium in golang.
package main
import (
"fmt"
"github.com/tebeka/selenium"
"github.com/tebeka/selenium/firefox"
"log"
"os"
)
@QuantumGhost
QuantumGhost / example.puml
Last active March 23, 2024 22:39
A simple template for PlantUML to draw ER diagram.The basic idea comes from http://plantuml.sourceforge.net/qa/?qa=331/database-modeling
@startuml
' uncomment the line below if you're using computer with a retina display
' skinparam dpi 300
!define Table(name,desc) class name as "desc" << (T,#FFAAAA) >>
' we use bold for primary key
' green color for unique
' and underscore for not_null
!define primary_key(x) <b>x</b>
!define unique(x) <color:green>x</color>
!define not_null(x) <u>x</u>
@iamralch
iamralch / ssh_client.go
Last active April 16, 2023 03:09
SSH client in GO
package main
import (
"fmt"
"io"
"io/ioutil"
"net"
"os"
"strings"