<?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 atb00ker on Medium]]></title>
        <description><![CDATA[Stories by atb00ker on Medium]]></description>
        <link>https://medium.com/@atb00ker?source=rss-d3bfabdda0bb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*v540YYXkKrQZbzLXoePj1Q.jpeg</url>
            <title>Stories by atb00ker on Medium</title>
            <link>https://medium.com/@atb00ker?source=rss-d3bfabdda0bb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 13:15:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@atb00ker/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[Types of Tech Interviews]]></title>
            <link>https://atb00ker.medium.com/types-of-tech-interviews-6a88f21d0271?source=rss-d3bfabdda0bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a88f21d0271</guid>
            <category><![CDATA[job-search]]></category>
            <category><![CDATA[tech-interview]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[students]]></category>
            <dc:creator><![CDATA[atb00ker]]></dc:creator>
            <pubDate>Sun, 22 Jun 2025 12:56:33 GMT</pubDate>
            <atom:updated>2025-06-22T12:56:33.519Z</atom:updated>
            <content:encoded><![CDATA[<p>A guide for a student to navigate tech interviews.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CanLUitHHqDCPZMI" /><figcaption>Photo by <a href="https://unsplash.com/@wocintechchat?utm_source=medium&amp;utm_medium=referral">Christina @ wocintechchat.com</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>The following has been sitting in my drafts since college. I never get the desire to finish it, hence, I am publishing it in it’s existing state, please bear the errors.</p><p>When I was in college and took interviews for the first time, I intended to write a blog about the types of interviews I experienced. Although the idea got delayed for a *short* while, I have some time today, so I am finally checking that item off my list. Here are various types of tech interviews and how to prepare for them.</p><p>1. <strong>Competitive Coding</strong>: This is the most common type of interview, focusing on algorithm and data structure problems similar to those found on platforms like LeetCode. While it may not closely resemble real-world tasks, it is a crucial part of the hiring process in many tech companies. To excel in this round, consistent practice is key. Start early, ideally in your first or second year of college, and follow a structured study plan. A great resource to begin with is the <a href="https://neetcode.io/roadmap">NeetCode</a> Road map. Once you’re done with this road map, I’m sure you’ll know where to go next.</p><p>2. <strong>Introduction Interview</strong>: If you clear the leetcode round, this is the first round where you meet a hu-man from the company. This call is only to judge if you’re a good fit for what they’re looking for in the role; do not be fooled, this doesn’t mean you don’t have to prepare for it — on the contrary, if you don’t prepare for this round you’ve set yourself for failure. Two things you need to prepare for this round:</p><ul><li>Know about the company and the role: show how you resemble the values and skills required for that role.</li><li>Prepare a story toolbox, specifically have definitive answers on common questions like “tell me about yourself” and “why are you interested in our company”. <a href="https://www.youtube.com/@SelfMadeMillennial">Madeline Mann on YouTube</a> provides a bunch of good videos to get started and get in the correct mindset.</li></ul><p>3. <strong>Tech Talk Interview:</strong> This round is a technical interview designed to assess your knowledge beyond just solving LeetCode problems. It typically involves a question-and-answer session and is often preferred by teams with less experience. For this round, you want Technical Jargon to flow out of your mouth like that’s how you speak on a daily basis. I usually prepare topics including networking and internet protocols, the OAuth dance, language-specific details (such as the event loop and pointless jargon like “hoisting” in JavaScript), caching, hashing, cryptography, load balancers, database concepts (like types, indexes, keys, normalization), and object-oriented programming principles. I’ve found YouTube to be a great resource for this again, Try putting in “Top 30 questions on &lt;x&gt;” to get started.</p><p>4. <strong>Low-Level Design</strong>: Practice solving common design problems using tools that are available during interviews. For instance, I use <a href="https://workat.tech/whiteboard">an online whiteboard</a> to practice. Focus on popular questions like “Design a parking lot”, “Design a chess game” etc. There are no incorrect answers; the key is to practice explaining and justifying your design choices clearly.</p><p>5. <strong>High-Level Design</strong>: This round focuses on your ability to design complex systems and understand the trade-offs involved in different architectural decisions. To prepare, watch example interviews on YouTube to familiarize yourself with the format and types of questions asked. Practice designing systems like a scalable web application, a distributed database, or a micro-services architecture. There are no wrong answers, but you must be able to justify your design choices and explain the reasoning behind them. Be prepared to discuss various options and their pros and cons.</p><p>6. <strong>Bar Raiser (Deep Dive)</strong>: In this round, you will have an in-depth discussion on a topic of your choosing with an expert. The discussion typically lasts about 45 minutes. Choose a topic you are genuinely passionate about and have a deep understanding of, such as a specific technology, a complex project you worked on, or a particular area of computer science. Prepare to explain the topic in detail, answer probing questions, and demonstrate your expertise. The key to success is to showcase your knowledge and enthusiasm for the subject.</p><p>7. <strong>Behavioral Round</strong>: This round assesses your soft skills, cultural fit, and how you handle various work situations. A story toolbox is essential for this round, as it helps you prepare and organize your responses to common behavioral questions. Use the STAR (Situation, Task, Action, Result) method to structure your answers. Be ready to discuss your past experiences, how you handled challenges, worked in teams, resolved conflicts, and demonstrated leadership. Practice answering questions like “Tell me about a time you faced a significant challenge” or “Describe a situation where you had to work with a difficult team member”. Again, [Madeline Mann on YouTube](https://www.youtube.com/@SelfMadeMillennial) is a great resource to get started.</p><h4>Notes:</h4><ol><li>If you find yourself being rejected even after thoroughly preparing for all of these interview rounds, do not be disheartened. Rejection is a part of the process, and it does not necessarily reflect your abilities or potential. Keep in mind that the hiring process can be highly subjective, and various factors beyond your control can influence the outcome.</li><li>It is important not to focus all your efforts on applying to just one company at a time. Instead, streamline your job search process by applying to multiple companies simultaneously. This approach increases your chances of securing interviews and keeps your options open. By having several interviews lined up, you can reduce the pressure on any single opportunity and improve your overall chances of success.</li></ol><p>I’ll add more points to this list when I recall more of my experiences.</p><blockquote>Hope this helps in your job shopping, Cheers!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a88f21d0271" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Moving Blogs to Substack]]></title>
            <link>https://atb00ker.medium.com/moving-blogs-to-a-new-place-d06b69e46ce7?source=rss-d3bfabdda0bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/d06b69e46ce7</guid>
            <dc:creator><![CDATA[atb00ker]]></dc:creator>
            <pubDate>Thu, 16 Jan 2025 18:13:29 GMT</pubDate>
            <atom:updated>2025-01-16T18:13:45.673Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wpOxS2eVvOGxtDF9" /><figcaption>Photo by <a href="https://unsplash.com/@matildaonthemove?utm_source=medium&amp;utm_medium=referral">Matilda Alloway</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>For over half a year, I’ve been thinking about moving my blogs to a website that doesn’t throw multiple popups on the reader when they come the blog for the first time.</p><p>Moreover, medium has done the sin of being slow enough that I switch context while their page loads. (Although, as I write this today, it’s working fine.)</p><p>Henceforth, I’ve <a href="https://substack.com/@atb00ker">moved to substack</a> and you can find the existing blogs and future blogs at substack.</p><p>Cheers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d06b69e46ce7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On Task Management — Get. Work. Done.]]></title>
            <link>https://atb00ker.medium.com/on-task-management-get-work-done-f5e203b22041?source=rss-d3bfabdda0bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5e203b22041</guid>
            <category><![CDATA[planning]]></category>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[life-management]]></category>
            <category><![CDATA[goal-setting]]></category>
            <dc:creator><![CDATA[atb00ker]]></dc:creator>
            <pubDate>Thu, 30 May 2024 22:01:26 GMT</pubDate>
            <atom:updated>2024-05-30T22:01:26.210Z</atom:updated>
            <content:encoded><![CDATA[<h3>On Task Management — Get. Work. Done.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JvuMNR0ucqjEHUpQ" /><figcaption>Photo by <a href="https://unsplash.com/@martenbjork?utm_source=medium&amp;utm_medium=referral">Marten Bjork</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In my previous blog, <a href="https://atb00ker.medium.com/on-effective-planning-459c1e80e7bb">On Effective Planning</a>, I mentioned a quote:</p><blockquote><em>“How do you eat an elephant? One bite at a time.”<br> — Creighton Abrams</em></blockquote><p>This blog develops on it — it’s a peek into my system of defining and creating tasks. It’s a living document that I continually refine. It should serve not as a definitive guide but as a stepping stone towards creating a system that works for you. Let’s dive right in.</p><h3>Step 1. Choose Your Destination (Defining Goals)</h3><p>Creating a bird’s-eye view of your long-term aspirations is essential for planning for success. This often overlooked step is critical for two reasons:</p><ol><li><strong>Criteria for Success</strong>: Ask yourself -</li></ol><ul><li>What will make you consider this year a success?</li><li>What will make you consider this decade a success?</li><li>What do you want to accomplish in your lifetime? What is a “good life” according to you? How are you going to live it?</li></ul><p>Answering these questions is crucial because there’s always more work to be done and more to be achieved but “mo work done ≠ mo happiness”.<br>This has been my mental health game changer. I no longer feel the need to compete with the success of others. I find contentment in my own path because I know where I am going.</p><ol><li><strong>Work Satisfaction</strong>: You can’t follow a map unless you know where you are going. Without a destination, you might drive a lot but never reach where you want to go.</li></ol><blockquote><em>“Failing to plan is planning to fail.”<br></em> — <a href="https://www.youtube.com/watch?v=6ZXp_7kvYvs">Kotak Mahindra Advertisements</a></blockquote><p>Personally, I find mind-maps very useful for defining my goals, example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MekpUu7Q_mVN5LTBwW6PIQ.jpeg" /><figcaption>Goal Mind-map (Tool: Miro)</figcaption></figure><h3>Step 2. Look for Milestones (Creating Projects)</h3><p>Now that we have a destination, it’s time to plan the route.<br>We need to extract projects out of goals. I have organized my projects into three lists:</p><ol><li><strong>Active Projects</strong>: This list contains projects that are ready to be started. These projects are suppose to be actionable with clear starting point and ending points, like “Fix my bathroom’s shower head” or “Build a media server”.</li><li><strong>Archived Projects</strong>: This list includes projects that I want to complete, but their return on investment (ROI) is too low. For example, “Fix Netgear R6620 backup router in store room” is something I want to do, but more important tasks will always take priority. The existence of this list ensures that no projects are forgotten while keeping the “Active Projects” list free of stale items.</li><li><strong>Endless Projects</strong>: This list comprises ongoing projects that have no definitive end, such as “Write a blog”. If you are reading this, I clearly wrote a blog, but since this is an ongoing effort, the project remains on the list.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ic40-LLUtrVeJS0VxS0w1A.png" /><figcaption>Project Lists (Tool: Joplin)</figcaption></figure><p>These lists are dynamic, i.e I can add or remove items from any of these lists at any point.<br>Kanban boards can be amazing for this step. However, I personally use Joplin, a notes app, because it’s fast, powerful, open-source, encrypts data, privacy et la.</p><blockquote><em>A goal without a plan is just a wish.<br> — Antoine de Saint-Exupéry</em></blockquote><h3>Step 3. Set the Course (Creating Timeline)</h3><p>Now we have the milestones we want to reach. It’s time to decide when do we want to reach them.<br>For this, we will make two tables:</p><h4>1. Planned Table</h4><p>I plan my tasks quarter wise, using the following steps:</p><ol><li>Out of all the active projects, I’ll pick the one I am most <strong>interested</strong> in.</li><li>Roughly estimate how much time it’s going to take to be completed.</li><li>If time estimate is more than 4 weeks, I divide the task into multiple parts and add the first part** in a table.</li><li>Continue repeating from step 1 to 3 until the quarter is filled with tasks.</li></ol><p>** It might be tempting to pick all the parts of the project back-to-back, but that can lead to procrastination or bordem out of the project. You don’t want to get bored by your task list, else you’ll stop following it and consistency is key.</p><blockquote>“It gets easier. Every day it gets a little easier. But you got to do it every day. That’s the hard part. But it does get easier.”<br> — <a href="https://www.youtube.com/watch?v=R2_Mn-qRKjA">Jogging Baboon, BoJack Horseman</a></blockquote><h4>2. Completed Table</h4><p>Completed table is what you’d expect from the name, it’s not what was planned, but what was completed in the duration.<br>When I am done with the previous project, I pick the project I am most <strong>interested</strong> in from the quarter’s planned table and update the actual time of the previous project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6r77slAjuQNw0s8MbMEH4w.png" /><figcaption>Quarter Timeline (Tool: Joplin)</figcaption></figure><p>There is a set of guidelines I follow while making planning tables:</p><ol><li><strong>Stay Interested</strong>: Note my criteria of picking projects is “interest”; this is <strong>critical</strong> for success, the goal is to not be exhausted from work. My interest shifts from week-to-week, at each step I pick what I am interested in on a particular day to ensure I keep following my task list in the long run.</li><li><strong>Reflection</strong>: The “Completed” list is a game changer for mental health. It lets me reflect on my past achievements. I know many people who have accomplished a lot yet still think they are lazy, and others who do very little meaningful work but keep busy with random tasks, believing they are productive. The “Completed” table helps me stay grounded in reality, ensuring I don’t become someone who is constantly busy but unproductive. It enables me to feel pride in all I have achieved in the long run.</li><li><strong>Pack Lightly</strong>: Don’t aim to accomplish too much each week. It’s better to plan lightly rather than overestimate what you can achieve. The benefit of having an “Active Projects” list is that if you finish your tasks early, you can always take on more work. However, starting with too much and then having to push tasks to the next quarter can be discouraging. Create a timeline that aligns with your work and life balance.</li><li><strong>Retro / Break Weeks</strong>: One of my newest addition to timeline is “Retro / Breaks”, I can put retro break for a week at any point and stop all work, again, life is more than just work. Planning for breaks is better than breaking the plan.</li></ol><h3>Step 4. Run the Course (Creating Tasks)</h3><p>We are almost done. Now, we just need to walk the talk.<br>Day-to-day planning takes more than just planning for your life goals, it’s about handling work-life and keeping your cupboards clean and trimming your garden on time et la.<br>I have already covered this in detail in my previous blog, <a href="https://atb00ker.medium.com/on-effective-planning-459c1e80e7bb">on effective planning</a>.</p><p>That’s it.<br>This is how I ensure I am closer to where I want to be today than I was yesterday.<br>This is how I stay on track in the long run.</p><blockquote><em>Hope this helps you get closer to where you want to go. Cheers!</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5e203b22041" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On Effective Planning]]></title>
            <link>https://atb00ker.medium.com/on-effective-planning-459c1e80e7bb?source=rss-d3bfabdda0bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/459c1e80e7bb</guid>
            <category><![CDATA[task-management]]></category>
            <category><![CDATA[work-management]]></category>
            <category><![CDATA[life-management]]></category>
            <dc:creator><![CDATA[atb00ker]]></dc:creator>
            <pubDate>Sun, 31 Mar 2024 10:33:01 GMT</pubDate>
            <atom:updated>2024-03-31T11:00:16.126Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gASfLBcld0gHEWZh" /><figcaption>Photo by <a href="https://unsplash.com/@alvarordesign?utm_source=medium&amp;utm_medium=referral">Alvaro Reyes</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I have built a step-by-step systematic approach to organizing tasks and creating actionable plans that help you stay on top of your priorities. <br>So, with no further ado; let’s get into it.</p><h3>The 5 step system</h3><ul><li><strong>Step 1 (“Inventorying”)</strong>: Take “stock” of all the items that need to be included in the plan. Make an unordered list of all the items you can remember.</li></ul><blockquote><strong>Note:</strong> This list does not need to be “complete” or comprehensive; start with as many items you can remember at the moment. Trying to build a complete list might cause procrastination.</blockquote><ul><li><strong>Step 2 (“Bucketing”)</strong>: Once you have your list, it’s time to prioritize. We don’t want to waste time ordering the tasks as per their importance; instead make general “buckets” from P0 to P4 where P0 are the most important tasks and P4 are the least important ones.</li></ul><blockquote><strong>Note: </strong>Read about<strong> </strong>Eisenhower-Matrix and understand the urgency and importance of your workload items.</blockquote><ul><li><strong>Step 3 (“Timlining”)</strong>: Create a timeline to complete the tasks. If you want to follow-through with this step in the coming weeks and months, you want to make a practical and achievable timeline.</li></ul><blockquote><strong>Note 1:</strong> Remember **life is not a sprint, it’s a marathon**, you’ll only get things done in the long run if you’re enjoying the process.</blockquote><blockquote>1. You have only 24 hours in a day. Plan only for these 24 hours; do not over plan. <br>2. Include relaxation and wind down time — remember the plan is to make your life easy not to make it difficult by reminding you all the things you want to get done.<br>3. Do not worry if the plan seems to be too laxed or laid-back; the good thing about having a plan is if you have nothing to do, there is always a handy list of things that need to be done and you can prepone tasks; preponing tasks feels good, postponing tasks feels bad; if your plan makes you feel bad, you won’t follow it.<br>4. Remember: <strong>Rome wasn’t build it a day</strong>. If building a laxed plan makes you feel that you’re not getting enough done, then remember consistency is more important than hard work. If you keep building a little everyday, you’ll eventually built something you can look back and appreciate.</blockquote><blockquote><strong>Note 2:</strong> <strong>Don’t let best come in the way of good</strong> , Instead of building the airtight timeline today, build what you think is good for now and remember there is room to adapt tomorrow.</blockquote><ul><li><strong>Step 4 (“Building Actionable tasks”)</strong>: Convert this big picture plan to small actionable task list. Add an evening or night task in your workflow to plan tomorrow’s action items.</li></ul><blockquote><strong>Note: </strong>Just making the big picture plan is not enough; this plan will ensure scope-creep does not happen but it’s too large to be executed. <br>Hence, you NEED bite sized actionable items to execute this plan.<br><strong>How do you eat an elephant? One bite at a time.</strong></blockquote><ul><li><strong>Step 5 (“Adapting”): </strong>Your plans needs to keep changing with you. You need to periodically evaluate if the plan is serving you or not. Every quarter, set some time aside to look at the big-picture on where you want to go and where your plan is taking you.</li></ul><blockquote><strong>Note 1: </strong>You’ve made this list on a paper or notes app and not on stone for a good reason; of course that reason is that writing on stone is harder, duh. <br>But now that the list is on paper / notes app, it’s editable. So edit it as much as you want to your heart’s content. It’s okay to add or remove tasks from your plan.<br>You don’t have to “stick to the plan”; you have to “stick to your goals”. <br>Plans can keep changing.</blockquote><blockquote><strong>Note 2:</strong> Accept failure as part of the plan. Often when people miss one gym day, they skip all gym days; however, if you expect yourself to be a human sometimes and include failure in the plan itself, your plan will be more resistant to being sidelined.</blockquote><blockquote><strong>Note 3</strong>: The only thing that time guarantees is change. External factors *will* change and Murphy’s law says if will change at the worst possible moment. <br>If your plan is important to you and it is time-bound, make at least <strong>two backup plans</strong>.</blockquote><h3><strong>On the system</strong></h3><ol><li>This system is always a work in progress for me and I’ll keep updating it as my methodology changes.</li><li>I have not included details about a lot of things that I’ve mentioned here, if something is unclear and needs further explanation, please ping me.</li><li>This method will **NOT** work for you. It’s only a guidance point to start managing your tasks. With time, adapt the method to your needs, personality and goals.</li><li>Lastly, if you have a different system, I want to hear about it; please do leave a comment. Thanks.</li></ol><blockquote>Hope this helps you manage your workload.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=459c1e80e7bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Easy Application level Firewall for Linux —OpenSnitch]]></title>
            <link>https://atb00ker.medium.com/easy-application-level-firewall-for-linux-opensnitch-7eb2f732a32f?source=rss-d3bfabdda0bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/7eb2f732a32f</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[firewall-security]]></category>
            <category><![CDATA[firewall]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[atb00ker]]></dc:creator>
            <pubDate>Sun, 15 Aug 2021 13:05:08 GMT</pubDate>
            <atom:updated>2021-08-15T13:05:08.147Z</atom:updated>
            <content:encoded><![CDATA[<h4>Don’t want to spend a lot of time to manage your firewall but want to have some basic network firewall on your machine? I have the answer!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ubEHlmyhb6deZU0zTNZl3Q.png" /><figcaption>Firewall Rules List</figcaption></figure><p>After falling in love with <a href="https://netguard.me/">NetGuard</a> for Android, I started looking for a firewall on my Linux machine that needs no setup or maintenance and I found exactly what I was looking for in <a href="https://github.com/evilsocket/opensnitch">evilsocket/opensnitch</a>, so here is a blog explaining the features of opensnitch.</p><h4><strong>1. Powerful Permission Popups</strong></h4><p>When an application that does not have internet access is started, a popup with a lot of handy options will appear, enabling you to allow or reject the internet access request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3ZMidnsbRNVCz-fJOx9Klg.png" /><figcaption>Internet Permission Popup</figcaption></figure><p>From this popup itself, we can configure a lot of things, e.g:</p><ol><li>You can allow a permission only for a specific amount of time. (1 hour in the image).</li><li>You can allow all requests from the executable to any destination or only a particular destination.</li><li>You can even whitelist a destination so that any executable can send a request to it.</li><li>You can lock a port so that the executable can only use a particular port to interact with the network.</li><li>You can block which user can send this request so that some other user running on the machine doesn’t get the permission for free.</li></ol><p>Check your opensnitch settings for configurations.</p><h4><strong>2. Complex Rules (Regex | List | Simple)</strong></h4><p>From regex to simple destination rules, we have lot options at our disposal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*L1Zx_QQBsSH8ULzB6WpikA.png" /><figcaption>Rules Options</figcaption></figure><p>Allowing only a certain protocols, using regex to set the allowed list of hosts or executable or allowing only a certain set of destination IP addresses. We can do it all. The rules are read alphabetically, hence if we name our rules properly, we can give different rules by the same executable for the different destinations, example blocking telemetry by an application while allowing other requests. <a href="https://github.com/gustavo-iniguez-goya/opensnitch/wiki/Configurations">More about configurations is available in documentation</a>.</p><h4>3. Monitoring network</h4><p>We can not just control who accesses the network, but also monitor information about access requests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yw6vEWMEE5Z-pmCQHI6yAw.png" /><figcaption>Events List</figcaption></figure><p>Here in the screenshot, we can see that spotify and firefox-esr requested for internet access and they were allowed the same, according to my rules. We can even filter these records based on destination, process, rule-name etc to get insight about who is contacting mother-ship and who is quite when not in use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*REJf6Y_oIumLDC9y3gfw1g.png" /><figcaption>Most common destinations</figcaption></figure><p>We can even checkout the “Hosts” tab to see the most contacted destinations and get the same information arranged by application, IP addresses, ports and users to find the outliers, poorly written applications or shady applications.</p><h4><strong>4. Rules in CSV &amp; JSON</strong></h4><p>I don’t use a lot of applications because they write their data in unreadable formats, which either gives you a vendor lock or a long process to move your data manually. This is not the case for opensnitch, you can export / import data from CSV. Not just that, you can also manipulate the CSV data to create new rules.</p><p>Example, the following CSV denies all internet access to vscode.</p><pre>time,node,name,enabled,precedence,action,duration,operator_type,operator_sensitive,operator_operand,operator_data<br>2021-07-25 16:22:30.260624,unix:/local,deny-code-internet,True,False,deny,always,simple,False,process.path,/usr/share/code/code</pre><p>You can also create a more readable <a href="https://github.com/gustavo-iniguez-goya/opensnitch/wiki/Configurations">JSON file as given in the documentation</a>.</p><h4><strong>5. More</strong></h4><p>Features don’t end there, we have more:<br>1. While we can call the UI using the <strong><em>opensnitch-ui </em></strong>command. We can also manipulate the firewall using CLI.</p><p>2. Want it for ARM architecture? There are <a href="https://github.com/gustavo-iniguez-goya/opensnitch/wiki/Cross-compilation">docs for compiling for armhr &amp; arm64 as well</a>.</p><h4>Conclusion</h4><p>I have been using OpenSnitch for a while now and I am satisfied with the simplicity and application level protection it provides.<br>Of course, application level protection is not enough and a Pi-hole is a better solution, but the advantage of this solution is that it comes with no additional devices connected in your network and needs no setup, just <a href="https://github.com/gustavo-iniguez-goya/opensnitch/wiki/Installation">install</a> and we are ready!<br>If you want me to create a YouTube video of it showing the features in action; please let me know.</p><blockquote>Hope this gave you a basic introduction to the features available in oOpenSnitch, Good luck with your network security setup.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7eb2f732a32f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The ideal WebApp Architecture]]></title>
            <link>https://atb00ker.medium.com/the-ideal-webapp-architecture-d3f19c60c2b5?source=rss-d3bfabdda0bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3f19c60c2b5</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-architect]]></category>
            <category><![CDATA[web-architecture]]></category>
            <dc:creator><![CDATA[atb00ker]]></dc:creator>
            <pubDate>Wed, 14 Jul 2021 19:07:58 GMT</pubDate>
            <atom:updated>2021-10-24T10:33:25.185Z</atom:updated>
            <content:encoded><![CDATA[<h4>Designing the architecture that can stand the test of time</h4><p>Assume you were to design a new web application today. This application would need to be scaled to millions of users, would have a lot of complex business logic, is intended to be a long-term investment and would be a high revenue generator. How would you design it?</p><p>I started thinking about the same a while ago and here is my answer to the question. Let’s get started!</p><h3>Factors that Matter</h3><p>Before designing anything, I want to be concrete about the factors that matter and have influenced the design.</p><ol><li><strong>EtC Principle: </strong><em>The definition of a good design is that it makes the code </em><strong><em>easier to change</em></strong><em> in the future. </em>We should not be stuck with a dependency or a part of the code just because change requires a lot of efforts. This is the main bane of a monolith; and it’s <strong>THE </strong>most important thing when designing an architecture, as far as I see.</li><li><strong>Maintainability: </strong>Making loosely coupled and highly coherent modules with all the relevant information that make the application easy to maintain in the long run.</li><li><strong>Testing: </strong>Testing, a lot of it and on multiple levels is paramount to deliver a reliable product. (One optimization in this architecture is fast testing by separating UI and E2E tests, as discussed below).</li></ol><h3>The Architecture Design</h3><p>Now, let’s start creating the architecture with these principles in mind, but first thing first, please see the image below, you can <a href="https://miro.com/app/board/o9J_kvt3edQ=/?moveToWidget=3074457360672961997&amp;cot=14">view a larger version on Miro</a>.</p><figure><img alt="The ideal WebApp Architecture" src="https://cdn-images-1.medium.com/max/1006/1*vC7G-Ot5M-rOH2mxSIrUVw.jpeg" /><figcaption>The ideal WebApp Architecture</figcaption></figure><ol><li><strong>JSON Request/Response: </strong>Our backend is only concerned with JSON. It doesn’t take care about the “V” in “MVC”. The benefits of having separated views is that our backend is platform agnostic. It doesn’t care if the JSON request comes from a website, mobile application, desktop application or CLI. It also helps us in keeping separation of concerns, promoting good documentation &amp; testing of our API. We can avoid any additional friction or maintenance cost due to separation of views by using specification standards like <a href="https://www.openapis.org/">OpenAPI</a>.</li><li><strong>Front-end Components Module:</strong> The component module will consume our API and styles library to create the view for the user. Creating a separated component library will allow us to focus on performance &amp; accessibility of the website without being concerned about the rest of the shebang.</li><li><strong>Styles Library: </strong>We separate out the styles our application to yet another repository where designers can create the elements down the very specification of their imaginations, and examples to explain the look and feel. The front-end developers would only need to use the classes / components created to get the styles in the front-end components module. The advantage of keeping the styles separated is that we can do a complete lift and shift of the UI with minimum efforts and again, separation of concerns would promote having good documentation for usage.</li><li><strong>Common Components (CC): </strong>This is a list of the additional components that all the repositories <strong>must</strong> contain, including documentation, versioning, linting etc. It’s mentioned separately to avoid repeating it everywhere.</li></ol><h4>Testing</h4><blockquote>If our codebase doesn’t have tests, the only thing we can be certain about is bugs in production.</blockquote><figure><img alt="Pyramid of Testing" src="https://cdn-images-1.medium.com/max/517/1*nzu6qOPNrOUdDyU_XHwQeA.jpeg" /><figcaption>Pyramid of Testing</figcaption></figure><ol><li><strong>Unit Testing: </strong>This stage of testing is to verify that the functions meet their requirements in isolation. We check all the <strong>states </strong>of a function to get confidence in our code. A unit test is the first user of our code.</li><li><strong>Integration Testing: </strong>In this stage, we test the practical use cases of our application. It helps us verify that the isolated functions work well together to solve the problem they were designed to solve.</li><li><strong>UI Testing: </strong>E2E is traditional, but it’s resource hungry and a slow process, we can separate out the UI testing by having a separate web server that just provides the data required for testing. In separating E2E tests from UI tests, we can get confidence on all the states of our front-end application without spending exorbitant about of resources on massive E2E testsuites. The <strong>Simple Web Server </strong>is just an application to simulate our backend, it would return JSON responses based on request headers and requested API endpoint.</li><li><strong>E2E Testing: </strong>We test the main use cases of our application end-to-end with all the services &amp; requirements to ensure that we meet the performance, security &amp; functional <a href="https://en.wikipedia.org/wiki/Service-level_objective"><strong>SLO</strong></a><strong> </strong>of the project.</li><li><strong>User Testing: </strong>While nobody wants their users to be testing their application, it’s naive to assume bugs will never seep to the users with all the testing we have done. Hence, we should have a quick and easy way for the users to be able to report bugs.</li></ol><h4><strong>Documentation</strong></h4><blockquote>Your code is not complete without documentation, no matter how well it works, if the users can’t use it, it’s a waste of efforts.</blockquote><ol><li><strong>User API documentation: </strong>As the name suggests, this documentation should empower the user to be able to build their own application over our API.</li><li><strong>End-user UI documentation: </strong>While a good UI is intuitive and doesn’t require the user to learn the quirks of using the application, it’s still a good idea to invest in the UI documentation to explain the features provided to the end-users to enable them to make the most out of the application.</li><li><strong>Architecture documentation: </strong>A document containing the flow diagram to explain how each module connects with each other and what problem the module is solving.</li></ol><blockquote>All the documentation <strong>must </strong>be in text format using languages like Markdown or reStructuredText and parsed to format of requirement, fancy formats like pdfand doc are not valid primary documentation formats.</blockquote><p><strong>Deployment</strong></p><blockquote>People can’t be “fixed” but processes can be fixed.</blockquote><ol><li><strong>Automation:</strong> The only correct way to deploy &amp; create infrastructure is to automate the entire process. Humans will always make mistakes, but machines can follow the deployment steps to the beat with 100% repeatability. Docker, Terraform, Ansible and Chef are an integral part of the modern Architecture.</li><li><strong>Logging &amp; Monitoring: </strong>Your testing will never get all the bugs and cases. Things will fail, but a failure should only happen once. To ensure that, we need heavy logging and monitoring in the application running in production.</li></ol><p>Much more on deployment can be found in the <a href="https://sre.google/sre-book/table-of-contents/">Google Site Reliability Engineering Book</a>.</p><h3>Conclusion</h3><p>Change is a part of life, what’s a best practice today would be listed in bad practices tomorrow, but since this architecture is borne by micro-services, embracing the change, one module at a time, is practical for even the largest projects; hence it stands the goal of meeting <strong>EtC principle</strong>.</p><p>Since the modules have to be highly coherent and loosely coupled for the developers to be able to make changes quickly, the architecture provides <strong>orthogonality </strong>out-of-the-box<strong>.</strong></p><p>Finally, the code is <strong>tested</strong> at multiple levels, providing a peace of mind when releasing.</p><h4>What’s Next?</h4><p>That’s not all, of course this is not all! This is just the code at rest, but the code is never at rest! It’s always moving, moving from localhost to production, from severe security releases to A/B releases, but release sanity &amp; release cycle management are a whole different rabbit hole. We’ll come to that soon, in another blog.</p><p>For now, I am interested to hear what you think, would you create an architecture similar to mine or would your ideal architecture look completely different? I want to hear about your additions, removals and the reasons behind your decisions. I’ll share this blog with folks who work on completely different type of architectures and publish any updates with various opinions soon, until then, have fun pondering about problems!</p><blockquote>Hope this got you thinking about your ideal architecture, good luck with your next design.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3f19c60c2b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Authentication with AngularFire 6]]></title>
            <link>https://atb00ker.medium.com/authentication-with-angularfire-6-5d066ac7c1d6?source=rss-d3bfabdda0bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d066ac7c1d6</guid>
            <category><![CDATA[fireauth]]></category>
            <category><![CDATA[angularfire]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[atb00ker]]></dc:creator>
            <pubDate>Tue, 22 Jun 2021 17:58:03 GMT</pubDate>
            <atom:updated>2021-06-22T17:58:03.849Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*75MXqWLQlIYsC5tHUxwfFw.png" /><figcaption>Angular + Firebase = AngularFire</figcaption></figure><p>It took me a long while to figure out the authentication with persistence in AngularFire 6 because of the lack of examples and information on the same, so that I thought I’d contribute to help the next person figuring it out.</p><p>You can find <a href="https://github.com/atb00ker/giveaway-app">my code repository</a> and <a href="https://github.com/atb00ker/giveaway-app/blob/main/src/app/auth.service.ts">my auth service code file</a> on GitHub. <br>Now, Let’s get started.</p><h4><strong>1. Install AngularFire &amp; Create Service</strong></h4><p>On your terminal, enter the following commands in your project repository:</p><pre>ng add <a href="http://twitter.com/angular/fire">@angular/fire</a><br>ng service auth<br>ng component test</pre><h4>2. Adding FireAuth Module in Imports</h4><pre>// app.module.ts<br>import your_firebase_config from &#39;../environments/production&#39;; <br>import { AngularFireModule } from &#39;<a href="http://twitter.com/angular/fire">@angular/fire</a>&#39;;<br>import { AngularFireAuthModule } from &#39;<a href="http://twitter.com/angular/fire">@angular/fire</a>/auth&#39;;<br>import { AngularFireAuthGuardModule } from &#39;<a href="http://twitter.com/angular/fire">@angular/fire</a>/auth-guard&#39;;</pre><pre><a href="http://twitter.com/NgModule">@NgModule</a>({<br>  ...<br>  imports: [<br>    AngularFireModule.initializeApp(your_firebase_config),<br>    AngularFireAuthModule,<br>    AngularFireAuthGuardModule<br>  ],<br>  ...<br>})</pre><h4>3. Login &amp; Logout Actions</h4><p>In the AuthService created in step one, let’s create the login function that any component can use to login user.</p><pre>import { Injectable } from &#39;<a href="http://twitter.com/angular/core">@angular/core</a>&#39;;<br>import { AngularFireAuth } from &#39;<a href="http://twitter.com/angular/fire">@angular/fire</a>/auth&#39;;<br>import firebase from &#39;firebase/app&#39;;</pre><pre><a href="http://twitter.com/Injectable">@Injectable</a>({ providedIn: &#39;root&#39; })<br>export class AuthService {<br>constructor(private auth: AngularFireAuth) { }</pre><pre>loginBegin() {<br>    // Our login provider here would be google<br>    const providerObject = &#39;Google&#39;;<br>    this.auth.setPersistence(&#39;local&#39;).then(() =&gt; {<br>       this.auth.signInWithPopup(providerObject)<br>           .then(() =&gt; this.isLoggedIn())<br>           .catch(error =&gt; console.error(error.code));<br>    });<br>  }<br>}</pre><p>Note the setPersistence(&#39;local&#39;) , this ensures the user authentication information is stored in your Indexed DB and can be used again later. i.e user is not forgotten when the tab is closed.</p><p>The this.isLoggedIn() function is called on successful login to update the login state.</p><pre>import { BehaviorSubject } from &#39;rxjs&#39;;<br>public loggedInUser: BehaviorSubject&lt;string&gt;;<br>async isLoggedIn() {<br>    const user = await this.auth.authState.pipe(first())<br>                                          .toPromise();<br>    if (user) {<br>      // You have user information, update subscribers.<br>      this.loggedInUser.next(true);<br>    } else {<br>      // User has logged out, update subscribers.<br>      this.loggedInUser.next(user.email);<br>    }<br>}</pre><p>Here, this.loggedInUser is a class member that will update all the subscribing components when it’s value is modified.</p><pre>import { BehaviorSubject } from &#39;rxjs&#39;;<br>public loggedInUser: BehaviorSubject&lt;string&gt;;</pre><p>Let’s now create a simple logout function.</p><pre>logoutBegin(reload = true) {<br>   this.auth.signOut();<br>   this.isLoggedIn();<br>}</pre><p>this.auth.signOut() will remove all the information from IndexDB then will will update all the subscribers in this.isLoggedIn() functions.</p><h4>3. Consuming the subscriber</h4><p>Now, let’s check the user in test component, log him in and then logout.</p><pre>export class TestComponent implements OnInit {<br>   public isUserEmail = false;<br>   constructor(private auth: AuthService) { }<br>   <br>   ngOnInit() {<br>     this.auth.loggedInUser<br>              .subscribe(email =&gt; this.isUserEmail = email);<br>     this.auth.isLoggedIn();<br>   }</pre><pre>  beginLogin() {<br>    this.auth.loginBegin();<br>  }</pre><pre>  beginLogout() {<br>    this.auth.logoutBegin();<br>  }<br>}</pre><p>There in the ngOnInit we first create a subscriber to update this.isUserEmail every time in it is changed. This variable now be used directly in the HTML files to reflect the values as and when they change.</p><p>Then we have the beginLogin() &amp; beginLogout() . These can be invoked on the click of a button to login and logout the user.</p><p><strong>That’s it, We have a working instance of AngularFire authentication with Persistence! </strong>Please checkout the code for a working example and let me know if I can improve this blog to make it even easier for folks new with AngularFire.</p><blockquote>Hope this helped you to implement your authentication using AngularFire. Good luck with your project!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d066ac7c1d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tutorial: Become vscode poweruser]]></title>
            <link>https://atb00ker.medium.com/tutorial-vscode-power-user-c6ffe668335?source=rss-d3bfabdda0bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6ffe668335</guid>
            <category><![CDATA[software-development-tool]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[devtools]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[atb00ker]]></dc:creator>
            <pubDate>Sun, 20 Jun 2021 17:42:31 GMT</pubDate>
            <atom:updated>2021-06-20T17:48:24.762Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FtE8w6EZ89piDbOsQ1w9Ag.png" /></figure><p>This tutorial is for vscode users who are looking for some cool tricks that their code editor can perform, this is a basic tutorial to introduce the following features:</p><p><em>1. Quick Menu (Goto line, Open file &amp; Command Pallet)<br>2. Fold / Unfold code<br>3. Zen coding<br>4. Quick find / Global find<br>5. Code Selection (word, line &amp; block selection)<br>6. Quick actions (Comment code, duplicate line, quick change name)<br>7. Multi-cursor actions<br>8. Many shortcuts</em></p><p>Just reading the blog is not enough, the blog will only introduce you to the features, you need to follow the instructions in <a href="https://github.com/atb00ker/scripts-lab/tree/master/experiment/vscode">tutorial available on GitHub</a> to fully grasp the actions. Now, let’s get started.</p><h4><em>Quick Menu</em></h4><p>Quick menu can help perform a lot of actions, from opening files to executing commands.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*yqykQBH_E_Zw_UXz-z9DZQ.png" /><figcaption>Quick Menu</figcaption></figure><p>When you open the quick menu:</p><ol><li>Just start typing the name of any file in the workspace and find that file for you.</li><li>If you use the : symbol and enter a number, it will take you line number on currently opened file.</li><li>If you use the @ it will take you to a specific symbol in the opened file.</li><li>If you use the &gt; symbol, it becomes command pallet a command pallet to which can help perform any command, from installing an extension to opening terminal.</li><li>It doesn’t end there, If you use ? it will open a help menu where you can find a list of useful things that the quick menu can perform.</li></ol><h4>Zen coding</h4><p>Some actions are so common that we don’t manually need to create snippets for them, the snippets come out of the box, for example typing html5 and pressing enter would yield the basic HTML structure to start writing your code.</p><p>But that’s not all. You can type any HTML structure in zen and vscode will convert it to HTML, here is an example of creating multiple elements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*U4YKyUEWjCBw-y5EG_Vmmg.png" /><figcaption>Zen coding on HTML</figcaption></figure><p>While HTML5 is just an example, vscode can help quicken structuring in a lot of languages with the help of extensions &amp; snippets. In fact you can very easily write your own snippets to perform common actions and those snippets can even have variables that you can enter that the time of using that template.</p><h4><em>Quick find / Global find</em></h4><p>A find feature with regex can be very useful tool to clean your data or simply extract information in a very large amount of data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*daG0vD5ptqrkM1rs0aCZ5A.png" /><figcaption>File search and Global Search</figcaption></figure><p>Sure enough, vscode has a very powerful search.<br>In <strong>file search</strong>, you have the options to match the entire word exactly or search for word part, search match case, find only in selected code of the file and regex. We even have a find and replace option that works in conjunction to regex.<br>In <strong>global search</strong>, on top of all the features above, we can search only in open editors or any file in the workspace, include and exclude files based on name which supports regex as well!</p><h4>Quick actions</h4><p>Many advanced tasks that would otherwise take some time can be done with vscode quickly, example you can simply hit f2 (default) to rename a variable and vscode will update all the instances of that variable, mind you, if you have a global and local variable with the same name and vscode can differentiate between the two variables.</p><p>Similarly, there are options duplicating a line or block without updating your clipboard. Quickly commenting or un-commenting a section of the code depending on your language. The tutorial goes over some of these features.</p><h4><em>Multi-cursor actions</em></h4><p>Did you know you can edit multiple lines at the same time using vscode?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/323/1*OpEA1ELU40NBJ7mztgkt6g.png" /><figcaption>Multiple cursors</figcaption></figure><p>It’s a very powerful feature specially when you want to make the same edit at multiple places. Not just that, you can select file at different locations matched with regex to update a pattern of text in the file.</p><p>It might not sound like it, but once you get used to it, you’ll be using it all the time!</p><h4>Fold / Unfold</h4><p>When dealing with large files, fold / unfold can provide a quick way to navigate in a file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/357/1*N5vTW-_xl4s4CQAb0nsufQ.png" /><figcaption>Folded and unfolded symbols.</figcaption></figure><p>In vscode, you can quickly fold all the blocks or just one block.<br>While a lot of editors provide this feature, it’s still an under appreciated feature that a lot developers don’t know.</p><h4>Code Selection &amp; Movement</h4><p>It is a basic expectation from editors these days to provide powerful movement and selection features. From selecting word &amp; line to selecting a code logical block and quickly moving between them, vscode has shortcuts for all of them and the tutorial provides a quick glimpse of the same.</p><h4>More…</h4><p>This is just the tip of the ice burg, we can do live debugging of the code or even run testcases or scripts straight from vscode. There is so much more and the tutorial provides some additional tasks that you can look into to learn about some advanced features of vscode.</p><p>If you found this useful let me know, I’ll write a blog about advanced features of vscode.</p><blockquote>I hope you learned a trick or two from this blog. Happy Coding!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6ffe668335" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Disk Encryption: LUKS]]></title>
            <link>https://atb00ker.medium.com/disk-encryption-luks-44c79a2352d2?source=rss-d3bfabdda0bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/44c79a2352d2</guid>
            <category><![CDATA[cryptsetup]]></category>
            <category><![CDATA[luks]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[cryptography]]></category>
            <dc:creator><![CDATA[atb00ker]]></dc:creator>
            <pubDate>Sun, 21 Feb 2021 13:04:19 GMT</pubDate>
            <atom:updated>2023-06-02T21:43:58.724Z</atom:updated>
            <content:encoded><![CDATA[<h4>Your security is only as good as the weakest link in the chain. Encrypt your disks.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*o_uof8PAS4yYodC5" /><figcaption>Photo by <a href="https://unsplash.com/@dtopkin1?utm_source=medium&amp;utm_medium=referral">Dayne Topkin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I know a lot of folks who setup a <strong>root password on Linux or account password on Windows</strong> without encrypting their drives, anyone can easily bypass these password with something as simple as a live boot disk. The weakest link in the chain is <strong>TOO WEAK to be reasonably secure</strong>.</p><p>So, here I will discuss a simple tool called <strong>cryptsetup</strong> to encrypt drives on Linux.</p><p>We need to encrypt our internal HDD (root) and external HDD that contain your data.</p><h4><strong>1. Install-time root encryption</strong></h4><p>I was capturing screenshots for writing this blog when I found an easy to follow tutorial by CryptoDad:</p><p>- Part 1: <a href="https://www.youtube.com/watch?v=etzJAG_H5F8">https://www.youtube.com/watch?v=etzJAG_H5F8</a><br>- Part 2: <a href="https://www.youtube.com/watch?v=yJdBIigQcVw">https://www.youtube.com/watch?v=yJdBIigQcVw</a><br>- Part 3: <a href="https://www.youtube.com/watch?v=JyA4owRVUls">https://www.youtube.com/watch?v=JyA4owRVUls</a></p><h4><strong>2. Pendrive / External HDD encryption</strong></h4><blockquote><strong>NOTE: </strong>Remember to move device data elsewhere before starting with these steps. <strong>All data in the device will be deleted.</strong></blockquote><p><strong><em>1. Let&#39;s install cryptsetup:</em></strong></p><p><em>Debian &amp; it’s derivatives:</em></p><pre>sudo apt update<br>sudo apt cryptsetup</pre><p><em>Fedora &amp; it’s cousins:</em></p><pre>sudo dnf install cryptsetup-luks</pre><p><strong><em>2. Find the partition:</em></strong></p><p>Identify the path to the partition you want to encrypt:</p><pre><em>sudo blkid</em></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zMTSGDgg4Cnjms8vQKpuZw.png" /><figcaption>Say, I want to encrypt the device with labelled “ATFS”, then, I’ll note path “/dev/sdb1” in the image.</figcaption></figure><p><strong><em>3. Secure delete partition:</em></strong></p><p>Before encryption, I would recommend you to shred everything from the device:</p><pre>shred -vzn 2 /dev/sdb1<br># v   - Verbose<br># z   - Add a final overwrite of 0s to hide shredding<br># n 2 - Make 2 passes</pre><p><strong><em>4. Encrypt!</em></strong></p><pre>sudo cryptsetup -v luksFormat /dev/sdb1 --verify-passphrase</pre><p><strong><em>5. Open encrypted drive:</em></strong></p><pre>sudo cryptsetup luksOpen /dev/sdb1 &lt;NAME&gt;</pre><p><strong><em>6. Create ext4 filesystem:</em></strong></p><pre>sudo mkfs.ext4 /dev/mapper/&lt;NAME&gt;</pre><p>Now you are good to go, enjoy your encrypted external HDD / pendrive.</p><blockquote><strong>Note:</strong> You can close LUKS partition when you are done:</blockquote><pre>sudo cryptsetup luksClose /dev/mapper/&lt;NAME&gt;</pre><p>If you have any questions or you think I should clarify some step in more detail, please reach out to me on Twitter.</p><p>Note: If you want to label your encrypted partition, cryptsetup can help you with the same:</p><pre>sudo cryptsetup config /dev/sdb1 --label &lt;YOUR_LABEL&gt;</pre><blockquote>Hope this makes disk encryption more accessible for you.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44c79a2352d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Pragmatic Programmer: Part 4]]></title>
            <link>https://atb00ker.medium.com/the-pragmatic-programmer-part-4-5feabffc0d4b?source=rss-d3bfabdda0bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/5feabffc0d4b</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[learn-programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[pragmatic-programming]]></category>
            <dc:creator><![CDATA[atb00ker]]></dc:creator>
            <pubDate>Mon, 23 Nov 2020 19:50:38 GMT</pubDate>
            <atom:updated>2020-12-16T15:26:41.825Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*x0G23xc7tkKOqTfd" /></figure><p>The following sections are not from the book but contrived from my own knowledge. Some of the sections were mentioned in the book but I feel they deserve their own space.</p><h4>54. Keep it Stupid Simple (KISS)</h4><p>The smartest solution to the problem is not the best one, neither is the most optimized one nor the best looking one. The only solution that can stand the test of time is the simplest one.</p><blockquote>“Simplicity is the ultimate sophistication.” <br> — Leonardo Da Vinci</blockquote><h4>55. “Select” is not Broken</h4><p>More often than not, we conclude a tool or dependency to have errors but it’s worth the investigation if we are using it as it was intended by the original developer or if our basic understanding is incorrect.</p><blockquote>The First Rule of Programming: It’s Always Your Fault.</blockquote><h4>56. X-Y Problem</h4><p>The <a href="https://meta.stackexchange.com/questions/66377/what-is-the-xy-problem">X-Y Problem</a>, occurs when a person tries to solve a problem on their own, pursues a method that seems like a promising approach, gets stuck, and then asks for help with their chosen method instead of asking for help with the original problem.</p><h4>57. No Permanent Code</h4><p>All code, even the one in production will require change in future. <strong>Service-oriented architecture </strong>enables us to reliably change a part of the project. It honors the EtC principle.</p><blockquote>“The only constant in life is change”<br> — Heraclitus</blockquote><h4>58. State Coverage vs Code Coverage</h4><p>At a lot of times developers writing tests strive to get 100% code coverage, forgetting missed states in the pursuit. It’s better to test all the possible states of the code and writing tests before or concurrently with the code allows us to think about more possible states.</p><h4>59. Blameless Postmortem</h4><p>A postmortem is a written record of an incident, its impact, the actions taken to mitigate or resolve it, the root cause(s), and the follow-up actions to prevent the incident from recurring.</p><blockquote>Never use possessive pronouns like “my” and “your” to avoid making people defend their mistakes.</blockquote><h4>60. Logs are your best friends</h4><p>When debugging, it’s important to remember the first step is checking the logs. Follow the logs to narrow down the problem domain and iteratively keep narrowing down to arrive at the problem location for effective debugging — it’s a simple tip but evades many developers.</p><h4>61. Code responsibility</h4><p>From security to privacy, all lands at the hands of the developers, it’s important to realize that management does not have inherent understanding of possible damage from lapse. Explain it to them in easy language to have the confidence that your application is safe.</p><blockquote>“Do unto others as you would have them do unto you” <br> — Luke 6:31</blockquote><blockquote>I hope you learned something new today. Good Luck with your skill development!</blockquote><h3>Read More</h3><p><a href="https://medium.com/@atb00ker/the-pragmatic-programmer-part-1-ca89bf568230"><strong>The Pragmatic Programmer: Part 1</strong></a><strong><br></strong><a href="https://medium.com/@atb00ker/the-pragmatic-programmer-part-2-af89f383fdf4"><strong>The Pragmatic Programmer: Part 2</strong></a><strong><br></strong><a href="https://medium.com/@atb00ker/the-pragmatic-programmer-part-3-d189604d2087"><strong>The Pragmatic Programmer: Part 3</strong></a><strong><br></strong><a href="https://medium.com/@atb00ker/the-pragmatic-programmer-part-4-5feabffc0d4b"><strong>The Pragmatic Programmer: Part 4</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5feabffc0d4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>