Skip to content

Instantly share code, notes, and snippets.

View msdotnetclr's full-sized avatar

Jian (Miracle) Zhou msdotnetclr

View GitHub Profile
@msdotnetclr
msdotnetclr / presto-cli-sample.sh
Last active February 13, 2018 20:34
Presto CLI script example
export PRESTO_PASSWORD=*****
./presto194 \
--server https://presto.server:31443 \
--catalog <mycatalog> \
--keystore-password password \
--keystore-path /mnt/c/private/presto-client.jks \
--schema <myschema> \
--output-format TSV \
--user <username> \
@msdotnetclr
msdotnetclr / backup-restore-docker-named-volume.md
Created February 27, 2018 17:25
Backup and restore named Docker volume

To backup some_volume to /tmp/some_archive.tar.bz2 simply run:

docker run -it -v some_volume:/volume -v /tmp:/backup alpine \
    tar -cjf /backup/some_archive.tar.bz2 -C /volume ./

And to restore run:

@msdotnetclr
msdotnetclr / youtube-content-domain.txt
Created March 1, 2018 04:10
Restrict YouTube content on your network or managed devices
www.youtube.com
m.youtube.com
youtubei.googleapis.com
youtube.googleapis.com
www.youtube-nocookie.com
From https://support.google.com/a/answer/6214622?hl=en
@msdotnetclr
msdotnetclr / Visa-Reciprocity-and-Civil-Documents-by-Country-China.txt
Created April 12, 2018 15:00
U.S. Visa: Reciprocity and Civil Documents by Country > China
https://travel.state.gov/content/travel/en/us-visas/Visa-Reciprocity-and-Civil-Documents-by-Country/China.html
@msdotnetclr
msdotnetclr / process.txt
Last active June 10, 2022 17:41
Build Hadoop 2.9.1 with SNAPPY support in CentOS 6.5
######## execute as root ######
sudo su
service iptables stop
chkconfig iptables off
# centos 7:
# systemctl disable firewalld
# systemctl stop firewalld
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
reboot
sudo su
{
"name": "Digital Labs Technologies",
"children": [
{
"name": "Data Analytics",
"children": [
{
"name": "Data Engineer",
"children": [
{"name": "AgglomerativeCluster", "value": 3938},