Sunday, May 28, 2023
Golang: selenium test with Google Chrome browser
Monday, March 20, 2023
golang: sftp connecting to a remote server
Sunday, March 19, 2023
golang: compute PBKDF2 of a password
Saturday, March 18, 2023
golang: example of query and update with MySQL DB
Friday, March 17, 2023
Debug SSL connection with ssltap
1. Run ssltap on port 19240:
$ ssltap -s -p 19240 <remote host>:<remote port>
2. In a browser, access the remote-host:remote-port by connecting to ssltap:
https://localhost:19240
3. Check the ssltap's output
Thursday, March 16, 2023
Oracle: dump stored procedure
SELECT text FROM sys.all_source
WHERE owner = 'schema-owner'
AND name = 'package-name'
AND type = 'PACKAGE BODY'
ORDER BY line;
Wednesday, March 15, 2023
How to stop Google Chrome from automatically redirecting to HTTPS
1. In a new browser tab, enter URL: chrome://net-internals/#hsts
2. Scroll down to "Delete domain security policies" and enter the domain that you don't want automatic redirection. Then click the Delete button.
3. If the problem still exists, try to clean the browsing data/cache by going to Settings => Privacy and security.
Tuesday, March 14, 2023
nginx configuration example for a simple proxy
Build nginx from source code:
$ ./configure --prefix=/path/to/install --with-http_ssl_module --without-http_rewrite_module --with-debug
$ make; make install
Configuration locates at /path/to/install/conf/nginx.conf.
Example of the configuration (for demo purpose only):
Wednesday, November 30, 2022
Windows: Force WiFi to work only on 5GHz
1. From Control Panel, open Device Manager as Administrator;
2. Expand Network Adapters;
3. Double click on the WiFi device you want to change;
4. Click on the Advanced tab;
5. Select 802.11a/b/g Wireless Mode. Change its value to: 5GHz 802.11a
6. Select 802.11n/ac/ax Wireless Mode. Change its value to: 802.11ac
7. Click OK to save the settings.
The selected 2 modes work only on 5GHz. Select other modes to allow it work on 2.4GHz again.
Monday, October 10, 2022
Windows VirtualBox VM Downloads
Windows (with IE8/9/10/11/Edge) Virtual Machine Download URLs:
Official: https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/
GitHub: https://github.com/magnetikonline/linux-microsoft-ie-virtual-machines
Archive.org: https://archive.org/details/ie11.win81.virtualbox
For Speaker and Microphone:
VirtualBox Settings:
Audio
Enable Audio
Host Audio Driver: Pulse Audio
Audio Controller: Intel HD Audio
---
For WebCam (Linux Host):
Add your user to the vboxusers group:
$ sudo usermod -a -G vboxusers $(whoami)
Logout from your desktop and login again. If you open a terminal you can check that the group appears at the end of your group list:
$ groups
VirtualBox Settings:
USB
Enable USB Controller
Add the WebCam (by the 2nd button)
Note: Default username: IEUser; password: Passw0rd! .