I hereby claim:
- I am mwild1 on github.
- I am mattj (https://keybase.io/mattj) on keybase.
- I have a public key whose fingerprint is 32A9 EDDE 3609 931E B98C EAC3 1590 7E8E 7BDD 6BFE
To claim this, I am signing this object:
diff -r 582ba9c459ad plugins/mod_storage_sql.lua | |
--- a/plugins/mod_storage_sql.lua Sat Jan 08 23:21:28 2011 +0000 | |
+++ b/plugins/mod_storage_sql.lua Mon Jan 10 05:28:35 2011 +0000 | |
@@ -28,14 +28,41 @@ | |
local xpcall = xpcall; | |
local json = require "util.json"; | |
+local DBI; | |
local connection; | |
local host,user,store = module.host; |
-- Recive a HTTP POST and relay it | |
-- Author: Waqas Hussain | |
-- Derived from mod_post_msg by Kim Alvefur <zash@zash.se> | |
-- Some code borrowed from mod_webpresence | |
-- | |
-- Example usage: | |
-- curl http://example.com:5280/presence/user -d "Hello there" | |
-- or | |
-- curl http://example.com:5280/presence/user@example.com -d "Hello there" |
-- Recive a HTTP POST and relay it | |
-- By Kim Alvefur <zash@zash.se> | |
-- Some code borrowed from mod_webpresence | |
-- | |
-- Example usage: | |
-- curl http://example.com:5280/presence/user -d "Hello there" | |
-- or | |
-- curl http://example.com:5280/presence/user@example.com -d "Hello there" | |
-- This would set presence of user@example.com with status 'Hello there' | |
-- another example: |
local wrapclient = require "net.server".wrapclient; | |
local socket = require "socket"; | |
local coroutine = coroutine; | |
local comap = {}; | |
local function yield(conn) | |
comap[conn] = coroutine.running(); | |
local r = coroutine.yield(); |
-- Original | |
if answer == "r" then | |
if NMH == true then | |
STR = math.random(3, 18) + 2 | |
DEX = math.random(3, 18) + 2 | |
SIZE = math.random(3, 18) + 2 | |
CON = math.random(3, 18) + 2 | |
INT = math.random(3, 18) + 2 | |
WILL = math.random(3, 18) + 2 | |
CHR = math.random(3, 18) + 2 |
I hereby claim:
To claim this, I am signing this object:
-- Based on Simple SQL Authentication module for Prosody IM | |
-- Copyright (C) 2011 Tomasz Sterna <tomek@xiaoka.com> | |
-- Copyright (C) 2011 Waqas Hussain <waqas20@gmail.com> | |
-- | |
-- 25/05/2014: Modified for Diaspora by Anahuac de Paula Gil - anahuac@anahuac.eu | |
-- 06/08/2014: Cleaned up and fixed SASL auth by Jonne Haß <me@jhass.eu> | |
-- 22/11/2014: Allow token authentication by Jonne Haß <me@jhass.eu> | |
local log = require "util.logger".init("auth_diaspora") | |
local new_sasl = require "util.sasl".new |
This update requires changes to the configuration of the container. Assuming you followed the quickstart guide on our website, you need do the following:
cd /etc/snikket
Open docker-compose.yml
and remove the 'ports' section, and add network_mode:host
.
You can view the changes
you need to make, or just fetch the updated version of
--[[ | |
This snippet works with rxvt-unicode. If you hit Mod+Return while | |
you have a terminal window focused, the new terminal window will | |
begin in the same directory instead of the default (your home directory). | |
--]] | |
awful.key({ modkey, }, "Return", function () | |
local extra_args = ""; | |
local curr_client = client.focus; | |
if curr_client and curr_client.class == "URxvt" then | |
local shell_pid = io.popen("ps h --ppid "..curr_client.pid.." -o pid"):read("*l"):gsub("%s+", ""); |
The Awesome window manager is a great scriptable tiling window manager. It uses Lua as its scripting language.
Sometimes you might want to control awesome from scripts or other external
processes. Thankfully it provides a handy utility for this: awesome-client
.