# start tmux
% tmux new-session -s mysession
# detach from session
`d
# reattach to session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------- | |
-- | | |
-- Module : Editors | |
-- Copyright : (c) Hitesh Jasani, 2007 | |
-- License : BSD3 | |
-- | |
-- Maintainer : Hitesh Jasani <[email protected]> | |
-- Stability : provisional | |
-- Portability : | |
-- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################### | |
## Library code | |
type | |
TMaybeKind = enum | |
mkJust, | |
mkNothing | |
TMaybe[T] = object | |
case kind: TMaybeKind | |
of mkJust: val: T |
Main Thread:
- create context
(zmq/context 1)
- create workers and pass them the context
- start the worker threads
- addShutdownHook
- shutdown the worker threads
- join the worker threads
- sleep 2s ;; without this line the terminate context sometimes hangs, with it so far it has never hung
- terminate the context
(.term context)
;; sometimes hangs here
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: localhost | |
tasks: | |
- name: update sysctl | |
action: sysctl state=present reload=yes {{ item }} | |
with_items: | |
# max open files | |
- name=fs.file-max value=65535 | |
# lets not use swap. | |
- name=vm.swappiness value=0 | |
# enable syn coockies. this can actually cause overhead. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install bazel | |
# download tensorflow src | |
# Checkout tagged version | |
# ./configure | |
# Compile | |
bazel build -c opt --copt=-march=native //tensorflow/tools/pip_package:build_pip_package | |
#bazel build -c opt --copt=-mavx --copt=-msse4.1 --copt=-msse4.2 //tensorflow/tools/pip_package:build_pip_package | |
# Build the PIP package |
Command | Desc |
---|---|
brew update |
Update brew package info |
brew upgrade <package-name> |
Install new version of package |
brew info <package-name> |
See which version is linked |
brew ls <package-name> --versions |
List package versions |
brew ls <package-name> |
List files in package |
brew switch <package-name> <version> |
Link to specified version of package |
brew cleanup |
Remove outdated package versions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run: | |
clj -Sdeps '{:paths ["."] :deps {org.clojure/clojurescript {:git/url "https://github.com/clojure/clojurescript" :sha "ec0e4c49fa5bf97d6c8b5a8e5d3bd957855bfe56"}}}' -m cljs.main -re browser -c index -r | |
run-reagent: | |
clj -Sdeps '{:paths ["."] :deps {org.clojure/clojurescript {:git/url "https://github.com/clojure/clojurescript" :sha "ec0e4c49fa5bf97d6c8b5a8e5d3bd957855bfe56"} reagent {:mvn/version "0.8.0-alpha2"}}}' -m cljs.main -re browser -c index-reagent -r |
OlderNewer