Skip to content

Instantly share code, notes, and snippets.

View VictorDenisov's full-sized avatar

Victor Denisov VictorDenisov

View GitHub Profile
@suapapa
suapapa / record.go
Created April 19, 2020 08:20
raw audio recording with portaudio and golang
package main
import (
"encoding/binary"
"fmt"
"os"
"os/signal"
"time"
"github.com/gordonklaus/portaudio"
@mnacharov
mnacharov / Makefile
Last active April 16, 2018 01:22
pyenv debian-package builder
# Makefile for update and build pyenv debian package #
# Used directories
PYENV_SRC=pyenv.src
PYENV_BUILD=pyenv
PYENV_TARGET=$(PYENV_BUILD)/usr/share/pyenv
# Files wich needs to be removed from debian package
NOT_NEEDED_FILES=.agignore CHANGELOG.md CONDUCT.md .git .gitignore LICENSE \
Makefile src test .travis.yml .vimrc plugins/.gitignore plugins/*/.git \
plugins/*/.gitignore plugins/*/test plugins/*/LICENSE
@jsjolund
jsjolund / xmonad.hs
Last active October 17, 2023 22:57
Example of using xmonad inside xfce
-------------------------------------------------------------------------------
-- Configuration for using Xmonad inside Xfce, KDE and standalone.
--
-- Xfce: It is recommended to disable/remove xfwm4 and xfdesktop.
-- KDE: Plasma works with xmonad, except
-- 1. Mouse cursor cannot focus on empty monitors.
-- 2. Panel start-menu search field cannot receive input.
-------------------------------------------------------------------------------
@marxjohnson
marxjohnson / BBR.rb
Created January 7, 2012 14:22
A script to detect and report Boogie Board Rip events on linux via USB
begin
lsusb = `lsusb`
if lsusb.split("\n").select{|l| l.include? "2047:ffe7"}.count == 0
raise "Boogie Board Rip not currently connected"
end
begin
dmesg = `dmesg`
bbdev = dmesg.split("\n").select{|l| l.match "2047:FFE7.*hidraw[0-9]"}.pop.match("(hidraw[0-9]+)").to_s
raise RuntimeError if bbdev.empty?