Skip to content

Instantly share code, notes, and snippets.

View ragingbal's full-sized avatar

Balaji Bal ragingbal

View GitHub Profile
@ragingbal
ragingbal / index.html
Created May 21, 2022 08:25
Node Editor UI
<svg id="svg">
</svg>
---
commands:
- command:
name: create
description: some descriptions
parent_comand: root
options:
- option:
name: pods
description: get pods
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 .
mc cp $(ls file_abc*) dev/dropzone/ #copy multiple files
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',
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)
<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" />
import smtplib
from email.message import EmailMessage
from email.headerregistry import Address
from email.utils import make_msgid
import jinja2
msg = EmailMessage()
kubectl get pods -n default --no-headers=true | awk '/web-app/{print $1}'| xargs kubectl delete -n default pod
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)