Tried mitmproxy & mitmweb

Today I came by and gave it a shot just to know what it is capable of. For example for REST API communication debugging. The mitmweb is in beta, but looks good and also worked for me 🙂

The best is that they provide a docker image so trying it out was really simple.

  1. Just run docker run --rm -it -p 8080:8080 -p 8081:8081 --net="host" mitmproxy/mitmproxy mitmweb
  2. Open http://127.0.01:8081
  3. I changed Firefox to use proxy at and port 8080 and browsed the web with mitmproxy intercepting the HTTP communication

mitmproxy & mitmweb

Switched to browser bookmarks from Pocket

I got annoyed by malformed articles in Pocket so I removed the app from tablet, smartphone and browser and switched to use browser (Chrome) bookmarks. Just created a _read bookmark directory to be it up in the order (due sort by title).

read bookmark directory

So now during my morning reading on tablet I use Chrome instead Pocket app.
While using Chrome I provide better analytics data for the article authors. If they share knowledge for free, they get some free statistics from me in return 🙂

A step from my morning ritual

I decided to share a step from my morning ritual. Maybe someone gets inspired 🙂

The step is “opening all bookmarks from daily folder”ss_2017-08-31-06-32-43

When I get tired or annoyed by something a just remove it or I wanna learn about something new I just add it to the channels to occupy my mind with stuff that I care about, want to learn more about.

For example the Free learning site will not be long in the list.


Open new Chrome window from command line via SSH

I switch between computers and sometimes when I’m switching I need to push an URL/prepare a window so found a solution with the following command:

mike@remotehost $ export DISPLAY=:0; nohup chromium --new-window

UPDATE 2017-06-18

DISPLAY=:0 nohup chromium URL_TO_OPEN_ON_REMOTE_BROWSER > /dev/null &

view raw
hosted with ❤ by GitHub

Browser memory usage

I was curious why did Chromium “eat” my system memory and so I checked chrome://chrome-urls/ to see what’s there for memory usage debugging.

Saw chrome://memory-internals/ and checked it out. There’s the proof for browser tab and extension usage.

Chrome memory usage data from chrome://memory-internals

Tried closing and reopening some tabs, but before that I typed free -h to check memory usage.

$ free -h
              total        used        free      shared  buff/cache   available
Mem:           3.9G        1.9G        1.3G         53M        682M        1.8G
Swap:          2.8G        276M        2.5G
$ free -h
              total        used        free      shared  buff/cache   available
Mem:           3.9G        1.9G        1.3G         53M        684M        1.9G
Swap:          2.8G        275M        2.5G
$ free -h
              total        used        free      shared  buff/cache   available
Mem:           3.9G        2.0G        1.2G         58M        694M        1.7G
Swap:          2.8G        273M        2.5

The numbers were not lying. So if you working with a lot of tabs and extensions more RAM will benefit your system.

Similiar goodies are available also in Firefox. At you can see a list of internal about:* sites of Firefox.

For memory usage visit about:memory and click Measure

Firefox memory usage

Custom Chrome New Tab page/extension

I wanted a custom background image for New Tab without extensions from the Chrome Web Store. Before making one I tried Momentum and Start a better new tab, but required permissions, had external network dependency, etc.

So I decided to make one and found the official tutorial how to build chrome extension.

For me learning from code examples is more suitable so I checked the Samples and found a New Tab example that I modified it to meet my desired output.

To be able to use it you need to enable Developer mode at chrome://extensions/ in the top right corner.

Chrome extensions developer mode
Chrome extensions developer mode

And the end result for me looks like this.
Custom Chrome New Tab