Skip to content

Instantly share code, notes, and snippets.

* TODO %(ols-jira-capture-issue) [[%(ols-jira--issue-browse-url)][%(ols-jira--issue-key)]] %(ols-jira--issue-summary) :%(ols-jira--issue-priority):
:PROPERTIES:
:reporter: [[%(ols-jira--issue-reporter-link)][%(ols-jira--issue-reporter-name)]]
:assignee: [[%(ols-jira--issue-assignee-link)][%(ols-jira--issue-assignee-name)]]
:END:
%(ols-jira--remote-links-drawer)
%(ols-jira--issue-description)%(tidy-capture)
(ols-aws--make-tags '(("foo" . "bar") ("biz . "baz)))

dnd-helm-characters

(defun dnd-helm-characters () (interactive)
       (let* ((title "Pick a character")
              (file "~/life/life.org")
              (olp '("D&D" "Characters"))
              (sources (helm-org-file-olp-select title file olp))))
         (helm :sources sources))
>>> from urlparse import urlunparse
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/nix/store/836im85gwpjj7bj2clxngwhvppf4x7rq-python-2.7.14-env/lib/python2.7/urlparse.py", line 119, in <module>
from collections import namedtuple
File "/nix/store/836im85gwpjj7bj2clxngwhvppf4x7rq-python-2.7.14-env/lib/python2.7/collections.py", line 21, in <module>
from operator import itemgetter as _itemgetter, eq as _eq
ImportError: dlopen(/nix/store/836im85gwpjj7bj2clxngwhvppf4x7rq-python-2.7.14-env/lib/python2.7/lib-dynload/operator.so, 2): Symbol not found: __PyUnicodeUCS4_AsDefaultEncodedString
Referenced from: /nix/store/836im85gwpjj7bj2clxngwhvppf4x7rq-python-2.7.14-env/lib/python2.7/lib-dynload/operator.so
Expected in: flat namespace
with import <nixpkgs> {};
stdenv.mkDerivation rec {
name = "env";
env = buildEnv { name = name; paths = buildInputs; };
buildInputs = [
bash
stdenv
python27
python27Packages.virtualenv
python27Packages.pip
#! /usr/bin/env nix-shell
#! nix-shell -i python27 shell.nix
print "Hello world"
config = mkIf cfg.enable {
home.packages = [ package ];
home.file = listToAttrs configFiles;
home.activation.viscosity = dagEntryAfter["installPackages"] (let
home = config.home.homeDirectory;
applications = "${home}/.nix-profile/Applications";
source = "${applications}/${appName}";
target = "${home}/Applications/";
in ''
if [ -e ${target}/${appName} ]; then
home.file.".ssh/personal" = {
text = builtins.getEnv "PERSONAL_PRIVATE_KEY";
mode = "400";
};
home.file.".ssh/personal.pub".text = builtins.getEnv "PERSONAL_PUBLIC_KEY";
home.file.".ssh/workiva" = {
text = builtins.getEnv "WORKIVA_PRIVATE_KEY";

Hera

Hera (ˈhɛrə, ˈhɪərə; Greek: Ἥρᾱ Hērā, equivalently Ἥρη Hērē, in Ionic and Homer) is the goddess of women and marriage in Greek mythology and religion. She is the daughter of the Titans Cronus and Rhea.

Slain by Hercules, Hera created the Hydra constellation.

This code allows the registration of major-mode specific hydras, and a default one. Any hydra is of course free to show the default hydra if wanted.

Tidy Mode

As the point moves around, headings will be automatically folded.

(defun org-tidy--tidy (&rest args)
  (save-excursion
    (org-global-cycle 1)
    (org-cycle)
    (let ((last org-cycle-subtree-status))
      (while (not (eq 'folded org-cycle-subtree-status))