-
I'm an Fremantle Dockers fan, officially
So just over the night I became a Fremantle Dockers fan 🙂 Looks like they won’t make to the final any time soon, which is not a problem. I do like the color and the VI designs.
-
Mining With Solar Power
Here’s a Python script I wrote to check today’s sun rise/set times given a coordinate: https://github.com/raynix/solar-hours/blob/master/solar_hours.py It uses api.sunrise-sunset.org free API to get local sun rise/set time of today. It also takes time zone into consideration as the API only returns times in UTC time zone. It also cache the API result for a day so I’m…
-
Play a bit Kubernetes with Minikube
I’ve just played a bit Kubernetes on my Arch Linux laptop, with Minikube. It’s easier than I thought. Since I’ve already installed VirtualBox from the start, I can use minikube right after I installed it with curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ The command I used to start…
-
Mining ZCash on Ubuntu Linux
I didn’t quite believe that mining crypto currencies is viable as an individual, until I saw the news that AMD graphics cards were sold out because they’re good at mining Ethereum. To be convinced I tried to order AMD RX 570 from some online vendors, and they all cancelled my orders and refunded me shortly.…
-
Linux and Wake on LAN
The Internet servers are usually on 24×7, probably that’s why I never had the need to use the Wake on LAN feature on a computer. I’ve just built a home server running Ubuntu Linux, using consumer grade PC parts. To avoid a big surge on my next electricity bill, I plan to only turn on…
-
Install Fluentd with Ansible
Fluentd has become the popular open source log aggregration framework for a while. I’ll try to give it a spin with Ansible. There are quite some existing Ansible playbooks to install Fluentd out there, but I would like to do it from scratch just to understand how it works. From the installation guide page, I…
-
The Burnout Effect
Back in October 2015 I got an offer from a big data startup, and after 1 year and 4 months I decided to move on. There’s a 3D printer and a drone in the office and the team was talking about Fallout 4 in the morning because it was just released. I thought the company…
-
苹果电脑上的 Home 和 End 键
公司里面一般就给你准备两种笔记本电脑: Windows 10 + Lenovo/Dell/HP 或者 OS X + Macbook Pro. 我拿到的是后者, 而且是很不错的一款, 2015 MBP 顶级配置. 不过苹果电脑里有一些设置真是毫无道理, 例如 Home 和 End 键, 在 OS X 中被定义为[页首]和[页尾], Linux 上 Home 和 End 缺省是[行首]和[行尾]. 我不知道别人的实际应用是怎样的, 但对我而言[行首]和[行尾]要更常用到, 例如, 命令行 😀 下面是如何在 OS X 上重新定义 Home/End (在 Terminal 里完成): mkdir -p ~/Library/KeyBindings cat <<EOF > ~/Library/KeyBindings/DefaultKeyBinding.dict { /* Remap…