start new:
tmux
start new with session name:
tmux new -s myname
| The Trouble With Terminals | |
| Thu, 16 Dec 2010 16:43:20 -0800 | |
| Copyright 2010 Kevin Goodsell | |
| 0. License | |
| This work is licensed under a Creative Commons | |
| Attribution-NonCommercial-ShareAlike 3.0 Unported License. To view a |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <title>Enterprisify your Java Class Names! (by Hay Kranen)</title> | |
| <style> | |
| body { | |
| background: white; | |
| text-align: center; |
| # Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key | |
| # that enables you to choose a character from a menu of options. If you are on Lion | |
| # try it by pressing and holding down 'e' in any app that uses the default NSTextField | |
| # for input. | |
| # | |
| # It's a nice feature and continues the blending of Mac OS X and iOS features. However, | |
| # it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode, | |
| # as it means you cannot press and hold h/j/k/l to move through your file. You have | |
| # to repeatedly press the keys to navigate. |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| # Ubuntu 14.04 don't have nsenter - the straight forward way required me to install build tools and etc. | |
| # I preferred to keep the system clean and install nsenter in a container and then copy the command to the host | |
| # Note - its also possible to run nsenter from a container (didn't tried) https://github.com/jpetazzo/nsenter | |
| # start a container | |
| docker run --name nsenter -it ubuntu:14.04 bash | |
| ## in the docker | |
| apt-get update | |
| apt-get install git build-essential libncurses5-dev libslang2-dev gettext zlib1g-dev libselinux1-dev debhelper lsb-release pkg-config po-debconf autoconf automake autopoint libtool |
| # Initialize the scroll | |
| page = es.search( | |
| index = 'yourIndex', | |
| doc_type = 'yourType', | |
| scroll = '2m', | |
| search_type = 'scan', | |
| size = 1000, | |
| body = { | |
| # Your query's body | |
| }) |
In React's terminology, there are five core types that are important to distinguish:
React Elements