Skip to content

Instantly share code, notes, and snippets.

Experimenting with Qutebrowser, Keybase and MailMate

Rick Cogley RickCogley

Experimenting with Qutebrowser, Keybase and MailMate
Block or report user

Report or block RickCogley

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tutorial moves init.lua
hs.hotkey.bind(ctrl_opt_cmd, "Left", function()
local win = hs.window.focusedWindow()
local f = win:frame()
local screen = win:screen()
local max = screen:frame()
f.x = max.x
f.y = max.y
f.w = max.w / 2
f.h = max.h
RickCogley / 1
Created Jan 18, 2019
MailMate EagleFiler Bundle 2019
View 1

The current MailMate EagleFiler archive script works with the top-most open library, but we'd like it to work with a specific library.

add Bash Shell Script

  • Add line 10, env var to specify path to the .eflibrary file.
  • Add on line 14, an arg 3, using that var.

EagleFilerImport.scpt v2

  • Add a third _argv on line 3.

Keybase proof

I hereby claim:

  • I am rickcogley on github.
  • I am rickcogley ( on keybase.
  • I have a public key ASCoox8NHz0MHswuTA8ONgBXZKLyhhUhv_kAw-RX20OP2go

To claim this, I am signing this object:

RickCogley / 1.
Last active Nov 29, 2018
Transloadit Sample for Tim 20181129
View 1.

Using Transloadit's "notify_url" to Manipulate Assembly Results JSON

The Transloadit Assembly results JSON has all kinds of information about the processed files, but we need this information to appear in our business database. We need to use some practical scripting to massage the results JSON, and get it loaded into our db how we like.

Use "notify_url" to send to a webhook, which runs a script

Transloadit template can be set to send its json results payload to a notify_url which could be a url you set up at a web service like Hookdoo or others.

"notify_url": ""
RickCogley / hugo_server_std_out.log
Created May 18, 2018
hugo server error for hugo docs showcase
View hugo_server_std_out.log
~/d/hugoDocs ❯❯❯ hugo server master ◼
Building sites … ERROR 2018/05/18 15:45:00 Failed to get json resource with error message Get dial tcp: lookup on write udp> write: host is down
ERROR 2018/05/18 15:45:00 error processing shortcode "_internal/shortcodes/tweet.html" for page "troubleshooting/": template: _internal/shortcodes/tweet.html:1:4: executing "_internal/shortcodes/tweet.html" at <getJSON "https://api...>: error calling getJSON: Get dial tcp: lookup on write udp> write: host is down
ERROR 2018/05/18 15:45:00 Failed to get json resou
RickCogley / geolocator.js
Created Mar 30, 2018
Dbflex Geolocator.js
View geolocator.js
if ('undefined' == typeof window.jQuery) {
alert('jQuery is required!');
var scriptHelper = {
dbID: 123123,
protocol: window.location.protocol
RickCogley / dbscript.js
Created Mar 25, 2018
Limiting a script to a single dbflex page
View dbscript.js
<!-- Global site tag (gtag.js) - Google Analytics -->
FS.addScript("//", function() {
// google analytics
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-116114222-1');
RickCogley /
Created Jan 2, 2018
Demo of HTML in Hugo markdown file

date: 2017-12-15T00:30:27+09:00 draft: false tags:

  • セミナー
  • VAD協議会セミナー
  • 予定しているセミナー
  • イベント
  • VAD協議会イベント
  • 予定しているイベント
RickCogley / config.toml
Last active Nov 19, 2017
hugo multilingual multisite test
View config.toml
baseURL = ""
defaultContentLanguage = "en"
languageCode = "en-us"
title = "RC Live"
copyright = "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) License. Some rights reserved by James R. Cogley"
enableGitInfo = "true"
enableemoji = "true"
staticDir = ["static"]
# Note: This can also be set per language.
RickCogley / !
Last active Jun 9, 2017
zsh functions for hugo static site generator
View !

I use a Mac with hugo, and have some zsh functions in my .zshrc file, to make my life easier.

I have a bunch of functions for running hugo server with different ports to keep the sites out of each other's hair. Then I have some functions for generating the sites and pushing to production.

Once you have the functions written up, you can just execute hugoserver-1 to start the local server on port 1377, in the case below, and ctrl-c to stop it. And hugodeploy-1 to generate and push to your web server via rsync.

The sample below is to make it easy to understand the gist (get it?). The ugly truth is here:

You can’t perform that action at this time.