start new:
tmux
start new with session name:
tmux new -s myname
| # | |
| # written for Amazon Linux AMI | |
| # creates an AWS Lambda deployment package for pytorch deep learning models (Python 3.6.1) | |
| # assumes lambda function defined in ~/main.py | |
| # deployment package created at ~/waya-ai-lambda.zip | |
| # | |
| # | |
| # install python 3.6.1 | |
| # |
| -- Create a group | |
| CREATE ROLE readaccess; | |
| -- Grant access to existing tables | |
| GRANT USAGE ON SCHEMA public TO readaccess; | |
| GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; | |
| -- Grant access to future tables | |
| ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess; |
| #!/usr/bin/python2.7 | |
| #-*- coding=utf-8 -*- | |
| import shlex | |
| import subprocess | |
| from tornado.gen import coroutine, Task, Return | |
| from tornado.process import Subprocess | |
| from tornado.ioloop import IOLoop |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| pip install networkx distance pattern | |
| In Flipboard's article[1], they kindly divulge their interpretation | |
| of the summarization technique called LexRank[2]. |
| alias gundo='git reset HEAD~ && git clean -df' |
| set shell=/bin/bash | |
| if $TERM == "xterm" | |
| set t_Co=256 " 256 colors | |
| endif | |
| set nocompatible " be iMproved | |
| let mapleader="," " change the leader to be a comma vs slash | |
| filetype off " required! | |
| set rtp+=~/.vim/bundle/vundle/ | |
| call vundle#rc() |
| # download latest libevent2 and tmux sources, and extract them somewhere | |
| # (thx bluejedi for tip on latest tmux URL) | |
| # | |
| # at the time of writing: | |
| # https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
| # http://sourceforge.net/projects/tmux/files/latest/download?source=files | |
| # | |
| # install deps | |
| yum install gcc kernel-devel make ncurses-devel |