Skip to content

Instantly share code, notes, and snippets.

View umonkey's full-sized avatar
🏠
Working from home

Justin Forest umonkey

🏠
Working from home
View GitHub Profile
@umonkey
umonkey / basic_auth.lua
Created June 2, 2014 08:56
HTTP basic auth plugin for Luakit
-- Store HTTP basic auth credentials in a SQLite database.
-- Author: Justin Forest <hex@umonkey.net>
local io = io
local capi = { luakit = luakit, soup = soup, sqlite3 = sqlite3 }
local info = info
local warn = warn
local lousy = require "lousy"
local sql_escape = lousy.util.sql_escape
local parse_uri = lousy.uri.parse
@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