Markdown Preview Use Sublime Text 3

Download Sublime Text 3 http://www.sublimetext.com/3 Install Package Control https://packagecontrol.io/installation#st3 Use Ctrl + ` or View > Show Console open the Sublime Text console. Copy the text into console and press Enter to install Package Control. Once finished installation, restart Sublime. Install Markdown Preview package Open command palette via Ctrl + Shift + p or Preferences > Package Control from menu. After typing install and press Enter, it will pop-up a package menu. ...

August 12, 2015 · 1 min · oopsmonk

Drawing IP Geolocation on World Map

I found some mystery visitors in nginx’s access log. I tried to figure out the location of those visitors and what they did. IP collection First copy nginx’s access log to a folder and save all logs into a single file. $ mkdir mysteryIPs && cd $_ $ sudo cp /var/log/nginx/access.log.* . $ zcat access.log.* > access-gz.log $ cat access.log.1 >> access-gz.log $ cat access.log >> access-gz.log Remove LAN accesses from log file, for example my subnet IP rang is 192.168.x.x ...

August 1, 2015 · 4 min · oopsmonk

Dependency src specified more than once

This problem appered when I was checking out older tag from the Chromium project. Working with Release Branches ~/chromium_build/src$ git fetch --tags ~/chromium_build/src$ git checkout -b tag_35.0.1849.0 35.0.1849.0 ~/chromium_build/src$ gclient sync --with_branch_heads --jobs 16 Error log: Syncing projects: 100% ( 1/ 1) src src (ERROR) ---------------------------------------- [0:00:00] Started. ________ running 'git reset --hard HEAD' in '/home/sam.chen/chromium_source/src' [0:00:00] HEAD is now at 77bd011 Publish DEPS for Chromium 35.0.1849.0 [0:00:00] _____ src : Attempting rebase onto 77bd011602b1799f715591e697806c55e7ef8b7f... [0:00:00] Current branch tag_35.0.1849.0 is up to date. [0:00:00] ---------------------------------------- Error: 1> Dependency src specified more than once: 1> src(https://chromium.googlesource.com/chromium/src.git) [https://chromium.googlesource.com/chromium/src.git] 1> vs 1> src(https://chromium.googlesource.com/chromium/src.git) -> src(https://chromium.googlesource.com/chromium/src.git@ae69ae7642 35ccaac55fc44a3b5f3276ff34cb58) [https://chromium.googlesource.com/chromium/src.git@ae69ae764235ccaac55fc44a3b5f3276ff34cb58] You need to edit the .DEPS.git file, remove the entry ‘src’ and then gcient sync --with_branch_heads. ...

July 31, 2015 · 1 min · oopsmonk

Build Android WebView From The Chromium Projects

First, check out and install the depot_tools package. $ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git $ export PATH=$PATH:/path/to/depot_tools Checkout source code $ mkdir ~/chromium_build && cd $_ ~/chromium_build$ fetch --nohooks android //Configure GYP ~/chromium_build$ echo "{ 'GYP_DEFINES': 'OS=android', }" > chromium.gyp_env //Update projects from gyp files. //You may need to run this again when you have added new files, updated gyp files, or sync'ed your repository. ~/chromium_build$ gclient runhooks Environment setup ~/chromium_build$ sudo apt-get install openjdk-7-jdk //config default JDK ~/chromium_build$ sudo update-alternatives --config javac ~/chromium_build$ sudo update-alternatives --config java ~/chromium_build$ sudo update-alternatives --config javaws ~/chromium_build$ sudo update-alternatives --config javap ~/chromium_build$ sudo update-alternatives --config jar ~/chromium_build$ sudo update-alternatives --config jarsigner //install build dependencies ~/chromium_build$ src/build/install-build-deps-android.sh // Install Google Play Services ~/chromium_build$ src/third_party/android_tools/sdk/tools/android update sdk --no-ui --filter 57 Build ~/chromium_build$ cd ~/chromium_build/src //Full browser ~/chromium_build/src$ ninja -C out/Debug chrome_public_apk //WebView ~/chromium_build/src$ ninja -C out/Debug android_webview_apk //sync source ~/chromium_build/src$ gclient sync Android APK location: ~/chromium_source/src/out/Debug/apks/ ...

July 31, 2015 · 1 min · oopsmonk

Install LaTeX on Ubuntu 14.04

This is a How-To article that include installation and compile LaTeX file to PDF using Texmaker, Sublime Text 3, and Vim. Install TeX Live Install texlive-latex-extra instead of texlive-latex-base. $sudo apt-get install texlive-latex-extra -y Initial user tree in home directory Before using tlmgr in user mode, you have to set up the user tree with the init-usertree action. tlmgr is TeX Live package manager, you can run tlmgr --help for more detail. The full documentation for tlmgr ...

July 9, 2015 · 2 min · oopsmonk

New Feature: Real-Time Monitoring

Real-Time Monitor for rpi-monitor: Update system status every 5 seconds. Two HTML layouts: change different layout via click Real-Time on navigation bar. Project on github: rpi-monitor Layout 1(default): Layout 2:

July 4, 2015 · 1 min · oopsmonk

Basic Calisthenics Workout

Core Hollow Body Hold Plank Variation L Sit Upper Chest/Push up Exercises & Variations Pull-up Dips Lower Lower Back Leg workout Other resources Full Body workout Core beginner to advanced Push beginner to advanced Push beginner to advanced Comprehensive handstand tutorial

April 22, 2015 · 1 min · oopsmonk