Skip to content

Instantly share code, notes, and snippets.

@gmeszaros
gmeszaros / 99-AnkerBT-keyboard.hwdb
Created January 26, 2022 17:39 — forked from rhomel/99-AnkerBT-keyboard.hwdb
Remap the function keys on an Anker slim bluetooth keyboard
# Invert Anker A7726 Keyboard FN Keys
#
# This is the keyboard I bought:
# https://www.amazon.co.jp/gp/product/B00U260UR0/
# But the fn keys default to media keys which is very annoying.
#
# This will make the FN media keys function as F keys without pushing the FN
# button. Also you can still use the media keys by pushing the FN + Media key
# combination.
#
#!/usr/bin/env python3
#
# Dumb script to dump (some) of bcache status
# Copyright 2013 Darrick J. Wong. All rights reserved.
#
# This file is part of Bcache. Bcache is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
@gmeszaros
gmeszaros / ovs-cheat.md
Created February 24, 2020 17:03 — forked from djoreilly/ovs-cheat.md
OVS cheat sheet

DB

ovs-vsctl list open_vswitch
ovs-vsctl list interface
ovs-vsctl list interface vxlan-ac000344
ovs-vsctl --columns=options list interface vxlan-ac000344
ovs-vsctl --columns=ofport,name list Interface
ovs-vsctl --columns=ofport,name --format=table list Interface
ovs-vsctl -f csv --no-heading --columns=_uuid list controller
ovs-vsctl -f csv --no-heading -d bare --columns=other_config list port
@gmeszaros
gmeszaros / ufw.md
Created February 28, 2019 16:40 — forked from kimus/ufw.md
NAT and FORWARD with Ubuntu’s ufw firewall

UFW

I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.

Install UFW

if ufw is not installed by default be sure to install it first.

@gmeszaros
gmeszaros / uap-ac-lite-openwrt.txt
Created March 29, 2018 20:49 — forked from lg/uap-ac-lite-openwrt.txt
making the ubnt wifi awesome (uap ac lite) w/ openwrt
making the ubnt wifi awesome (uap ac lite) w/ lede (openwrt)
the reasons you would do this:
- you get 802.11r
- you get better roaming
- you get access to some new 5ghz channels
I AM NOT TO BE HELD RESPONSIBLE FOR ANYTHING IN HERE. DO AT YOUR OWN RISK. THANK YOU AND HAVE A LOVELY DAY.
** note that though we're using Lede, it's essentially openwrt minus the drama
@gmeszaros
gmeszaros / findfileingit.sh
Last active August 28, 2017 13:01 — forked from mloberg/gist:3750653
Find file in git based on md5 checksum.
#!/bin/sh
CHECKSUM=$1
FILE=$2
if [[ -z "$CHECKSUM" ]]; then
echo "Usage: $0 md5 file"
exit 1
elif [[ -z "$FILE" ]]; then
echo "Usage: $0 md5 file"
@gmeszaros
gmeszaros / Gestures_2TapMiddleClick.reg
Created February 4, 2016 20:19 — forked from dpower-lv/Gestures_2TapMiddleClick.reg
Lenovo Y50-70 - Registry hack to add middle-click as a 2 finger tap gesture
Windows Registry Editor Version 5.00
; current user
[HKEY_CURRENT_USER\SOFTWARE\Alps\Apoint\Gesture]
"2TapSupport"=dword:00000003
"2TapShow"=dword:00000009
"Enable2Tap"=dword:00000001
"2TapFunc"=dword:0000000e
"2TapSetting"=dword:000000ff
"2TapSettingEx"=""