I hereby claim:
- I am paulelms on github.
- I am paulelms (https://keybase.io/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:
#!/usr/bin/env /home/mviehweger/.rvm/wrappers/ruby-2.4.2/ruby | |
# frozen_string_literal: true | |
# http://trac.luon.net/data/ruby-dbus/tutorial/basic_client.html | |
# for ubuntu, there is d-feet | |
begin | |
require 'dbus' | |
rescue LoadError => e | |
require 'rbconfig' |
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] |
I hereby claim:
To claim this, I am signing this object:
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.
#!/bin/bash | |
# Bash completion for `up` <http://brettterpstra.com/2014/05/14/up-fuzzy-navigation-up-a-directory-tree/> | |
_up_complete() | |
{ | |
local rx | |
local token=${COMP_WORDS[$COMP_CWORD]} | |
local IFS=$'\t' | |
local words=$(dirname `pwd` | tr / " ") | |
local nocasematchWasOff=0 |
# inspired by `bd`: https://github.com/vigneshwaranr/bd | |
function _up() { | |
local rx updir | |
rx=$(ruby -e "print '$1'.gsub(/\s+/,'').split('').join('.*?')") | |
updir=`echo $PWD | ruby -e "print STDIN.read.sub(/(.*\/${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 | |
# SearchLink 2.1.0 by Brett Terpstra 2014 (http://brettterpstra.com) | |
# Free to use and modify, please maintain attribution | |
require 'net/https' | |
require 'shellwords' | |
require 'yaml' | |
require 'rubygems' | |
require 'json' | |
require 'cgi' |
#!/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 |