(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| #!/bin/sh | |
| # | |
| # description | |
| # | |
| # chkconfig: 3 95 4 | |
| # description: description | |
| ### BEGIN INIT INFO | |
| # Provides: | |
| # Required-Start: |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <schema name="geotest" version="1.5"> | |
| <uniqueKey>_yz_id</uniqueKey> | |
| <fields> | |
| <field name="name" type="string" indexed="true" stored="true"/> | |
| <field name="loc" type="location_rpt" indexed="true" stored="true" /> | |
| <!-- Begin Yokozuna Fields --> | |
| <field name="_yz_id" type="_yz_str" indexed="true" stored="true" required="true" /> |
| /***************************************************************************** | |
| * QuantCup 1: Price-Time Matching Engine | |
| * | |
| * Submitted by: voyager | |
| * | |
| * Design Overview: | |
| * In this implementation, the limit order book is represented using | |
| * a flat linear array (pricePoints), indexed by the numeric price value. | |
| * Each entry in this array corresponds to a specific price point and holds | |
| * an instance of struct pricePoint. This data structure maintains a list |
| #!/bin/bash | |
| # Pull this file down, make it executable and run it with sudo | |
| # wget https://gist.githubusercontent.com/bryanhunter/10380945/raw/build-erlang-17.0.sh | |
| # chmod u+x build-erlang-17.0.sh | |
| # sudo ./build-erlang-17.0.sh | |
| if [ $(id -u) != "0" ]; then | |
| echo "You must be the superuser to run this script" >&2 | |
| exit 1 | |
| fi |
A primer/refresher on the category theory concepts that most commonly crop up in conversations about Scala or FP. (Because it's embarassing when I forget this stuff!)
I'll be assuming Scalaz imports in code samples, and some of the code may be pseudo-Scala.
A functor is something that supports map.
| # Add the following 'help' target to your Makefile | |
| # And add help text after each target name starting with '\#\#' | |
| help: ## Show this help. | |
| @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' | |
| # Everything below is an example | |
| target00: ## This message will show up when typing 'make help' | |
| @echo does nothing |
| # Pre-req: gcc, gcc-c++, git (to clone), openjdk with debug symbols (centos: java-1.8.0-openjdk-debug.x86_64, ubuntu: openjdk-8-dbg) | |
| # Git clone async-profiler https://github.com/jvm-profiling-tools/async-profiler | |
| # Make sure JAVA_HOME is set and you are logged as same user running the java process | |
| cd async-profiler | |
| make all | |
| # Also git clone FlameGraph in the same directory as you clone async-profiler | |
| # sysctl changes | |
| echo 1 > /proc/sys/kernel/perf_event_paranoid | |
| echo 0 > /proc/sys/kernel/kptr_restrict |