- TAB
- Cycle subtree folded -> children -> subtree
- S-TAB, C-u TAB
- Cycle buffer
- C-u C-u C-u TAB
- Expand all
- #+STARTUP: `overview`|`content`|`showall`
- Startup options
- C-c C-n
- Next heading
<?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"> | |
<dict> | |
<key>Label</key> | |
<string>gnu.emacs.daemon</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/emacs</string> |
(defn powerset [[h & t]] | |
(if (nil? h) | |
[()] | |
(for [x (powerset t) | |
y [x (cons h x)]] | |
y))) | |
(defn tails [[ _ & t :as xs]] | |
(when xs (cons xs (tails t)))) |
With thanks to http://superuser.com/a/1171026/39144
It seems like there is an entirely different method for changing the open files limit for each version of OS X! For OS X Sierra (10.12.X) you need to:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
'''Pexpect is a Python module for spawning child applications and controlling | |
them automatically. Pexpect can be used for automating interactive applications | |
such as ssh, ftp, passwd, telnet, etc. It can be used to a automate setup | |
scripts for duplicating software package installations on different servers. It | |
can be used for automated software testing. Pexpect is in the spirit of Don | |
Libes' Expect, but Pexpect is pure Python. Other Expect-like modules for Python | |
require TCL and Expect or require C extensions to be compiled. Pexpect does not | |
use C, Expect, or TCL extensions. It should work on any platform that supports | |
the standard Python pty module. The Pexpect interface focuses on ease of use so | |
that simple tasks are easy. |
(defn log2 [n] (/ (Math/log n) (Math/log 2))) | |
(defn entropy | |
"Calculate Shannon entropy for xs. Higher value is greater entropy. | |
Values returned between 0.0 & 8.0" | |
[xs] | |
(let [freqs (vals (frequencies xs)) | |
cnt (reduce + freqs) | |
calc #(let [p (double (/ % cnt))] | |
(* p (log2 p)))] |
I hereby claim:
To claim this, I am signing this object:
MessageHub is Kafka
Kafka/MessageHub is a distributed log. It scales writes via partitioning data. You can write a custom partitioner, though the DefaultPartitioner is often sufficient for most applications.
The DefaultPartitioner uses the message key to determine which partition to write a message. This allows control of where messages are written (important for ConsumerGroups…). This also means that Kafka is susceptible to hot partitions, where more messages are being routed to a partition than can be supported by the disk IO of the Kafka nodes hosting
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;; https://gist.github.com/agarman/e0eed5ff2989f938ef2cf81be9b448bd | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;; Setup packages | |
(package-initialize) | |
(add-to-list 'package-archives | |
'("melpa-stable" . "https://stable.melpa.org/packages/") t) |