start new:
tmux
start new with session name:
tmux new -s myname
| object DataFrameFunctions { | |
| final val TEMP_TABLE_PLACEHOLDER = "~tbl~" | |
| /** Executes a SQL statement on the dataframe. | |
| * Behind the scenes, it registers and cleans up a temporary table. | |
| * | |
| * @param df input dataframe | |
| * @param stmtTemplate SQL statement template that uses the value of | |
| * `TEMP_TABLE_PLACEHOLDER` for the table name. |
Note: This was written using elasticsearch 0.9.
Elasticsearch will automatically create an index (with basic settings and mappings) for you if you post a first document:
$ curl -X POST 'http://localhost:9200/thegame/weapons/1' -d \
'{
"_id": 1,There's an issue with cairo 14.x that results in the axis fonts on the graphs being HUUUUUGE. Downgrading to 12.6 helps:
| def shellout(template, **kwargs): | |
| """ | |
| Takes a shell command template and executes it. The template must use | |
| the new (2.6+) format mini language. `kwargs` must contain any defined | |
| placeholder, only `output` is optional. | |
| Raises RuntimeError on nonzero exit codes. | |
| Simple template: | |
| wc -l < {input} > {output} |
| #!/usr/bin/env python | |
| # coding=utf8 | |
| # author=evi1m0 | |
| # website=linux.im | |
| ''' | |
| 12306 Captcha Picture: | |
| author: Evi1m0@20150316 | |
| 1. Download Captcha | |
| 2. Pic Conver Text |
| #!/bin/bash -ex | |
| # Paste this into ssh | |
| # curl -sL https://gist.github.com/andsens/2913223/raw/bootstrap_homeshick.sh | tar -xzO | /bin/bash -ex | |
| # When forking, you can get the URL from the raw (<>) button. | |
| ### Set some command variables depending on whether we are root or not ### | |
| # This assumes you use a debian derivate, replace with yum, pacman etc. | |
| aptget='sudo apt-get' | |
| chsh='sudo chsh' |