Matthew Kwong's Blog

This is my personal journal.

Wednesday, August 17, 2016

Jenkins NodeJS plugin with async or other thirdparty libraries

›
After enabling Jenkins NodeJS plugin, I found it missing async even though I configure it to install async in "Configuring Tools"....
Friday, January 30, 2015

Is glibc-2.17 in Ubuntu 13.10 GHOST vulnerable?

›
Based on some facts: 1. Run the famous GHOST.c and print out "not vulnerable" with 2.17-93ubuntu4 libc6. 2. The patch was in on...
Thursday, January 22, 2015

The preseed to disable the auto update from Ubuntu repo during ISO installation

›
Tried to search google and didn't find an easy answer. Therefore I needed to look at the apt-setup source, and figured out these two pre...
Thursday, October 16, 2014

Unit Testing Bash Scripts

›
Although I have written a lot of shell scripts the past year, I did not write a single unit test to verify my code. In Python, I have unitte...
Friday, September 19, 2014

Integrate jkeymaster with javAuto to support HotKey

›
Today I was looking for an alternative of AutoIt for Linux and found javAuto. After few mins, I already missed the HotKey function in AutoIt...
Wednesday, February 12, 2014

Node.js spawn command line in Linux

›
This is just a wrapper of the Node.js spawn in Linux containing Bash. A trick is to use /bin/bash for the child process and just pipe the co...
Thursday, January 30, 2014

awk sub, system, and getline to variable example

›
This is an example of having awk with system and getline calls... This is similar what debsums -c is doing but you can actually supply a cus...
Tuesday, December 03, 2013

How to make Python raw_input ignores Ctrl-D

›
The way to do this is to have a while loop around raw_input, and not print the question again in the next iteration. However, because of thi...
Monday, July 22, 2013

Syntax error near unexpected token LIBHTPMINVERSION PKG_CHECK_MODULES in Ubuntu

›
When compiling suricata 1.4.1 fresh in Ubuntu, after apt-get install all the necessary dependencies, you may see this: syntax error near un...
Thursday, July 11, 2013

Monkey patch (mock) the built-in raw_input function

›
For testing without mock (thirdparty or 3.x), I wrote a mock context manager function for raw_input. If you do not provide enough response i...
1 comment:
›
Home
View web version

About Me

Matthew Kwong
Sunnyvale, California, United States
View my complete profile
Powered by Blogger.