On my company laptop, I want to be able to use my personal github account as well as the company one, and to push commits to repos using the proper account. How could I do that?
In an ad hoc work, I need to read in files in multiple HDFS directories based on a date range.
The HDFS data structure is like the following
Provided a date e.g.20170801, I need to read in the files from folder
/data/20170830, but not others.
So to achieve this inside my python script, I searched online and finally arrived at the following solution.
Then, so fit my specific needs, I just need to do a simple filtering for the list.
Oh-my-zsh is becoming unbearably slow…
Here are some approaches to speed up it.
A beginner’s notes when learning TCP/IP.
A command-line coursera downloader written in Python.
You can download the script from my GitHub repo here: https://github.com/yingchi/coursera-downloader
When learning wonderful modules on Coursera, I found it quite frustrating when I need to click multiple places and move back and forth to download the learning materials for one course.
After searching around, I found 2 github repo that can help people to download course materials from Coursera. However, one of the repo stopped updating and another is not very convenient to use.
So I decided to combine the good features from them and write a new downloading tool. You will need your Coursera email and password if you use the script, but don’t worry, they are encrypted and saved into a local file.
Installation memo for hadoop on Mac Sierra.
Solve the “zsh: no matches found: local” issue when running a spark application.