Skip to content

Instantly share code, notes, and snippets.

@jzbor
jzbor / riot.sh
Last active March 8, 2021 18:37
Simple script to provide rio-like drawing functionallity for any X-WM (only works if the window is already floating)
#!/bin/sh
#
# Author: jzbor
# Dependencies: xdo, xwininfo (optional), xdg-xmenu (optional), xmenu (optional
#
# Usage:
# riot.sh
# riot.sh xterm
# riot.sh --focused
# riot.sh --select

Some useful custom text objects for vim

Collection of my custom text objects I use quite often.

97975602 6e90ee00 1dda 11eb 9286 6894300457e3

Numbers

Put it into your .vimrc:

@djalilhebal
djalilhebal / ffmpeg-hated-by-life-itself.sh
Last active October 9, 2022 21:48
Video editing using Bash and ffmpeg to cut, concat, and create dynamic text overlays (SVG)
#!/bin/bash
###
## @file FFmpeg - Hated By Life Itself
## @date 2020-10-30
## @author Abdeldjalil Hebal (@djalilhebal)
## @license WTFPL
##
## @description Video editing using Bash and ffmpeg to cut, concat, and create dynamic text overlays (SVG).
##
## This is the best I can do with my current "video editing skills":
@kongkrit
kongkrit / void-install.md
Created May 9, 2020 13:06
void linux installation on zfs root

Void Linux Root on ZFS Installation - glibc version

Part 1: Create a ZFS-Capable Installation

Create a void installation medium with ZFS (either a virtual hard disk or a USB stick)

Download ISO from here

  • choose void-live-x86_64-YYYYMMDD.iso - as of this writing (2020-03-20) the newest one is void-live-x86_64-20191109.iso
  • tested on VirtualBox 6.1 with the folllowing parameters:
    • system: chipset: ICH9, enable EFI, RAM: 2GB, 2 CPUs, enable nested VT-x/AMD-V
    • 3 SATA hard disks hanging of AHCI controller - 2 for mirror and the other 10GB for temp installation
    • IDE-CD-Rom on IDE PIIX4 controller.
@nickpegg
nickpegg / hostapd.conf
Created August 23, 2014 00:25
My hostapd config
# Set up some logging. VERY useful to see why things aren't working.
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
# Which interface to use and which bridge to join
interface=wlan0
bridge=br0
@boj
boj / benchmark.go
Last active April 9, 2019 16:26
mgo insert loop - parallelized vs. standard - The point of this test isn't to check the throughput of inserting 10000 records using mgo, but to explore the difference between doing standard and parallel loops using an overblown common case. Out of curiosity I have added a bulk insert benchmark at the bottom, which is clearly the most powerful wa…
package test
import (
"fmt"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"testing"
)
const INSERT_COUNT int = 10000