linux

Accessing docker playground from remote

Looking for a solution similar to katacoda, which we can learn interactively. Came across this project which provides a ‘docker-in-docker’ enviornment to try things out. Follow through the document and bring up the application but I cannot access it in the browser using anything but ‘localhost’. From the log, I have noticed the following lines,

~1 min read

Installing pip packages from local

Installing packages behind firewall is troublesome, to say the least. Connectivity is always the culprit since explicit remote host access is never to be a once off exercise.

~1 min read

Setting up virtualenv

It won’t be the single post that talks about virtualenv since everytime I set this up, I forgot what I have done.

~1 min read

Running multiple minikube

Want to try something out but don’t want to mess up the minikube cluster I am using. Turns out there’s a way to run multiple of minikube on the same machine by passing in the -p options. Example below,

~1 min read

Run Selenium test using WebDriverIO in a cron job

I want to generate some traffic to my blog for analytic purpose. Wrote a selenium script using a headless Chrome Browser and WebdriverIO. All works well but it doesn’t work when I put it as a cron job.

~1 min read

Using X410 with WSL2

Getting X11 apps to work in WSL would require a XServer in Windows and X410 is what I am using.

~1 min read

DNS resolving issue in WSL2

My WSL instances failed to apt update and stuck at “0% [working]”. Try to do a wget to the repo and realize the domain name failed to resolve.

~1 min read
Back to Top ↑

wsl

Resuming the minikube cluster

Work machine get restarted over the weekend and I realize the minikube cluster is not running.

~1 min read

WSL2 cannot connect to the internet through LTE

Bringing back my Surface Pro X back to the office and want to hack something out through WSL2. Given it is my own machine and I cannot connect to the office Wi-Fi which I intend on my LTE for internet connectivity.

~1 min read

Using X410 with WSL2

Getting X11 apps to work in WSL would require a XServer in Windows and X410 is what I am using.

~1 min read

DNS resolving issue in WSL2

My WSL instances failed to apt update and stuck at “0% [working]”. Try to do a wget to the repo and realize the domain name failed to resolve.

~1 min read
Back to Top ↑

k3s

Accessing K3s From Wsl Host

I am trying out something with k3d and want to access from the external host. The key to make this happen is to publish the ports needed when I create the cluster.

~1 min read

K3S Experiment

Edge cluster is a topic I would like to explore. I am leveraging some free services I found to conduct my experiment.

~1 min read
Back to Top ↑

network

Checking site accessibility using Powershell

There’s a need to determine certain web site accessibility from a Windows desktop sitting behind a firewall. “Telnet” is the first tool to consider but we want to automate the process as the test would be conducted across a number of PC but scripting around the Telnet command is not pleasant to say the least.

1 min read

WSL2 cannot connect to the internet through LTE

Bringing back my Surface Pro X back to the office and want to hack something out through WSL2. Given it is my own machine and I cannot connect to the office Wi-Fi which I intend on my LTE for internet connectivity.

~1 min read
Back to Top ↑

python

Installing pip packages from local

Installing packages behind firewall is troublesome, to say the least. Connectivity is always the culprit since explicit remote host access is never to be a once off exercise.

~1 min read

Setting up virtualenv

It won’t be the single post that talks about virtualenv since everytime I set this up, I forgot what I have done.

~1 min read
Back to Top ↑

minikube

Running multiple minikube

Want to try something out but don’t want to mess up the minikube cluster I am using. Turns out there’s a way to run multiple of minikube on the same machine by passing in the -p options. Example below,

~1 min read

Resuming the minikube cluster

Work machine get restarted over the weekend and I realize the minikube cluster is not running.

~1 min read

Set the default container engine in minikube

Minikube supports to run on different virtualization engine, such as docker or podman. We can define it in the runtime as argument, or we can put it into configuration file located in

~1 min read
Back to Top ↑

k8s

K3S Experiment

Edge cluster is a topic I would like to explore. I am leveraging some free services I found to conduct my experiment.

~1 min read
Back to Top ↑

docker

Accessing docker playground from remote

Looking for a solution similar to katacoda, which we can learn interactively. Came across this project which provides a ‘docker-in-docker’ enviornment to try things out. Follow through the document and bring up the application but I cannot access it in the browser using anything but ‘localhost’. From the log, I have noticed the following lines,

~1 min read

Using REDIS container image and assign it with a password

By default, the Docker image provided by REDIS is having no authentication password. To secure the access, we need to either pack our container image together with a configuration file or volume mount where the configuration file resides.

~1 min read
Back to Top ↑

development

Back to Top ↑

testing

Back to Top ↑

wsl2

Accessing K3s From Wsl Host

I am trying out something with k3d and want to access from the external host. The key to make this happen is to publish the ports needed when I create the cluster.

~1 min read

Headless Chrome Webdriver Surface Pro X

When I try to execute a WebDriver-IO script in my Surface Pro X with the use of headless Chrome, I encounter the following exception,

~1 min read
Back to Top ↑

edge

K3S Experiment

Edge cluster is a topic I would like to explore. I am leveraging some free services I found to conduct my experiment.

~1 min read
Back to Top ↑

observability

Monitor NodeJS app with New Relic

I would like to add observability to the demo app Let’s Chat. It is written in NodeJS and I am following this page to add the agent needed.

  • Modify package.json and add "newrelic": "latest", according to the alphabatical orders.
  • Modify app.js and add require('newrelic'); at the beginning of the file. In my case, I put it in front of the line require('colors');
~1 min read
Back to Top ↑

nodejs

Monitor NodeJS app with New Relic

I would like to add observability to the demo app Let’s Chat. It is written in NodeJS and I am following this page to add the agent needed.

  • Modify package.json and add "newrelic": "latest", according to the alphabatical orders.
  • Modify app.js and add require('newrelic'); at the beginning of the file. In my case, I put it in front of the line require('colors');
~1 min read
Back to Top ↑

powershell

Checking site accessibility using Powershell

There’s a need to determine certain web site accessibility from a Windows desktop sitting behind a firewall. “Telnet” is the first tool to consider but we want to automate the process as the test would be conducted across a number of PC but scripting around the Telnet command is not pleasant to say the least.

1 min read
Back to Top ↑

redis

Using REDIS container image and assign it with a password

By default, the Docker image provided by REDIS is having no authentication password. To secure the access, we need to either pack our container image together with a configuration file or volume mount where the configuration file resides.

~1 min read
Back to Top ↑

go

Back to Top ↑

jekyll

Add pagination to Jekyll site

I have been using Jekyll to write my blog for quite sometime. The “so-simple-theme” takes care of all the layout and today, I try to add pagination to my site since I have enough entries now.

~1 min read
Back to Top ↑

selenium

Run Selenium test using WebDriverIO in a cron job

I want to generate some traffic to my blog for analytic purpose. Wrote a selenium script using a headless Chrome Browser and WebdriverIO. All works well but it doesn’t work when I put it as a cron job.

~1 min read
Back to Top ↑

kong

Back to Top ↑

api

Back to Top ↑

surface pro x

Headless Chrome Webdriver Surface Pro X

When I try to execute a WebDriver-IO script in my Surface Pro X with the use of headless Chrome, I encounter the following exception,

~1 min read
Back to Top ↑

chrome

Headless Chrome Webdriver Surface Pro X

When I try to execute a WebDriver-IO script in my Surface Pro X with the use of headless Chrome, I encounter the following exception,

~1 min read
Back to Top ↑

webdriver

Headless Chrome Webdriver Surface Pro X

When I try to execute a WebDriver-IO script in my Surface Pro X with the use of headless Chrome, I encounter the following exception,

~1 min read
Back to Top ↑

vs code

Back to Top ↑

windows

Pairing bluetooth keyboard with a PIN

For some reason, the bluetooth adaptor failed to work on my Windows machine. Get it back by updating the drivers. Now my keyboard that was paired before is not recognized and when I try to pair, Windows keep prompting me for a PIN which I don’t have (it pops up once but I don’t get the chance to write it down).

~1 min read
Back to Top ↑

k3d

Accessing K3s From Wsl Host

I am trying out something with k3d and want to access from the external host. The key to make this happen is to publish the ports needed when I create the cluster.

~1 min read
Back to Top ↑