Skip to content

Instantly share code, notes, and snippets.

View yeled's full-sized avatar

Charlie Allom yeled

  • London
View GitHub Profile
#!/usr/bin/env bash
COMMAND_NAME=`basename $0`
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PATH="$(echo $PATH | sed s#`echo $DIR | sed 's#\\/#\\\\\\/#g'`:##g)"
COMMAND="$(which $COMMAND_NAME)"
if command -v urxvt > /dev/null 2>&1; then
urxvt -name $COMMAND_NAME -e $COMMAND "$@" & disown -h
else
$COMMAND "$@"
fi

Keybase proof

I hereby claim:

  • I am yeled on github.
  • I am yeled (https://keybase.io/yeled) on keybase.
  • I have a public key whose fingerprint is 5D09 B8C6 5726 802E A2D4 06D5 2141 9EEC 5F4E 941C

To claim this, I am signing this object:

class Astroid < Formula
desc "A graphical threads-with-tags style, lightweight and fast, email client for notmuch, inspired by sup and others"
homepage "http://astroidmail.github.io/"
# not necessary for homebrew but nice to only bump it in one place
version "0.9.1"
url "https://github.com/astroidmail/astroid/archive/v#{version}.tar.gz"
sha256 "7d58a813a9e8f840475226a254743e0caf50f1baf830256ce17e135b71f34714"
head "https://github.com/astroidmail/astroid.git"
@yeled
yeled / which_key.c
Last active May 15, 2017 14:46
find what gdk code is pressed
#include <gtk/gtk.h>
static gboolean
key_event(GtkWidget *widget,
GdkEventKey *event)
{
g_printerr("%s\n",
gdk_keyval_name (event->keyval));
return FALSE;
}
@yeled
yeled / broken_import.applescript
Last active May 21, 2017 18:23
shouldn't this be in Logbook / aka completed?
tell application "OmniFocus"
get class of item 3 of every flattened task of default document whose in inbox = true
--> inbox task
get number of tasks of item 3 of every flattened task of default document whose in inbox = true
--> 0
(*Migrating an inbox task*)
get name of item 3 of every flattened task of default document whose in inbox = true
--> "Please Confirm Your Email Address"
get note of item 3 of every flattened task of default document whose in inbox = true
--> "[Sent to Mail Drop address yeled.rk8bv]
@yeled
yeled / -
Created May 23, 2017 18:15
gmi broken
(venv) 19:12 YELP-CHARLIE~/Maildir/[email protected][[email protected]] % PYTHONPATH=~/src/notmuch/bindings/python/ ~/src/gmailieer/gmi sync
receiving metadata: 0%|▏ | 1/283 [00:01<08:57, 1.91s/it]remote: could not find remote message: 15c1a7da7a8b9360!
receiving metadata: 100%|███████████████████████████████████████████▊| 282/283 [00:02<00:00, 99.54it/s]
resolving changes: 0%| | 0/283 [00:00<?, ?it/s]Traceback (most recent call last):
File "/Users/charlie/src/gmailieer/gmi", line 8, in <module>
g.main ()
File "/Users/charlie/src/gmailieer/lieer/gmailieer.py", line 136, in main
args.func (args)
File "/Users/charlie/src/gmailieer/lieer/gmailieer.py", line 186, in sync
self.push (args, True)
From 701f6f5c89e061d05734839821f3a20c149e93ad Mon Sep 17 00:00:00 2001
From: Charlie Allom <[email protected]>
Date: Wed, 31 May 2017 13:51:27 +0100
Subject: [PATCH] [PATCH] searches: Shift+tab to previous unread
---
src/modes/saved_searches.cc | 52 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git src/modes/saved_searches.cc src/modes/saved_searches.cc
11:10 YELP-CHARLIE~[[email protected]] % notmuch search --output=files id:[email protected]
/Users/charlie/Maildir//Users/charlie/1496310617.wxsvfx8agi.charlie_evilforbeginners.com
/Users/charlie/Maildir/1496310617.wxsvfx8agi.charlie_evilforbeginners.com
@yeled
yeled / gist:1e98d6d3074227660304e9b1d9c2cfad
Created July 7, 2017 12:35
turris lspci #450 (visible wlan0)
13:32 mp01~[] % ssh [email protected]
[email protected]'s password:
BusyBox v1.25.1 (2017-06-20 23:41:24 CEST) built-in shell (ash)
_______ _ _ _____ _____ _____ _____
|__ __|| | | || __ \ | __ \ |_ _| / ____|
| | | | | || |__) || |__) | | | | (___
| | | | | || _ / | _ / | | \___ \
-- === sizeup ===
--
-- SizeUp emulation for hammerspoon
--
-- To use, you can tweak the key bindings and the margins
local sizeup = { }
--------------
-- Bindings --