sudo install cmake
wget https://github.com/google/leveldb/archive/1.23.tar.gz leveldb.tar.gz
tar -zxvf 1.23.tar.gz
cd leveldb-1.23
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release .. && cmake --build .
This file contains 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
<svg id="svg"> | |
</svg> |
This file contains 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
--- | |
commands: | |
- command: | |
name: create | |
description: some descriptions | |
parent_comand: root | |
options: | |
- option: | |
name: pods | |
description: get pods |
This file contains 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
mc cp $(ls file_abc*) dev/dropzone/ #copy multiple files |
This file contains 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
CREATE TABLE testjoins.yt_sample_mapping_1( | |
`col1` string, | |
`col2` string, | |
`col3` string) | |
ROW FORMAT SERDE "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe" | |
WITH SERDEPROPERTIES ( "separatorChar" = ",", | |
"quoteChar" = "\"", | |
"escapeChar" = "\\", | |
"serialization.encoding"='ISO-8859-1') | |
TBLPROPERTIES ( 'store.charset'='ISO-8859-1', |
This file contains 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
import sys, getopt | |
def main(argv): | |
inputfile = '' | |
outputfile = '' | |
try: | |
opts, args = getopt.getopt(argv,"hi:o:",["ifile=","ofile="]) | |
except getopt.GetoptError: | |
print 'test.py -i <inputfile> -o <outputfile>' | |
sys.exit(2) |
This file contains 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
<html> | |
<head></head> | |
<body> | |
<p>Salut!</p> | |
<p>Cela ressemble à un excellent | |
<a href="https://avatars2.githubusercontent.com/u/12369308?s=400&u=7c0e00191e1f05956619417b8c2b3c1cf0bdd906&v=4"> | |
recipie | |
</a> déjeuner. | |
</p> | |
<img src="https://avatars2.githubusercontent.com/u/12369308?s=400&u=7c0e00191e1f05956619417b8c2b3c1cf0bdd906&v=4" /> |
This file contains 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
import smtplib | |
from email.message import EmailMessage | |
from email.headerregistry import Address | |
from email.utils import make_msgid | |
import jinja2 | |
msg = EmailMessage() |
This file contains 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
kubectl get pods -n default --no-headers=true | awk '/web-app/{print $1}'| xargs kubectl delete -n default pod |
This file contains 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
from hdfs import Config | |
client = Config().get_client('dev') | |
fnames = client.list('/') | |
print(fnames) | |
client.upload(hdfs_path='/data/download.csv', local_path='download.csv', n_threads=1, temp_dir=None, chunk_size=65536, progress=None, cleanup=True) |
NewerOlder