Skip to content

Instantly share code, notes, and snippets.

View s905060's full-sized avatar
🏠
Working from home

Cheng-Hsiu (Jash) Lee s905060

🏠
Working from home
View GitHub Profile
@ssmythe
ssmythe / devops_training.txt
Last active January 14, 2025 22:29
Training materials for DevOps
======
Videos
======
DevOps
What is DevOps? by Rackspace - Really great introduction to DevOps
https://www.youtube.com/watch?v=_I94-tJlovg
Sanjeev Sharma series on DevOps (great repetition to really get the DevOps concept)
@ondrej-kvasnovsky
ondrej-kvasnovsky / vertica-commands
Last active July 31, 2018 10:30
Vertica commands
-- login to vsql
vsql -Ulogin -wpassword
-- number of running processes
ps -ef | grep -i vertica-udx-R | wc -l
-- list all nodes thet are UP
admintools -t list_allnodes | grep UP
-- restart a node
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active July 24, 2025 13:35
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@StuHorsman-zz
StuHorsman-zz / gist:9925431
Last active September 12, 2019 00:22
Set debug on namenode (example block placement policy)
sudo -u hdfs hadoop daemonlog -setlevel <namenode host>:50070 org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementPolicy DEBUG
@jeongho
jeongho / hadoop-benchmark
Last active July 18, 2016 06:47
Hadoop benchmark
http://answers.oreilly.com/topic/460-how-to-benchmark-a-hadoop-cluster/
http://www.michael-noll.com/blog/2011/04/09/benchmarking-and-stress-testing-an-hadoop-cluster-with-terasort-testdfsio-nnbench-mrbench/
## MR pi
https://gist.github.com/jeongho/371aaed47ab462d79851
## Terasort
https://gist.github.com/jeongho/3b8c028f5e8409c3a10a
## TestDFSIO
@miketheman
miketheman / zook_grow.md
Created July 22, 2013 21:36
Adding nodes to a ZooKeeper ensemble

Adding 2 nodes to an existing 3-node ZooKeeper ensemble without losing the Quorum

Since many deployments may start out with 3 nodes and so little is known about how to grow a cluster from 3 memebrs to 5 members without losing the existing Quorum, here is an example of how this might be achieved.

In this example, all 5 nodes will be running on the same Vagrant host for the purpose of illustration, running on distinct configurations (ports and data directories) without the actual load of clients.

YMMV. Caveat usufructuarius.

Step 1: Have a healthy 3-node ensemble

@leommoore
leommoore / linux_running_a_node_service_pm2.md
Last active March 23, 2019 11:29
Linux - Running a Node Service (PM2)
@nattster
nattster / catch_sigterm.py
Created June 5, 2013 14:43
When Python process was killed, this code will catch SIGTERM and allow us to do some finalizations.
import signal
import sys
def signal_term_handler(signal, frame):
print 'got SIGTERM'
sys.exit(0)
signal.signal(signal.SIGTERM, signal_term_handler)
@jshaw
jshaw / byobuCommands
Last active July 18, 2025 05:48
Byobu Commands
Byobu Commands
==============
byobu Screen manager
Level 0 Commands (Quick Start)
------------------------------
<F2> Create a new window
@lonetwin
lonetwin / print_table.py
Last active May 7, 2021 15:42
print out ascii tables in python using data in the form: [ ('column 0 title', 'column 1 title' ..), ('row 0, column 0 data', 'row 0, column 1 data' ...) ...]
# I needed to print out ascii tables from data in the form:
# [ ('column 0 title', 'column 1 title' ..),
# ('row 0, column 0 data', 'row 0, column 1 data' ...) ...]
#
# and surprisingly it got complicated because of variable lengths of the data.
# I googled for 'standard' ways of doing this and I found suggestions like:
# http://stackoverflow.com/questions/5909873/python-pretty-printing-ascii-tables
# ...which were a bit dated and hard to read or full scale modules like:
#
# http://pypi.python.org/pypi/texttable/