- Download the fastboot ROM suitable for your device from the MIUI site and extract the downloaded archive [edit: MIUI page is dead. Use Xiaomi Firmware Updater]
- Download and extract the Android SDK Platform Tools
- Make sure
adbandfastboot(components of platform-tools) are in your
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash -x | |
| exec > /tmp/user-data.log 2>&1 | |
| mkdir -p /var/spool/rsyslog | |
| ( | |
| mkdir -p /etc/rsyslog.d/keys/ca.d | |
| cd /etc/rsyslog.d/keys/ca.d | |
| curl -O https://logdog.loggly.com/media/logs-01.loggly.com_sha12.crt |
#Distributed System Course List
##Systems
-
Cornell CS 614 - Advanced Course in Computer Systems - Ken Birman teaches this course. The readings cover more distributed systems research than is typical (which I am in favour of!). In fact, there's barely anything on traditional internal OS topics like filesystems or memory management. There's some worthwhile commentary at the bottom of the page.
-
Princeton COS 518 - Advanced Operating Systems - short and snappy reading list of two papers per topic, covering some interesting stuff like buffering inside the operating system, and L4.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| error_page 400 404 405 =200 @40*_json; | |
| location @40*_json { | |
| default_type application/json; | |
| return 200 '{"code":"1", "message": "Not Found"}'; | |
| } | |
| error_page 500 502 503 504 =200 @50*_json; | |
| location @50*_json { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| error_page 500 /500.html; | |
| location /500.html{ | |
| return 500 '{"error": {"status_code": 500,"status": "Internal Server Error"}}'; | |
| } | |
| error_page 502 /502.html; | |
| location /502.html{ | |
| return 502 '{"error": {"status_code": 502,"status": "Bad Gateway"}}'; | |
| } |