Skip to content

Instantly share code, notes, and snippets.

@md2501
md2501 / adblock-update.sh
Created June 24, 2012 12:26
bash script to update filterlists for the luakit adblock-module
#!/bin/bash
#
# Usage: adblock-update.sh [-h] [URL]
# This script can be used to download/update filterlists for the luakit adblock-module
# It will only update the file if the server-side version is newer.
#
# URL URL of the filterlist to download, leave empty to download Easylist
# -h, --help Display this help-message and exit
# help message
@Plaque-fcc
Plaque-fcc / gmicesheet
Created July 17, 2012 04:06
Some data on smart gmice.
HID_EE_Write16 0000 276F //Checksum
HID_EE_Write16 0001 FFFF //Unused
HID_EE_Write16 0002 FFFF //Reserve for LaserPower
HID_EE_Write16 0003 A4A4 //VerifyCode ReportRate[7:0](ms)
HID_EE_Write16 0004 0000 //DPI_Index(zero base)
HID_EE_Write16 0005 0000
HID_EE_Write16 0006 0004
HID_EE_Write16 0007 0008 //ReportRate(ms)
HID_EE_Write16 0008 0017 //Button Style Addr
HID_EE_Write16 0009 0021 //Wheel Style Addr
@umonkey
umonkey / zoomlevel_widget.lua
Created June 1, 2014 12:20
Zoom level indicator widget for Luakit
-- Zoom level indicator widget.
-- Displays current view zoom level, unless it's 100%.
-- Author: Justin Forest <hex@umonkey.net>
local capi = { luakit = luakit, soup = soup }
local string = string
local theme = theme
local webview = webview
local widget = widget
local window = window