Skip to content

Instantly share code, notes, and snippets.

View paulelms's full-sized avatar

Paul Elms paulelms

View GitHub Profile
paulelms / workrave-info
Created August 4, 2021 09:06 — forked from kronn/workrave-info
A small tool to query workrave via DBus and implement a text-based widget for status-bars
#!/usr/bin/env /home/mviehweger/.rvm/wrappers/ruby-2.4.2/ruby
# frozen_string_literal: true
# for ubuntu, there is d-feet
require 'dbus'
rescue LoadError => e
require 'rbconfig'
paulelms / openpgp.txt
Created November 22, 2018 07:14
Связанный идентификатор OpenKeychain
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:22ae853a364b376c5574d39413a4c51b02a9ff96]

Keybase proof

I hereby claim:

  • I am paulelms on github.
  • I am paulelms ( on keybase.
  • I have a public key whose fingerprint is 9968 ABED 4438 3942 46F3 7F69 B440 CD88 64D9 5937

To claim this, I am signing this object:

paulelms /
Last active August 29, 2015 14:02 — forked from mbostock/.block

Run like so:

node gist-clone-all.js username

You'll want to replace "username" with your own username.

This script clones using the push URL, so you should probably be the owner of the gists. You could also use this to clone someone else's gists, but in that case you may wish to edit the code to use gist_pull_url instead.

# =============================================================
# = OpenMeta to OS X Tags =
# =============================================================
# Script to convert OpenMeta tags to OS X Mavericks tags.
# Created by Zettt (Andreas Zeitler) on 2013-06-28
# Source,
# OpenMeta to OS X Tags by Andreas Zeitler is licensed under a
# Creative Commons Attribution-NonCommercial-ShareAlike
# Bash completion for `up` <>
local rx
local token=${COMP_WORDS[$COMP_CWORD]}
local IFS=$'\t'
local words=$(dirname `pwd` | tr / " ")
local nocasematchWasOff=0
paulelms /
Created June 13, 2014 20:31 — forked from ttscoff/
# inspired by `bd`:
function _up() {
local rx updir
rx=$(ruby -e "print '$1'.gsub(/\s+/,'').split('').join('.*?')")
updir=`echo $PWD | ruby -e "print*\/${rx}[^\/]*\/).*/i,'\1')"`
echo -n "$updir"
function up() {
if [ $# -eq 0 ]; then
#!/usr/bin/env ruby
require 'yaml'
require 'fileutils'
class Folderize
def initialize(config_file=false)
config_file = File.expand_path("~/.folderize") unless config_file
# Set up config
unless File.exists?(config_file)
#!/usr/bin/env ruby
# encoding: utf-8
# tag primary folders =Tagname
# target them with #Tagname
# tag subfolders with @nickname
# target them with :nickname
# if no tagged folder exists but there's a matching folder name, that's used
# otherwise it will create folders based on :tags
# :tags can be strung together :bt:Drafts:testing for nesting
# Only one #Tag and one :path should exist in a file's tags