This is a collection of all the information I came across while setting up my own Xenforo forum (migrating from Reddit subs). I'll keep it updated as I learn more.
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; | |
| ;; Solo freelancer's S-Corp tax optimization | |
| ;; | |
| ;; Assumes an unmarried single-shareholder and tons of other stuff. | |
| ;; I'm not a tax professional, no guarantees here, probably typos, etc. Come on! | |
| ;; Run with https://github.com/Z3Prover/z3 | |
| ;; | |
| ;; See also my notes at https://kevinlynagh.com/financial-plan/ |
| title | Docker Compose Cheatsheet |
|---|---|
| subtitle | Quick reference for Docker Compose commands and config files |
| author | Jon LaBelle |
| date | April 7, 2019 |
| source | https://jonlabelle.com/snippets/view/markdown/docker-compose-cheatsheet |
| // The following data should be run in the console while viewing the page https://read.amazon.com/ | |
| // It will export a CSV file called "download" which can (and should) be renamed with a .csv extension | |
| var db = openDatabase('K4W', '2', 'thedatabase', 1024 * 1024); | |
| getAmazonCsv = function() { | |
| // Set header for CSV export line - change this if you change the fields used | |
| var csvData = "ASIN,Title,Authors,PurchaseDate\n"; | |
| db.transaction(function(tx) { |
The following are examples of the four types rate limiters discussed in the accompanying blog post. In the examples below I've used pseudocode-like Ruby, so if you're unfamiliar with Ruby you should be able to easily translate this approach to other languages. Complete examples in Ruby are also provided later in this gist.
In most cases you'll want all these examples to be classes, but I've used simple functions here to keep the code samples brief.
This uses a basic token bucket algorithm and relies on the fact that Redis scripts execute atomically. No other operations can run between fetching the count and writing the new count.
| Price breakdown vs DigitalOcean, Vultr and Linode: | |
| RAM / CPU Cores / STORAGE / Transfer | |
| $5/mo | |
| LightSail: 512MB, 1, 20GB SSD, 1TB | |
| DO: 512MB, 1, 20GB SSD, 1TB | |
| VULTR: 768MB, 1, 15GB SSD, 1TB | |
| $10/mo |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <!-- iOS 10, macOS Sierra, and friends bring a new logging subsystem that's | |
| supposed to scale from the kernel, up to frameworks, and up to apps. It defaults | |
| to a more regimented, privacy-focused approach that large apps and complex | |
| systems need. | |
| It, along with Activity Tracing introduced in iOS 8 and macOS Yosemite and the | |
| Console app in macOS Sierra, hope to help you graduate from caveman debugging to |
(NOTE: Current and future versions of this and any other Advantage 2-related things I post will be at https://github.com/nicholasknight/adv2keyboard)
I received my Advantage 2 today. There's no full manual yet, even though keyboards are apparently arriving (hint, hint, Kinesis). The quick start guide leaves out the "power user mode", and there are some other quirks.
Update: A manual has been posted at http://www.kinesis-ergo.com/advantage2-resources/
It includes a dictionary for the key maps, but I know it leaves at least one possible key undocumented: it does not list f14, but I have successfully mapped my scrollock to f14 regardless.
It also mentions a firmware version (1.0.18) that doesn't seem to be available yet, with a new feature (status report playback speed).
{
"result": {
"heroes": [
{
"name": "npc_dota_hero_antimage",
"id": 1
},
{
"name": "npc_dota_hero_axe",
| (define (leftpad s l c) | |
| (if (number? s) | |
| (set! s (number->string s)) | |
| ) | |
| (if (number? c) | |
| (set! c (number->string c)) | |
| ) | |
| (define (_leftpad _s _l _c) | |
| (if (<= _l 0) | |
| _s |