A tiny (265 byte) utility to create state machine components using two pure functions.
The API is a single function that accepts 2 pure functions as arguments:
| Vim has many plugins (vim-go, ale, etc.) that use the quickfix/location list | |
| feature. Some of these plugins process the output of an external command and | |
| update the quickfix list asynchronously as the output becomes available. | |
| Updating a quickfix or location list asynchronously opens up the possibility | |
| that two or more plugins may try to update the same quickfix list with | |
| different output. Also when a plugin is updating a quickfix list in the | |
| background, the user may issue a command that creates or updates a quickfix | |
| list. The plugin may then incorrectly use this new list to add the entries. |
A tiny (265 byte) utility to create state machine components using two pure functions.
The API is a single function that accepts 2 pure functions as arguments:
| " URL encode/decode selection | |
| vnoremap <leader>en :!python -c 'import sys,urllib;print urllib.quote(sys.stdin.read().strip())'<cr> | |
| vnoremap <leader>de :!python -c 'import sys,urllib;print urllib.unquote(sys.stdin.read().strip())'<cr> |
| -- more info http://aaron-hoffman.blogspot.com/2017/02/iphone-text-message-sqlite-sql-query.html | |
| select | |
| m.rowid | |
| ,coalesce(m.cache_roomnames, h.id) ThreadId | |
| ,m.is_from_me IsFromMe | |
| ,case when m.is_from_me = 1 then m.account | |
| else h.id end as FromPhoneNumber | |
| ,case when m.is_from_me = 0 then m.account | |
| else coalesce(h2.id, h.id) end as ToPhoneNumber | |
| ,m.service Service |
Our goal here is to have one USB stick to rule them all. Objectives:
The last bullet is subject to interpretation, but I'm defining functional as:
| -- LICENSE | |
| -- | |
| -- This software is dual-licensed to the public domain and under the following | |
| -- license: you are granted a perpetual, irrevocable license to copy, modify, | |
| -- publish, and distribute this file as you see fit. | |
| -- VERSION 0.1.0 | |
| -- Author: Forrest Smith (github.com/forrestthewoods/lib_fts) | |
| -- Translated to Lua by Blake Mealey (github.com/blake-mealey) |
| @echo off | |
| setlocal | |
| call :setESC | |
| cls | |
| echo %ESC%[101;93m STYLES %ESC%[0m | |
| echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m | |
| echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m | |
| echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m |
This is a guide to install ubuntu 16.04 minimal on a ZFS root partition. It supports EFI or MBR (bios) booting, and has been tested (too many) times on VMWare workstation, but it should work anywhere. Note, you will need to install using a Live-CD: I'd recommend using using Lubuntu because it's lightwieght. You could also install a stock copy of ubuntu on to a USB stick and use that.
To start, we are going to install and set up SSH access to the liveCD so that we can copy and paste things easier. I made a little script to install needed stuff and enable SSH. To run it easier, run the following command:
wget -O bootstrap https://img.sharo.se/YdmjT.txt; sudo bash bootstrap| // LICENSE | |
| // | |
| // This software is dual-licensed to the public domain and under the following | |
| // license: you are granted a perpetual, irrevocable license to copy, modify, | |
| // publish, and distribute this file as you see fit. | |
| using System; | |
| using System.Collections.Generic; | |
| public static class FuzzyMatcher |