🐞Building a Web Crawler with Amazon Lambda
🌐 中文版:繁體中文 PrefaceThis post is from reproducing a customer issue. To solve the customer’s problem, I tried to install Selenium Chromedriver and BeautifulSoup, package them into a Lambda Layer, and build a Lambda based on that layer, but kept getting a “Chromedriver file not found” error. After pit after pit of troubleshooting, this savior suddenly appeared: https://stackoverflow.com/questions/69047401/selenium-docker-container-runs-on-ec2-but-not-on-aws-lambda. Based on this article and th...
My First Post
🌐 中文版:繁體中文 Migrating from Hugo to HexoHugo was already pretty convenient, but this Butterfly theme is just too nice, so I migrated over to give it a try.
🗃️Deep Dive: How the malloc Function Allocates Memory
🌐 中文版:繁體中文 Deep Dive: How does the malloc function allocate memory?PrefaceDynamic memory allocation is an important concept. It lets a program allocate and free memory dynamically as needed during execution, rather than relying on statically-allocated blocks set up in advance. This flexibility lets a program use memory resources more efficiently and handle problems of various sizes and complexities. C’s malloc function is a widely-used dynamic memory allocator. It lets programmers dynamica...
🧪 Building an HTTP Server Step by Step with Winsock
🌐 中文版:繁體中文 The main goal here is to try building a network-layer socket with Winsock on Windows and then do application-layer protocol parsing on top of it. The language is C, the platform is VSCode, and this time I learned by way of the recently very popular ChatGPT, then did my own debugging and dug into the syntax from there. Sample code1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980...
💻 Common Windows Commands
🌐 中文版:繁體中文 Gathering local machine info Network configuration info1ipconfig/all OS and version info Chinese version 1systeminfo | findstr /B /C:"作業系統名稱" /C:"作業系統版本" English version 1systeminfo | findstr /B /C:"OS Name" /C:"OS Version" System architecture1echo %PROCESSOR_ARCHITECTURE% Check installed software versions1wmic product get name,version 1powershell "Get-WmiObject -class Win32_Product |Select-Object -Property name,version" Quer...
📑GitHub Actions Study Notes
🌐 中文版:繁體中文 I didn’t actually have CI/CD experience before, so I wasn’t too familiar with the common CI/CD platforms out there. But recently, due to a project need, I had to use GitHub Actions to build a CI/CD pipeline for a BreakSentence API in Azure Cognitive Services. With the delivered requirements still vague 😭, I figured I’d first understand this feature and make a record. Basic introductionGitHub Actions is a CI/CD platform that can automate building, testing, a...
🔋 AWS Certified Cloud Practitioner Study Notes
🌐 中文版:繁體中文 CCP preparation Exam guide: https://d1.awsstatic.com/zh_TW/training-and-certification/docs-cloud-practitioner/AWS-Certified-Cloud-Practitioner_Exam-Guide.pdf Exam domain weightings Related resources https://terahake.in/post/aws-ccp-certified-exp/ https://awslc.medium.com/aws-cloud-practitioner%E8%AD%89%E7%85%A7%E6%BA%96%E5%82%99-6b8bacc6a490 https://jayendrapatil.com/aws-certified-cloud-practitioner-exam-learning-path/?fbclid=IwAR3eiyroyZ_jTn2pA5ut_ophP8JNCzgspERnug_luC_HGlt...
Internship Notes - Penetration Testing Course
🌐 中文版:繁體中文 Course content: 12345678- Web basics- Active/passive information gathering- Common web vulnerabilities- Target machines- DVWA (Damn Vulnerable Web Application)- RF (radio frequency) penetration testing (IoT)- Basic communication protocols- Software-defined radio (SDR) PT (penetration testing) vs RT (red team exercise) PT: smaller scope, and can’t target social engineering, e.g. a specific web page RT: larger scope, e.g. the whole company Black box: closest to a real scenarioWh...
📑 DMS Troubleshooting Notes
🌐 中文版:繁體中文 Network Debug If you can’t SSH to a server, what would you do? First ping the server to see if it’s reachable If it’s still failing, troubleshoot based on the error message the SSH connection prints Unable to open connection to example.com Host does not exist Check whether the target server’s domain name can be resolved via ping If you used the hostname, try the IP instead (alternate between the two) Connection timed out: the client tried to establish a network socket with the...
Security policies definition and enforcement utilizing policy control function framework in 5G
🌐 中文版:繁體中文 :root{ --maincolor: #50fa7b; } .info{ padding: 15px; margin-bottom: 20px; color: #ffffff; border: 1px solid transparent; border-radius: 10px; background-color: #343232; border-color: #b8bdb4; } .special{ border-bottom: 3px solid var(--maincolor); color: inherit; text-decoration:none; } .newbold{ color: #ffffff; font-weight: bold; text-decoration:none; } a{ color: #33...


