<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by chengyit on Medium]]></title>
        <description><![CDATA[Stories by chengyit on Medium]]></description>
        <link>https://medium.com/@chengyit?source=rss-d41f3f340f67------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wKhzUTyXFQGqE0pQNwpGmQ.jpeg</url>
            <title>Stories by chengyit on Medium</title>
            <link>https://medium.com/@chengyit?source=rss-d41f3f340f67------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 23:27:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chengyit/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Summer 2025 Intern Summary]]></title>
            <link>https://medium.com/@chengyit/summer-2025-intern-summary-9392082da2e9?source=rss-d41f3f340f67------2</link>
            <guid isPermaLink="false">https://medium.com/p/9392082da2e9</guid>
            <dc:creator><![CDATA[chengyit]]></dc:creator>
            <pubDate>Fri, 21 Mar 2025 21:08:49 GMT</pubDate>
            <atom:updated>2025-08-06T05:29:37.784Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/256/0*iii2Pic0TWd4-Hza" /></figure><p>從退伍後的 5 月開始投遞實習申請，直到 3 月順利上岸，這段找工作的旅程中受到許多人的幫助，所以想寫篇總結表達感謝。同時也記錄下 2025 年的求職狀況，希望能幫到未來幾年想在美國找工的學弟妹們。</p><h4>背景與找工結果</h4><pre>Background:<br>2024 Fall UCI MSWE<br><br>Experience:<br>SWE Intern @ Raydium (Deep Learning Model RD) 2 months<br>Technical Sales Intern @ Intel (Datacenter &amp; AI) 1 year<br><br>Offer:<br>Amazon SDE Intern - Seattle<br><br>面試後被拒:<br>TikTok, Meta, Samsara<br><br>等結果中：<br>TSMC<br><br>履歷被拒/無回應：<br>250+</pre><p>今年感覺內推跟海投的結果差異不大，以我個人來說內推有拿到面試的只有 Meta，Apple 和 Google 內推到現在快一年了都還沒有動靜，所以後來我基本上都直接海投節省時間。</p><h4>準備</h4><p><strong>Resume</strong></p><p>內容準備部分推薦參考 Tom 哥的<a href="https://medium.com/@jhan1998/summer-2024-intern-summary-b6ab14d0c253">這篇</a>的方法。</p><p>建議履歷跟職缺的領域方向沒問題就速投，能過 ATS 就好，趕快進入面試流程。oa 也盡量早點做，不然 head count 滿的話有可能會出現先做的人沒全對有 vo 但晚做的人全對沒 vo 的情況。</p><p><strong>Leetcode</strong></p><p>刷題這方面我無法分享太多心得，我沒有非常享受刷題、也沒有刷很多題，但我想分享一個個人觀點，那就是<strong>刷題數不用多，掌握 Top 150 的幾種典型題型/變化後，進 vo 後再開始刷 tag 就足夠了</strong>。以我的經驗為例，Amazon 面試中考出了非 tag、 非原題、完全沒做過的 Matrix DFS/BFS，即使我只刷了不到 150 題，但面試當下還是能透過延伸練習過的類似題目思路去解題。</p><p>當然刷題這種東西練習的越多越能觸類旁通，但對於我這種不喜歡刷題的人而言，我認為這是個不錯的原則。（這邊感謝好兄弟 Aladar 言傳身教，退伍後一個月就上 Google 給我看 🐂）</p><p>另外，把刷過的題整理好上傳到 GitHub 上莫名其妙地能夠加強我刷題的動力和記憶，所以這種方式也推薦給一些缺乏動力的人試試看。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cVOV9jep6EZK4sUTG0lIEg.png" /></figure><p><strong>BQ</strong></p><p>Amazon 的 BQ 應該是大廠中最難準備的，所以建議參考 <a href="https://www.amazon.jobs/content/en/our-workplace/leadership-principles">Amazon 16 Leadership Principle</a> 去準備，在同個 STAR 故事中多塞幾個 LP ，以這樣的方式去準備基本上就能 cover 到大多數公司的 BQ。履歷細節也要先想好，被問到沒準備到的 follow up 時才能隨機應變。</p><h4>面試心得</h4><p><strong>Amazon | Fungible SDE Intern</strong></p><p>1 小時。問了一題 BQ + follow ups 然後進 coding。</p><p>Coding 部分考了 Matrix DFS/BFS 的變化題型＋一題 follow up。</p><pre>Timeline:<br>- Online Assessment: 12/31, 2024<br>- Interview invitation: 2/12<br>- Interview reschedule: 2/17 (面試官 schedule conflict 的樣子)<br>- Interview invitation: 2/19<br>- Virtual Interview: 2/20<br>- Offer: 3/11</pre><p><strong>Samsara | Software Engineering Intern — San Francisco, CA</strong></p><p>[HR Phone Screen]<br>沒啥 聊聊履歷跟說明後續面試流程</p><p>[Technical Round]<br>45 分鐘。萬年考古題，Markdown to HTML conversion + 2 follow ups。</p><p>[Hiring Manager Round] <br>1 小時 + 超時聊天15分鐘。跟 Team Manager 面試，HM 的組是做跟 Vehicle Gateway 相關的軟韌協作跟雲端數據平台相關的後端開發。深挖履歷上的經歷，對前一段同樣軟韌合作的實習很感興趣，整體感覺 feedback 很正面，互動很熱絡，經驗也相符合，但最後還是被拒了… (好像不是組招)</p><pre>Timeline:<br>- Applied: 11/6, 2024<br>- Online Assessment: 11/25<br>- Move forward: 12/3<br>- Phone screen: 12/10 <br>- Move forward: 12/11 <br>- Technical interview: 1/2, 2025<br>- Move forward: 1/6<br>- Hiring manager interview: 1/15<br>- Reject: 1/23</pre><p><strong>Meta | Software Engineer, Intern</strong></p><p>45 分鐘。兩題 Easy-Medium 程度的題目，一題在 tag 排序很後面沒刷到，一題非 tag。</p><p>那時 Leetcode 刷得很零碎，很多題型沒有理解透徹，題目稍微變一下就寫不出來。所以前面才會建議先把經典演算法題型摸熟再去賭 tag，而不是一昧累積題數。</p><p><strong>TikTok | Backend Software Engineer Intern — San Jose</strong></p><p>45 分鐘，出了題骰子相關的 DP，那時 8月底才剛開始刷題沒多久，DP 我完全不會寫，吱吱嗚嗚了45分鐘。隔天拒。</p><h4>結論</h4><p>在美國找工作真的很吃機運，但這方面不是人為能夠控制的，只能調整好自己的心態，專注在個人成長上，等機會來了好好把握。</p><h4><strong>感謝</strong></h4><p>感謝 191T 的兄弟：感謝 Aladar 幫內推、Brad and Sam 面 Meta 時幫我 mock.</p><p>感謝 UCI 的同學們：感謝 Kyle, Jerry, and Roger 幫忙 mock，尤其是 BQ 方面我受益良多。</p><p>感謝 Tsai Hsieh 學長啟發了我轉 CS 的想法，且從當初大學畢業後的碩士申請、選校一直都提供很多有用的 insight。</p><p>感謝 Tom 哥的文章，這一年內反覆看了好幾次，在不同階段看都有不同收穫。</p><p>Last but not least 感謝家人和女友的支持與鼓勵。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9392082da2e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking OWASP Juice Shop — Beginner Experience]]></title>
            <link>https://medium.com/@chengyit/hacking-owasp-juice-shop-beginner-experience-6abb82b58a12?source=rss-d41f3f340f67------2</link>
            <guid isPermaLink="false">https://medium.com/p/6abb82b58a12</guid>
            <category><![CDATA[owasp]]></category>
            <category><![CDATA[owasp-juice-shop]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[chengyit]]></dc:creator>
            <pubDate>Tue, 11 Mar 2025 01:04:45 GMT</pubDate>
            <atom:updated>2025-03-13T06:55:22.575Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hacking OWASP Juice Shop — Beginner Experience</h3><p>This article details my hands-on lab experience with OWASP Juice Shop, an intentionally vulnerable web application designed for security training.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aSVQEqXBM2v1bKnO.jpg" /></figure><pre>Setting Up the Hacking Environment<br>Challenge 1: DOM XSS<br>Challenge 2: Admin Section<br>Challenge 3: Payback Time<br>Conclusion</pre><h4><strong>Setting Up the Hacking Environment</strong></h4><ul><li>I installed Burp Suite on macOS to intercept HTTP requests, configuring it to listen on 127.0.0.1:8080.</li><li>I used Docker to run the application locally, and I could access the application in the browser at localhost:3000 while intercepting traffic through Burp Suite for analysis and modification:</li></ul><pre>docker pull bkimminich/juice-shop<br>docker run --name juice-shop -d -p 3000:3000 bkimminich/juice-shop</pre><p>Alternatively, you can access the online version at <a href="https://juice-shop.herokuapp.com/#/">https://juice-shop.herokuapp.com/#</a>/.</p><h4><strong>Challenge 1: DOM XSS</strong></h4><p>Difficulty: ⭐️</p><p>Cross-Site Scripting (XSS) remains one of the most common web security vulnerabilities. DOM-based XSS occurs when JavaScript insecurely processes user input and directly inserts it into the DOM. This vulnerability usually occurs in URL parameters, form inputs, search bars, or other user-controlled data entry points.</p><p><strong>Overall Approach<br></strong>Looked for potential entry points where user input gets processed by JavaScript and inserted into the DOM without proper sanitization. The search bar in the navigation menu seemed like a promising target.</p><p><strong>Solution Details</strong><br>First, I attempted a basic XSS payload &lt;script&gt;alert(&#39;XSS&#39;)&lt;/script&gt; but found it was filtered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*207yK6CsSYu1WBJsqT4Kkg.png" /><figcaption>&lt;script&gt;alert(‘XSS’)&lt;/script&gt; was filtered</figcaption></figure><p>Then I tried a less common payload which was displayed at the description section: &lt;iframe src=&quot;javascript:alert(&#39;XSS&#39;)&quot;&gt;, and the alert successfully prompted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y8u_VusoafY59FcnXqxReA.png" /><figcaption>Searching &lt;iframe src=“javascript:alert(`xss`)”&gt; displays alert</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EkpAhKQ_LOQQK_wCgqwUfw.png" /><figcaption>Inspect the DOM, the payload was inserted</figcaption></figure><h4>Challenge 2: Admin Section</h4><p>Difficulty: ⭐️⭐️ (Can solve <strong>Login Admin</strong> challenge first)</p><p>Access control is fundamental to web security. This challenge focused on accessing a restricted administration section that should only be available to admin users.</p><p><strong>Overall Approach<br></strong>Since OWASP Juice Shop is built with Angular, I focused on the <strong>client-side routing mechanism</strong> to identify ways to access the administration section.</p><p><strong>Solution Details</strong></p><ul><li>I tried accessing localhost:3000/#/admin directly in the URL but found it didn&#39;t work.</li><li>After trying variations, localhost:3000/#/administration successfully revealed the admin panel.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-XS5AyIbRM2jGNNPUqJoWg.png" /><figcaption>admin section</figcaption></figure><ul><li>Even more concerning, I could access this URL with a non-admin account. The page showed an error, but the route itself was accessible.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*05IlOH0FLPxFt7J4pzd-_g.png" /><figcaption>page content was blocked but I can still access admin section</figcaption></figure><h4>Challenge 3: Payback Time</h4><p>Difficulty: ⭐️⭐️⭐️</p><p>This challenge focused on manipulating the application’s business logic to place an order that would make me rich — essentially exploiting a flaw in the <strong>server-side input validation</strong>.</p><p><strong>Overall Approach<br></strong>Try to add an expensive item to the basket and inspect the packets with Burp Suite to see if I can modify the price or quantity value in the HTTP request before it reached the server.</p><p><strong>Solutions Details</strong></p><ul><li>I added the most expensive item (Juice Shop “Permafrost” 2020 Edition — 9999.99) to my basket.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UwqBrapCejZvgOyK55RquQ.png" /></figure><ul><li>Using Burp Suite to intercept the request, I noticed there was no ‘price’ field I could directly modify, but there was a ‘quantity’ field.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w1DWuC7LfiOVign9ReFx-A.png" /></figure><ul><li>I changed the quantity parameter from 1 to -1000 and forwarded the request.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y25BSvl-00M6haCRzCE3dA.png" /></figure><ul><li>The application accepted the negative quantity, resulting in a negative total price of -9,999,990.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xM8MjhLiTXuc6CfMnQJblA.png" /></figure><ul><li>Placing the order and paying with my wallet resulted in the application crediting me with this amount instead of charging me!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xUid_wK9MWXokPp0sclucw.png" /></figure><h4><strong>Conclusion</strong></h4><p>The process of hacking was pretty fun. These challenges demonstrate how even seemingly small oversights in security implementation can lead to significant vulnerabilities. And for developers, we should all think both offensively and defensively.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6abb82b58a12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running Official Llama 3.2 on M1 Mac]]></title>
            <link>https://medium.com/@chengyit/official-llama-3-2-on-m1-mac-07b7c3732013?source=rss-d41f3f340f67------2</link>
            <guid isPermaLink="false">https://medium.com/p/07b7c3732013</guid>
            <category><![CDATA[setup]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[llama-3]]></category>
            <dc:creator><![CDATA[chengyit]]></dc:creator>
            <pubDate>Tue, 22 Oct 2024 23:04:18 GMT</pubDate>
            <atom:updated>2025-03-18T04:13:46.417Z</atom:updated>
            <content:encoded><![CDATA[<p>From model download to local deployment: Setting up Meta’s official release with <strong>llama.cpp</strong> and <strong>Hugging Face</strong> convert tool.</p><figure><img alt="Generated by Canva" src="https://cdn-images-1.medium.com/max/500/1*hnUgSvD28A726vumZuC8Pw.png" /><figcaption>Generated by Canva</figcaption></figure><p>Thanks to the MedTech Hackathon at UCI, I finally had my first hands-on experience with the Llama model. Due to my limited budget and the poor hardware resources of my MacBook Air, I decided to start with Llama 3.2 1B for local testing.</p><p><strong><em>Issue | </em></strong>While llama.cpp’s instructions seemed straightforward at first, I ran into an issue during the conversion process. The previous convert.py script does not support Llama 3. Instead, convert_hf_to_gguf.py should be used with model downloaded from Hugging Face.</p><p>Now that I’ve got Llama 3 working on my machine, I’m documenting my setup process to help others avoid the pitfalls I encounter.</p><p>Although there might be easier and smarter solutions out there (such as <a href="https://ollama.com/"><strong>Ollama</strong></a>), I hope this documentation proves helpful for those in similar circumstances.</p><h4>1. Clone llama.cpp git repository</h4><p>GitHub repo: <a href="https://github.com/ggerganov/llama.cpp">https://github.com/ggerganov/llama.cpp</a> <br><a href="https://github.com/ggerganov/llama.cpp/blob/master/docs/build.md">Build llama.cpp locally guide</a></p><pre># clone llama.cpp repository<br>git clone https://github.com/ggerganov/llama.cpp<br>cd llama.cpp<br>make</pre><h4>2. Download Meta official Llama model</h4><p>Request access to Llama models: <a href="https://www.llama.com/llama-downloads/">https://www.llama.com/llama-downloads/</a> (then follow meta’s installation instruction)</p><p>Note: Meta’s official model comes in PyTorch format (.pth) and will be downloaded to a hidden directory (~/.llama) in your home directory.</p><p>Check .llama</p><pre># check if model is downloaded correctly in your home directory<br>cd ~<br>ls -la .llama</pre><p>According to llama.cpp: move/copy llama model to llama.cpp/models/</p><pre># move <br>mv ~/.llama/checkpoints/Llama3.2-1B /path/to/your/llama.cpp/models/<br><br># copy<br>cp -r ~./llama/checkpoints/Llama3.2-1B /path/to/your/llama.cpp/models/</pre><h4>3. Install Python dependencies</h4><p>Install required packages in your preferred virtual environment. Python version 3.11 is recommended.</p><pre># Inside llama.cpp directory<br>pip install -r requirements.txt</pre><h4>4. Convert model format</h4><p>Reference: <a href="https://voorloopnul.com/blog/quantize-and-run-the-original-llama3-8b-with-llama-cpp/">Quantize and run the original llama3 8B with llama.cpp</a> (Credit and kudos to Ricardo)</p><p>For Llama 3, we need to perform a two-step conversion: <br>Original → HuggingFace → GGUF. Since the original llama.cpp/convert.py is not compatible with Llama 3, we’ll use convert_llama_weights_to_hf.py and convert_hf_to_gguf.py instead.</p><p>Quantization can be applied in either conversion step (HF or GGUF).</p><p><strong>4.1 Convert to HuggingFace Format</strong><br><strong><em>Potential issue</em></strong> | If you encounter issues with 1B model conversion, check your params.json file. You might need to add &quot;1B&quot;: 1 to the NUM_SHARDS dictionary.</p><pre># In your virtual environment<br># Install the transformer libraries and dependencies<br>pip install transformers &quot;transformers[torch]&quot; tiktoken blobfile sentencepiece<br><br># Run convert_llama_weights_to_hf.py<br>python ~/path/to/your/virtualenv/lib/python3.11/site-packages/transformers/models/llama/convert_llama_weights_to_hf.py --input_dir models/Llama3.2-1B --model_size 1B --output_dir llama3.2_1B_hf --llama_version 3</pre><p><strong>4.2 Convert HuggingFace Format to GGUF</strong><br>Now we can finally apply llama.cpp/convert_hf_to_gguf.py</p><p>After converting to HuggingFace format, llama.cpp/models structure should look like this:</p><pre>llama.cpp/models/<br>  |__llama3.2_1B_hf # HuggingFace format<br>  |__Llama3.2-1B    # Original format<br>  |__ ...</pre><pre># Inside llama.cpp/models directory<br># Run convert_hf_to_gguf.py<br>python ../convert_hf_to_gguf.py llama3.2_1B_hf --outtype f32 --outfile meta-llama-3-1B.gguf</pre><h4>5. Test your model and voilà!</h4><pre># Back to llama.cpp directory<br>cd ..<br><br># Run inference<br>./llama-cli -m your_model.gguf -p &quot;I believe the meaning of life is&quot; -n 128<br><br># Output:<br># I believe the meaning of life is to find your own truth and to live in accordance with it. For me, this means being true to myself and following my passions, even if they don&#39;t align with societal expectations. I think that&#39;s what I love about yoga – it&#39;s not just a physical practice, but a spiritual one too. It&#39;s about connecting with yourself, listening to your inner voice, and honoring your own unique journey.</pre><p>Llama2 article reference: <a href="https://medium.com/@auslei/llama-2-for-mac-m1-ed67bbd9a0c2">Llama 2 for Mac M1</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=07b7c3732013" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>