<?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 Vinsen Muliadi on Medium]]></title>
        <description><![CDATA[Stories by Vinsen Muliadi on Medium]]></description>
        <link>https://medium.com/@uppercase-word?source=rss-799c8f968af1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UDye8edgF__6GPtMZBALEA.jpeg</url>
            <title>Stories by Vinsen Muliadi on Medium</title>
            <link>https://medium.com/@uppercase-word?source=rss-799c8f968af1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 12:04:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@uppercase-word/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[[TECH] Finally, a New Toy.]]></title>
            <link>https://uppercase-word.medium.com/tech-finally-a-new-toy-d54c0bfbb09f?source=rss-799c8f968af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/d54c0bfbb09f</guid>
            <category><![CDATA[m4-mac-mini]]></category>
            <dc:creator><![CDATA[Vinsen Muliadi]]></dc:creator>
            <pubDate>Thu, 18 Sep 2025 16:21:29 GMT</pubDate>
            <atom:updated>2025-09-18T17:25:03.546Z</atom:updated>
            <content:encoded><![CDATA[<p>One fine day (a very long time ago), I went to iBox (one of the Indonesian official stores for Apple products). I don’t plan to make a purchase; I just want to take a look and compare it with my current phone (iPhone 15 Pro). Somehow, I found myself in the Mac Mini section, where I took a look at the technical specifications. Pretty darn amazing, considering the price is “considerably” cheaper than the MacBook and iMac. At that time, I was thinking, “It would be good if I had a good and proper working machine”.</p><p>Fast forward to 2 weeks ago, when I decided to do some in-depth research on the Mac Mini M4 (the latest model we have so far — I know the Mac Mini M5 will be launched soon, and I’m already thinking about it too). In this article, I’ll share my research on the Mac Mini M4, offering an alternative perspective for those considering a purchase.</p><h3><strong>Mac Mini M4</strong></h3><p>Let’s take a look at the Mac Mini M4 first. Their baseline product is <strong>16GB of RAM with 256GB M2.NVMe SSD</strong> in 5x5x2-inch dimensions. Far smaller compared to their previous generation, which I really like personally, as I love a compact-sized, powerful, and dependable machine. There are three USB-C ports with USB4/TB4 (Thunderbolt 4) at the back, one full-sized HDMI 2.1 port, one Gigabit Ethernet port, one power socket, and two USB-C ports with USB 3.2 Gen 1x2. Let’s focus on the commonly accessed ports here.</p><ul><li><strong>2 ports of USB-C (USB 3 — USB 3.2 Gen 1x2)</strong> are able to deliver <strong>up to 10 Gbps.</strong> The power output can deliver approximately <strong>4.5W at 5V@0.9A</strong>. This port is particularly well-suited for flash drives, dongle connectors, and other peripherals.</li><li><strong>3 ports of USB-C (Thunderbolt 4 / USB 4)</strong> that can deliver <strong>up to 40 Gbps</strong>. The power output can <strong>deliver approximately 15W each</strong>. We can utilise this port for <strong>DP</strong> <strong>Alt-Mode</strong>, <strong>docking</strong> <strong>system</strong> connectivity, ultra-fast storage connections, and a <strong>charging system</strong> with a USB4 cable.</li><li><strong>1 full-sized HDMI 2.1 with 48 Gbps bandwidth (up to 8K@60Hz or 4K@240Hz)</strong>. <strong>VRR (Variable Refresh Rate)</strong> and <strong>ALLM (Auto Low Latency Mode)</strong> are supported, similar to a MacBook with a silicon processor. <strong>HDR10 Support,</strong> <strong>Dolby Vision,</strong> and <strong>HLG (Hybrid Log-Gamma)</strong>. Able to deliver <strong>7.1 channel digital audio</strong>.</li></ul><p>So we already have USB4/TB4 here in our Mac, since I’m working with my Samsung M7 43&quot; monitor, I need a reliable connection. Hence, I bought a new USB-C (USB 3.2 Gen 2*2) as a DP-Alt Mode (yes, Samsung M7 didn’t support DisplayPort), and connected it to the monitor. Voila, it’s working really well. No delay, no lag, everything is crystal clear, and it works as simply as that. Now, we are left with two high-speed USB4/TB4 ports. But, hold on. Something is missing with this mini toy. Let’s inspect more.</p><p>We lack several essential features: USB ports, a Micro SD or SD card reader (I have a Nintendo Switch and a Raspberry Pi 4 cluster at home, which makes the operational things, such as accessing the cards, far easier than before), and additional disk space (specifically, 256GB of disk space is not enough for me personally). We need a solution that can boost the disk without significantly impacting performance or functionality. Now, entering the docking station. These are really interesting parts since I do research a lot about this.</p><h4><strong>Mac Mini M4 Docking Station.</strong></h4><p>At first, I would like to choose <a href="https://www.hagibis.com/mac-mini-m4-hub-with-ssd-enclosure-p00335p1.html">HAGIBIS</a>. I love the design because the Mac Mini “hanging” on top of the base docking station maximises airflow. Also, there is a “hole” on the back where we can easily turn the Mac Mini on. Notably, this docking station features a single M2 NVMe SSD on its back, allowing for easy storage expansion. This is the best docking station I’ve seen, and I really want it. Researching the product makes me realise something that I think is a massive drawback. The <strong><em>USB interface</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*MJAR7WYR9eZNeJdn" /></figure><p>As mentioned above, the three ports at the back are using USB4/TB4. That means we’re able to transmit data at a connection speed of up to 40 Gbps (theoretically). Meanwhile, the HAGIBIS docking station above uses USB 3,2 Gen 2x1. I love the design, but I would like to achieve the ultimate result with as few bottlenecks as possible. That makes HAGIBIS a no for me. Hence, I continue my journey to seek the <strong>USB4/TB4 docking station that has an SSD M2 NVMe bay, two or more USB-A ports, and an SD/TF 4.0 slot.</strong></p><p>I spent some time researching products and found another docking station that natively uses USB4/TB4 as its interface and has all the features I want. Introducing <strong>ACASIS M001PRO</strong>. I gotta tell you, this docking station is a <strong><em>BEAST</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*0i3jcK8RNhyPT1CO" /></figure><ul><li><strong>1 port of USB4/TB4 (40 Gbps) Host Input.</strong></li><li><strong>Dock power button</strong>. Similar to HAGIBIS, another mechanism to turn the Mac Mini on. First, lift the Mac Mini, and then press the button to turn it on. This button is really convenient, and I love their idea to make it work.</li><li><strong>Dual DisplayPort (DP) 1.3</strong> with <strong>4K@60Hz.</strong> With DP Alt-Mode and HDMI 2.1 from the host, our device can connect up to 4 displays simultaneously, eliminating the need for an adapter.</li><li><strong>Dual M.2 NVMe SSD Bays. </strong>Internal slots support up to <strong>two 8TB M2.SSDs</strong> (Total up to 16 TB). They <strong>can be configured as RAID 0, RAID 1, or JBOD (Just a Bunch of Disks)</strong>.</li><li><strong>3 ports of USB-A (USB 3.2 Gen 2, 10 Gbps) </strong>are able to deliver up to <strong>10 Gbps</strong>. The power output can deliver approximately <strong>4.5W</strong> at <strong>5V@0.9A</strong>. This port is particularly well-suited for flash drives.</li><li><strong>SD card slot (SD 4.0) and micro-SD card slot (TF 4.0).</strong> SD 4.0 cards boast <strong>read speeds from 80 to over 300 MB/s</strong>, and <strong>write speeds ranging from 10 MB/s to over 200 MB/s</strong>, depending on the card’s specifications and usage scenario.</li><li><strong>30W PD Power Input (Barrel Jack).</strong> Auxiliary power ensures stable operation under high load — driving SSDs, fans, and the hub itself without drawing down the Mac Mini. The dock includes a 30W PD adapter.</li></ul><p>At first, there are many unique things about this docking station, and we’re going to talk about them one by one. Let’s start with the <em>barrel jack </em>connection. Yep, you read it right.</p><p><strong>Barrel Jack Connection. </strong>Plug the adapter into the socket, then connect it to the docking system. Next, connect the USB4 from the docking station to the Mac Mini. I’m wondering what the purpose of it is at first. Is a single USB 4 port not sufficient to keep it running? It was discovered that the purpose of this design is to provide additional power to the dock during heavy operations by operating two SSDs under load, thereby reducing power consumption from the host to keep the docking station online. Really smart design, this makes the Mac Mini‘s power consumption even lower and keeps the temperature more manageable.</p><p><strong>2 SSD M2 NVMe Bays. </strong>Yep, and this is really wild. You can put <strong>TWO SSDs</strong> into the docking station, connect it to the host, and the dock allows you to RAID those disks (RAID 0 and RAID 1 supported), or even mount both disks to your Mac system (JBOD — Just Bunch of Disks). I couldn’t find a docking station or hub that allows you to mount two SSDs like this. After thinking for a while, I decided not to RAID those disks. I mount them separately. Here’s my reason.</p><h3>Why Tho?</h3><p>I use<strong> </strong>the<strong> SAMSUNG</strong> <strong>EVO PLUS 990 2TB </strong>(<strong>TLC type) </strong>as the first disk<strong>, </strong>where I store downloaded files, container-related files, and other write-heavy tasks, and I use <strong>ZHITAI</strong> <strong>SSD</strong> <strong>Ti600</strong> <strong>1TB</strong> (<strong>QLC type</strong>) as my secondary disk, where I store applications, cached files, configuration and other read-heavy and frequently accessed<em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lxi_HdKSukyyjXabepaRsw.png" /><figcaption>Pradon for the weird name. I named my Mac Mini M4, <a href="https://en.wikipedia.org/wiki/Beelzebub">BEELZEBUB</a>, the first disk with <a href="https://en.wikipedia.org/wiki/Abezethibou">ABEZETHIBOU</a> (Beelzebub’s Son), and the second disk with SATADIST (pun intended of a “Satanist” — but believe me, I’m not even a satanist). Love to watch horror movies doesn’t mean you love to get jumpscare every day, right? Also, another pun intended for the SATA Disk — but SATA for the Hard Disk Drive, meanwhile, we’re using SSD.</figcaption></figure><h3>2 SSD Brands? TLC? QLC?</h3><blockquote>Why aren’t we using the same brand and size of SSD? I do know SAMSUNG SSD, a very well-known brand for SSDs. But I don’t know ZHITAI. I believe it’s a cheap SSD drive that you can find on the marketplace.</blockquote><p>Totally correct. I didn’t even know what the Zhitai brand was at first. I just found a cheap SSD from a trusted marketplace with a good rating and review. <em>Note: Even with the acceptable risk, I couldn’t find the performance benchmark on reputable forums.</em> However, I have another reason why I ultimately trust it and choose to use it alongside my <strong>Samsung 990 EVO Plus</strong>. Introducing another term to you, <strong><em>NAND drive types</em></strong>.</p><p>So basically, there are four types of NAND drives. <strong>SLC</strong>, <strong>MLC,</strong> <strong>TLC,</strong> and <strong>QLC.</strong> <strong>SLC and MLC are targeted at the premium and enterprise-grade SSD drives.</strong> <strong>TLC and QLC are for home and personal usage.</strong> <em>Things are getting technical at this point, but I try to explain it in human language without losing the details. I recommend you brew some coffee (or tea) while enjoying this post ☕.</em></p><p><strong>TLC</strong> (definitely not a <em>Table, Ladder, and Chair</em> match on WWE) is an abbreviation for <strong>Triple-Level Cell, which consists of 8 voltage states</strong>. Meanwhile, <strong>QLC (Quad-Level Cell) consists of 16 voltage states</strong>. There are many differences between those two, starting from their price, writing speed, performance, and even life expectancy. <em>Note: all the data written here is based on the 2TB SSD, and the number is theoretically calculated.</em></p><h3>SLC Cache Size.</h3><p><strong>TLC and QLC have some sequential writing speed (5,000–7,000 MBps) despite the number of voltage states.</strong> But these models have something called <strong>SLC (Single-Level Cell) Cache Size.</strong> <strong>TLC has a 300–400GB cache size, and QLC has 100–200GB.</strong> This SLC cache size makes the write fast and durable since it runs on the “pretend SLC Mode” (1 bit per cell). Since QLC has more cells compared to TLC, this affects the writing speed. Even par with the TLC itself.</p><p>Whenever the cache fills up, the writing speed will be dropped significantly. For the <strong>TLC,</strong> the writing speed will be <strong>dropped to 78,57% from 7,000 MBps to 1,500 MBps.</strong> On the other hand, the writing speed for the QLC will <strong>drop to 92,86% from 7,000 Mbps to 500 Mbps. </strong>That’s why I assigned the write-intensive tasks to the <strong>SAMSUNG 990 EVO PLUS</strong>, given its significantly larger cache compared to the Zhitai’s.</p><h3><strong>Terabytes Written.</strong></h3><p>Another concern that makes me separate those disks is <strong>TBW (Terabytes Written)</strong>, which can be defined as the <strong>age of the SSD drives</strong>. <strong>Whenever the TBW runs out, you cannot modify the data inside, not even delete it</strong>. After you modify the data inside, the changes will be reverted. That’s why the SSD product warranty usually puts the number of TBW.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*BWAfARJvQ6pTLbeDbseU1w.png" /><figcaption>Reference: <a href="https://semiconductor.samsung.com/consumer-storage/support/warranty/">https://semiconductor.samsung.com/consumer-storage/support/warranty/</a></figcaption></figure><p>These TWB things are calculated based on the <strong>P/E (Programmed/Erased) cycle. TLC has a 1,000–3,000 P/E Cycle. On the other hand, QLC has a 100–300 P/E Cycle.</strong> The number isn’t exactly accurate for determining the age, but it will give us a better idea of the disk’s performance and durability.</p><p><strong>TLC theoretically has 2PB TBW (1PB — Petabyte is equal to 1024TB).</strong> Meanwhile, <strong>QLC has 270TB</strong>. That means the more you modify the data to and from the disk, the shorter the drive’s lifespan. <strong>The happy news is that those do not apply to the read operations. So it doesn’t matter whenever you read the data from that disk.</strong> It’s absolutely fine, and there is <strong>no penalty for that action</strong>. That’s another reason I placed the <strong>write-heavy tasks in the TLC since they have a higher TBW compared to the QLC</strong>.</p><p>Another reason why I separate the disks is how I handle data in the event of failure and attempt to recover lost data. I don’t mind if the data on my SSD is erased, as I‘m aware the stored data is not crucial (hence I don’t strip the disk into RAID1). However, I also don’t want to lose the disk in case of failure (another reason I don’t strip the disk into RAID0). I prefer to have the disk running independently, with each purpose and role serving to increase longevity and optimise its drive’s performance. I love the middle way, as taught by Gautama Buddha.</p><blockquote><strong>The middle way describes the middle ground between attachment and aversion, between being and non-being, between form and emptiness, between free will and determinism</strong>.</blockquote><p>I hope this post provides you with some insight and helps you learn something. This also gives you a better idea if you’ve a plan to buy a Mac Mini M4 for yourself.</p><p>There will be another post about the tips and tricks, optimisation, and research on the Mac Mini M4. One of the posts I’m working on currently is optimising the container images and machine on the Mac Mini M4, as we all know that a 256GB SSD is quite small. So we need to find a workaround to make it work. Cheers~</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d54c0bfbb09f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Katolik dan Buddhisme. Agama dan Filosofi]]></title>
            <link>https://uppercase-word.medium.com/katolik-dan-buddhisme-agama-dan-filosofi-7acb4f6c991a?source=rss-799c8f968af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/7acb4f6c991a</guid>
            <dc:creator><![CDATA[Vinsen Muliadi]]></dc:creator>
            <pubDate>Sat, 26 Apr 2025 17:59:37 GMT</pubDate>
            <atom:updated>2025-04-27T09:24:37.346Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Sebelum saya memulai artikel yang saya rasa cukup panjang ini. Saya ingin berdoa singkat kepada Bapa Paus Fransiskus yang berpulang ke rumah Bapa di Surga pada tanggal 21 May 2025. Bapa Paus Fransiskus memberikan contoh nyata dan konkrit kepada kita semua tentang kesederhanaan dan kerendahan hati. Bapa Paus Fransiskus akan dikenang dan diingat oleh seluruh dunia akan kontribusi beliau terhadap perdamaian dunia. Mari kita jadikan Bapa Paus Fransiskus sebagai teladan, sehingga kita dapat meneruskan semangat, kesederhanaan, dan kerendahan hati beliau dan menerapkannya dalam kehidupan sehari-hari. Amin.</blockquote><h3><strong>Buddhism — the Beginning</strong></h3><p>Saya tumbuh di keluarga yang tergolong <em>secular </em>(memiliki batasan jelas kapan harus bersumber kepada agama dan kapan harus bersumber dari nalar, logika, dan kepentingan bersama), tetapi memiliki pengetahuan <em>Dhamma</em> yang bisa saya katakan cukup untuk tidak dibilang sebagai umat Buddhist KTP.</p><p>Ayah saya adalah seorang mantan Locu (“Locu” adalah istilah yang merujuk pada seseorang yang bertugas merawat altar dewa di Vihara). Mengabdi kepada MBI Rayon I sebagai Bendahara selama 20+ tahun. Beberapa tahun ini sudah dilantik menjadi seorang UAP (Upasaka Anu Pandita — seseorang yang telah melalui pelatihan dan diangkat untuk membantu para pandita utama dalam berbagai kegiatan, seperti pelayanan umat dan kegiatan keagamaan).</p><p>Ibu saya adalah seorang yang tergolong aktif dalam keanggotaan di WBI (Wanita Buddhist Indonesia). Tak heran bagi saya untuk kedua orang tua saya mengikuti kebaktian setiap minggu pukul 8 malam). Ibu saya juga aktif dalam acara dan kegiatan di Vihara seperti bazaaar, doa bersama, lomba cerdas cermat (saya sangat ingat ketika saya membantu Ibu saya untuk belajar Agama Buddha secara teori 😅), dan acara keagamaan lainnya.</p><p>Saya sendiri adalah seorang karyawan swasta yang hingga SMA bersekolah di sekolah swasta yang berbasiskan Agama Buddha. Jadi sudah dipastikan saya belajar tentang Agama Buddha mulai dari teori, pratik, dan implementasinya dalam dunia sehari-hari hingga sampai sekarang. Saya tidak merasa bahwa saya adalah seorang yang <em>religious</em>, tetapi saya tertarik untuk membaca kitab suci dan pandangan dari tokoh Agama Buddha. Dari hasil membaca ini, saya menemukan sesuatu yang sangat unik dari Agama Buddha yang merupakan ciri khas dan sangat relevan dengan pola pikir saya sebagai seorang yang <em>secular</em>. Agama Buddha adalah satu-satunya agama (yang saya ketahui) yang mengundang untuk dibuktikan (Ehipassiko), dan secara gamblang dan jelas mengatakan “jangan percaya terhadap sesuatu hanya karena tertulis di kitab suci”.</p><blockquote><strong>Jangan percaya</strong> pada sesuatu <strong>hanya karena Anda telah mendengarnya</strong>. <strong>Jangan percaya</strong> pada sesuatu <strong>hanya karena diucapkan dan dikabarkan oleh banyak orang</strong>. <strong>Jangan percaya</strong> pada sesuatu <strong>hanya karena ditemukan tertulis dalam buku-buku agama Anda</strong>. <strong>Jangan percaya</strong> pada apapun <strong>hanya berdasarkan otoritas guru dan orang tua</strong>. <strong>Jangan percaya</strong> <strong>pada tradisi</strong> <strong>karena mereka telah diwariskan selama beberapa generasi</strong>.</blockquote><blockquote>Tetapi setelah kamu observasi dan analisis, maka ketika kamu mendapati hal apapun sejalan dengan akal-budimu dan menolongmu untuk mendatangkan kebaikan dan manfaat bagi satu dan semua orang, maka terimalah itu dan jalankanlah.</blockquote><p>Sangat <em>align </em>dengan issue-issue yang kita hadapi di abad ke-21, dimana kita lebih memilih untuk percaya kepada <em>authoritative answer, </em>dan “percaya buta” kepada kitab suci, budaya, dan ucapan orang-orang baik di jaman dulu maupun di jaman sekarang. Kita dihadapkan kepada realita dimana banyak informasi <em>hoax</em>, tidak benar, dan tidak ada bukti yang konkrit akan sebuah informasi sampai kita membuktikan sendiri bahwa informasi itu benar dan akurat.</p><p>Konsep Buddhisme yang unik dimana kita tidak memiliki konsep Tuhan , tetapi memiliki konsep Ketuhanan yang sejalan dengan sila pertama di Pancasila — Ketuhanan yang Maha Esa.</p><p>Mohon bedakan antara Tuhan dan Ketuhanan. Tuhan adalah “subject”, sedangkan Ketuhanan adalah kata sifat (sifat-sifat dari Tuhan) dimana dalam ranah Buddhisme kita kenal dengan istilah Brahma Vihara (Metta, Karuna, Mudita, dan Upekkha).</p><blockquote>Ketahuilah para bhikkhu bahwa ada sesuatu yang Tidak Dilahirkan, yang Tidak Menjelma, yang Tidak Tercipta, yang Mutlak. Duhai para Bhikkhu, apabila tidak ada yang Tidak Dilahirkan, yang Tidak Menjelma, yang Tidak Diciptakan, yang Mutlak, maka tidak akan mungkin kita dapat bebas dari kelairan, penjelmaan, pembentukan, pemunculan dari sebab yang lalu. Tetapi para bhikkhu, karena ada yang Tidak Dilahirkan, yang Tidak Menjelma, yang Tidak Tercipta, yang Mutlak, maka ada kemungkinan untuk bebas dari kelahiran, penjelmaan, pembentukan, pemunculan dari sebab yang lalu. — Sutta Pitaka, Udana VIII:3.</blockquote><p>Saya secara pribadi lebih melihat bahwa Buddhisme itu sangat jauh berbeda dengan konsep Agama-Agama Samawi (Abrahmic) yang sangat menekankan seorang tokoh pewarta atau Nabi dan sosok Tuhan yang memiliki sifat <em>omnipresent, omnipotent, dan omniscient. </em><strong>Buddhisme lebih mengarah kepada perkembangan pribadi umat ke arah humanisme</strong>, sehingga kita dapat terbebas dari penderitaan (<em>dukkha</em>) hingga mencapai Nibbana dengan meng-implementasikan <em>Cattari Ariya Saccani</em> (Empat Kebenaran Mulia) — terlepas dari kebaktian dan proses penghormatan yang lain seperti <em>Pradakshina</em> dan bentuk penghormatan yang lain<em>.</em></p><p>Dan hingga saat ini, saya tetap mengimplementasikan ini di dalam kehidupan saya secara pribadi, dan akan tetap saya pertahankan karena sangat <em>align </em>dengan konsep “hominisasi” dan “humanisasi” (manusia me-manusiakan sesama manusia) sebagai insan <em>homo homini socius </em>sesuai dengan pandangan seorang tokoh nasionalis dan filsuf Indonesia yang bernama Prof. Dr. N. Driyarkara, S.J.</p><p>Sampai ditahap ini, saya berpegang teguh sebagai seorang <em>Secular Buddhism</em>. <em>Secular Buddhism</em> adalah pandangan yang lebih terfokus kepada aksi nyata secara humanis dan menolak unsur-unsur yang bersifat supernatural dan elemen keagamaan. Saya semakin banyak bertemu dengan circle humanis dan referensi ke tokoh-tokoh masyarakat dan agama. Salah satu tokoh yang saya sangat terkesan adalah Paus Fransiskus (<em>Pope Francis</em>), dan beliau adalah titik dimana saya sangat tertarik dengan pandangan beliau dimana beliau sangat menyuarakan nilai-nilai humanis.</p><h3><strong>Catholicism — the Diversion</strong></h3><p>Seiring dengan berjalannya waktu, satu dan lain hal saya ikut kelas agama Kristen Protestan GKI (Gereja Kristen Indonesia), denominasi gereja Kristen yang secara tata cara ibadah yang paling dekat dengan Katolik dan salah satu anggota <a href="https://pgi.or.id/">Persekutuan Gereja-Gereja di Indonesia (PGI)</a>. Setelah ikut kelas katekisasi selama kurang lebih 6 bulan lebih dan melewati semua proses yang diperlukan, saya memutuskan untuk tidak melanjutkan proses baptis karena bertentangan dengan nilai pribadi dan unsur budaya yang masih erat saya pegang secara keturunan <em>Chinese</em>. Dimana saya ingin menghormati mendiang Ibu saya seperti bagaimana Ibu saya menghormati leluhur-leluhurnya, dan saya secara pribadi tidak bersedia untuk melepas nilai budaya itu. Dengan demikian, saya kembali ke <em>stance</em> saya diawal sebagai <em>Secular Buddhism</em>.</p><p>Setelah berkelana secara spiritual dan berdiskusi kepada kerabat yang berbeda keyakinan dengan saya, saya membuka hati sekali lagi dan mencoba berkunjung ke <em>Gereja Katedral Santa Perawan Maria Diangkat ke Surga</em> di Jakarta, dan mencoba memahami esensi dan perbedaan antara gereja Katolik dengan GKI. Disini saya menemukan bahwa saya lebih cocok dengan gereja Katolik karena lebih <em>flexible</em>, dimana saya tetap memegang teguh nilai kebudayaan, filosofi, dan gaya hidup saya sebagai orang yang <em>secular</em>. Ditambah lagi sosok yang saya jadikan panutan (Pope Francis) adalah seorang “<em>Vicar of Christ</em>” yang juga berasal dari Katolik.</p><p>Pada saat itu juga, saya berniat untuk belajar tentang Katolik dan mencoba menjadi bagian dari Gereja Katolik. Tanggal 02 Juni 2024, saya ikut kelas <a href="https://kumparan.com/berita-hari-ini/arti-katekumen-dan-tahapannya-dalam-agama-katolik-20StXFsy2b4/3">Katekumen</a> sebagai seorang simpatisan Katolik. Tepat tanggal 30 Maret 2025, saya dibaptis oleh Rama Fransiskus Xaverius Alip Suwito, Pr. di gereja Santo Ignatius Kota Magelang. Lewat <em>medium post</em> ini saya berterima kasih banyak kepada para Katekis yang sudah membimbing hingga pembaptisan sehingga saya diterima di Gereja Katolik sebagai umat.</p><h3><strong>Buddhism + Catholicism — the Amalgamation</strong></h3><p>Terlahir baru sebagai seorang Katolik mengharuskan saya untuk mengikuti perintah Gereja dan kewajiban sebagai seorang Kristiani Katolik untuk mengikuti 10 Perintah Allah merupakan sesuatu yang sangat baru. Dalam praktiknya sendiri, saya sudah menunaikan sejauh apa yang saya bisa seperti mengikuti perayaan Ekaristi, menerima tubuh Kristus dalam bentuk komuni, dan mengikuti hari besar seperti Minggu Palma dan Triduum Paskah (Kamis Putih, Jumat Agung, dan Sabtu Suci — Vigili Paskah), dan Hari Raya Paskah yang merupakan puncak perayaan iman Katolik.</p><p>Namun sejati-nya, saya tidak dapat meninggalkan filosofi yang sudah saya anut dan identitas saya sebelumnya sebagai <em>secular buddhism.</em></p><p>Setelah menelaah beberapa referensi, saya membaca tentang pandangan dari seorang tokoh agama yang bernama Paul F. Knitter, seorang Professor Teolog yang menulis sebuah buku yang berjudul “<em>Without Buddha I Could Not Be a Christian</em>” dimana ia menyebut dirinya sebagai sosok “<strong><em>Double Belonging</em></strong>”. Dari buku itu, saya menemukan bahwa beberapa orang yang memiliki model pemikiran seperti saya seperti <a href="https://michaelkholleran.org/">Fr. Michael K. Halloran</a>, <a href="https://en.wikipedia.org/wiki/Thomas_Merton">Thomas Merton</a>, dan <a href="https://en.wikipedia.org/wiki/Robert_Kennedy_(Jesuit)">Father Robert Kennedy</a><strong>.</strong></p><p>Dari sana, saya memutuskan untuk menjadi “<em>Double Belonging</em>” dimana saya berstatus sebagai <strong>umat Katolik, menjalankan perintah Gereja dan mengikuti 10 perintah Allah</strong> dan dalam waktu yang bersamaan, saya <strong>menjalankan hidup dengan menerapkan buddhist phiolosophy</strong> <strong>yang berfokus kepada humanisme </strong>dalam kehidupan sehari-hari.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7acb4f6c991a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Inside My Mind #003]]></title>
            <link>https://uppercase-word.medium.com/what-inside-my-mind-003-72411fc6a356?source=rss-799c8f968af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/72411fc6a356</guid>
            <dc:creator><![CDATA[Vinsen Muliadi]]></dc:creator>
            <pubDate>Mon, 23 Dec 2024 05:05:47 GMT</pubDate>
            <atom:updated>2024-12-23T05:08:28.670Z</atom:updated>
            <content:encoded><![CDATA[<p>Sudah lama gak update dan kebetulan saya dapat topik menarik dari Instagram Reels. Isi reels-nya adalah “seorang supir ojek online yang sudah agak berumur, salah arah hidup. Dia suka-nya IT, cuman orang tua-nya <em>nge-push</em> untuk masuk ke PTN (Perguruan Tinggi Negeri). Terakhir dia jebol ke UGM, dan kuliah di program studi “Kedokteran Hewan”. <em>Despite</em> klaim-nya benar atau enggak, saya tertarik buat postingan tentang ini.</p><blockquote>Note: Postingan ini berisi opini saya dan tidak mewakilkan orang-orang disekitar saya ataupun kantor tempat saya bekerja. Murni hasil pemikiran saya sendiri.</blockquote><p>Dari <em>reels</em> tersebut, saya jadi ingat dulu sewaktu SMA. Ada beberapa guru yang bikin klaim “PTN itu bagus, PTS itu jelek”. Bisa dibilang beberapa guru SMA saya ini fanatik dan memiliki <em>fetish </em>tersendiri dengan PTN. Tetapi izinkan saya buat <em>sharing</em> apa yang ada di pikiran saya tentang PTN dan PTS.</p><p><strong><em>Kita mulai dengan kuliah dulu. Kuliah di perguruan tinggi itu pilihan, tidak ada masalah dengan kuliah di luar negeri, PTN, ataupun PTS (Perguruan Tinggi Swasta).</em></strong></p><blockquote><em>Tapi sebelum itu, saya akui beberapa PTN memang memiliki peringkat dan menghasilkan individu-individu yang berkelas dan berkualitas. Bahkan masuk ke dalam 100 Universitas terbaik di dunia, tetapi bukan menjadi premis untuk meng-klaim PTS itu jelek. Banyak juga kualitas PTS PTS dengan prestasi membanggakan. Tidak ada alasan yang dapat digunakan untuk meng-klaim kalau PTS itu jelek. Fakta-nya beberapa perguruan tinggi terbaik di dunia itu adalah PTS (MIT dan Harvard misalkan).</em></blockquote><p>Yang menjadi masalah itu adalah <strong><em>mau ambil program studi apa di perguruan tinggi</em></strong> dan <strong><em>program studi yang akan diambil itu ada korelasi dengan arah hidup atau tidak?</em></strong> Karena sejatinya, kuliah di perguruan tinggi itu adalah mengambil studi lanjut dengan bidang yang sesuai dan <em>align </em>dengan arah hidup kita. Apabila arah hidup Anda menjadi seorang Electrical Engineer, maka ambillah program studi yang mendukung arah hidup Anda seperti Teknik Elektro (<em>Electrical Engineering</em>). Jangan ambil program studi dari Fapet (Fakultas Peternakan).</p><p>Semisalkan ada seseorang yang “YOLO”, dimana ditengah jalan arah hidupnya berubah. Yang dulu kuliah bagian Teknik Kimia di salah satu PTN ternama di Indonesia, tetapi sekarang bekerja sebagai seorang <em>Software Engineer</em> di perusahaan rintisan (<em>startup</em>). Tidak dapat dibantah kalo semasa kuliah, orang tersebut jauh lebih cocok dan tidak membuang waktu selama 4 tahun berada di program studi yang tepat seperti Teknik Informatika atau Ilmu Komputer (dan tidak ada masalah kalau dia kuliah di PTN atau PTS). Soalnya mata kuliah yang diampu selama studi di Teknik Kimia tidak terpakai banyak ketika menjadi <em>Software Engineer</em> (mungkin terpakai beberapa, tetapi dapat dipastikan hanya sebagian sangat kecil saja). Software Engineer tidak perlu tau tentang kimia organik atau gugus fungsi sulfona untuk meng-implementasikan ISP (<em>Interface Segregation Principle</em>).</p><p>Dari sini kita udah tau sebenarnya, kalau sebenarnya ujung-ujungnya itu yang perlu kita <em>address</em> itu adalah mau ngapain dengan gelar yang sudah kita bawa. Yang perlu dikejar dari hidup itu ke-depannya adalah mengejar sesuatu yang kita mau, bukan mengejar PTN atau mungkin semata-mata untuk menaikkan nilai akreditasi sekolah.</p><p>Kita lanjut di “What Inside My Mind # 004”. Saya akan mencoba membahas tentang sisi positif yang ada dari “salah arah hidup” (syarat dan ketentuan berlaku). Tidak semua “salah arah hidup” ini berdampak buruk, sayangnya tidak untuk semua orang saja (setidaknya berdasarkan pengamatan hidup dan analisis saya ke beberapa orang yang pernah saya kenal).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72411fc6a356" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Inside My Mind #002]]></title>
            <link>https://uppercase-word.medium.com/what-inside-my-mind-002-5ca58ce21a02?source=rss-799c8f968af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ca58ce21a02</guid>
            <dc:creator><![CDATA[Vinsen Muliadi]]></dc:creator>
            <pubDate>Tue, 30 Jul 2024 17:53:36 GMT</pubDate>
            <atom:updated>2024-07-30T17:53:36.580Z</atom:updated>
            <content:encoded><![CDATA[<p>Sebelum lanjut cerita, saya mau cerita tentang sudut pandang saya tentang kuliah lagi. Kuliah bagi saya pribadi bukan sekedar “pendidikan lanjutan setelah SMA”. Logikanya kalau cuman pendidikan lanjutan di bagian technology, duit-nya <em>eman-eman </em>dan lebih baik dipake untuk beli course di Udemy atau Coursera.</p><p>Karena sejati-nya itu kuliah <strong>TIDAK MENJAMIN</strong> (tetapi perguruan tinggi berusaha membantu dengan memberikan peluang) pekerjaan yang lebih baik dari yang tidak kuliah, beda-nya cakupan kerjaan dan gaji bulanan yang <strong>BERPOTENSI LEBIH BESAR</strong> daripada yang teman-teman yang tidak kuliah. Makanya asumsi orang dulu yang bilang, kuliah biar sukses tidak sepenuhnya salah, tetapi banyak faktor yang mempengaruhi.</p><blockquote>Asumsi masyarakat cukurukuk <em>yang bilang antara tidak kuliah dan kuliah sama-sama di gaji UMR juga tidak sepenuhnya salah. Faktanya di lapangan memang begitu, tetapi di lapangan juga banyak yang tidak kuliah malah lebih sukses daripada teman-teman yang kuliah (dalam konteks “pegawai swasta”).</em></blockquote><blockquote><em>Disini kita sadar kalo masalah kuliah dan tidak kuliah ini cuman masalah mindset. Jadi kalo orang-nya kuliah ataupun tidak, itu hanya masalah mentallity aja. Kalau orang-nya punya </em>growth mindset<em> sih tidak apa-apa cuman kalau tidak ya memang ga ada beda-nya tetap nyembah </em>“tir petir” “depa depo”<em>.</em></blockquote><p>OK, <em>back to the main story</em>. Salah satu kesempatan yang menurut saya exclusive dari orang yang kuliah itu adalah relasi. Semakin bagus Perguruan Tinggi-nya, semakin besar kemungkinan orang bertemu dengan relasi yang bagus juga. <em>Job fair</em>, acara komunitas di kampus, “khotbah” alumni, dan beberapa kegiatan kampus lain memberikan <em>exposure</em> kita yang <em>cungpret</em> dan <em>fresh from the oven</em> ini. Singkatnya bisa dibilang nyari “orang dalam”, tetapi dasar-nya juga tetap sadar diri.</p><p>Dapat “orang dalam” ini, juga ada <em>consideration</em>-nya. Kalau kita ga punya kualitas apa-apa, “orang dalam”-nya juga malas bawa kita. Soalnya yang ada malah bikin malu soalnya “kerjaan yang harusnya bisa selesai cepat malah jadi makin lama karena kita-nya jadi <em>blocker</em>”. Karena apa? Karena salah bawa orang. Makanya “orang dalam” cenderung bawa orang yang <em>talented</em> dan <em>capable</em>. Misalkan kamu butuh ART (Asisten Rumah Tangga) dan ada kenalan beberapa ART. Jelas kamu butuh ART yang kompeten dong, bukan ART yang ngepel dulu baru nyapu.</p><p>Jadi, ya selama kuliah jangan kira kalo selama kamu lulus kuliah, dapat IPK tinggi, bakalan aman ke depannya. Tidak seperti itu, malah kalau boleh bilang saya skeptis dengan teman-teman yang IPK-nya tinggi (personal opinion). Ada 2 hal yang saya skeptis buat IPK tinggi. Antara nunjukin orang yang beneran pintar, cepat untuk belajar sesuatu atau nunjukin orang yang cuman nurut sama perkataan dosen doang.</p><p>Di dunia kerja (terutama bidang teknologi), perkembangan teknologi sangat pesat. Ilmu yang didapat di Perguruan Tinggi cuman ngajarin dasar-nya saja. Pondasi dasar untuk besok kalo belajar yang lebih advanced, setidaknya dasarnya tau. Teori “Jaringan Komputer” tentang <em>routing </em>dan <em>subnetting </em>dengan menghitung <em>CIDR</em>, harapan-nya kita mengerti dasar teori-nya, jadi kalau besok ada keperluan belajar sesuatu yang mengenai ini, kita bisa lebih cepat mengerti.</p><p>Contoh saja konsep OOP (<em>Object Oriented Programming</em>), konsep dasar <em>polymorphism, encapsulation, inheritance, et cetera</em>. Programming language yang dipakai di perusahaan yang cenderung maju secara teknologi menggunakan konsep yang sama, <strong>HANYA SAJA</strong> bahasa yang digunakan kemungkinan berbeda. Akan tetapi konsep-konsep seperti <em>inheritance, </em>encapsulation, dan<em> polymorphism</em> itu tetap saja dipakai.</p><p>Tapi tetap perlu dicatat bahwa beberapa perusahaan yang besar dan sangat berkembang secara teknologi juga menggunakan bahasa yang sangat berbeda secara konsep, <em>syntax</em>, <em>idiomatic, </em>dan lain-lain seperti Go, Rust, Lua, Haskell, Erlang, atau Scala.</p><p>Sekian dulu untuk “What Inside My Mind — Part 002”. Sudah cukup banyak mengoceh tentang apa yang saya pikirkan tentang perjalanan spiritual selama berkuliah hingga ke quarter-life crisis ini. Sampai jumpa di “What Inside My Mind — Part 003”. <em>Adios amigos~</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ca58ce21a02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Inside My Mind #001]]></title>
            <link>https://uppercase-word.medium.com/what-inside-my-mind-001-d89a9048a559?source=rss-799c8f968af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/d89a9048a559</guid>
            <dc:creator><![CDATA[Vinsen Muliadi]]></dc:creator>
            <pubDate>Tue, 23 Jul 2024 10:58:15 GMT</pubDate>
            <atom:updated>2024-07-23T10:58:15.127Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>“Hidup ini bukan tentang apa yang lo mau, tapi juga tentang apa yang lo bisa.” — Adriano Ikhsan Qalbi</strong></blockquote><p>Jadi kalau kita mau hidup mendingan, kita juga harus bisa hidup mendingan. Dalam artian, harus ada usaha gimana caranya biar bisa hidup mendingan. Misalkan kalau mau dapat uang lebih, harus bisa mendapatkan uang yang lebih. Caranya gimana? <strong><em>You need to be better than the others.</em></strong></p><p>Kalau ditilik ke belakang kenapa bisa berada di-titik sekarang yang bisa dibilang “titik aman” di masa quarter-life crisis, karena kebanyakan waktu dihabiskan untuk menyeimbangkan “<em>you need to be better than the others</em>” sambil “<em>I just want to live my life happily and doing what I really want</em>”. Dan kebetulan saya orang-nya malas ke luar (<em>I can say this one is the perks of being an introvert at some point</em>).</p><p>Bermain J-RPG pake emulator PS1 atau PS2 — <em>finishing</em> <em>side-quest</em> game sampai <em>perfect gameplay</em>, tamatin Final Fantasy VII perfect game dalam waktu kurang dari 3 hari (<em>I can say I’m an avid gamer since I’m born — and still</em>), dan investasi waktu buat belajar apa yang benar-benar saya ingin lakukan.</p><p>Ditengah-tengah “perjalanan spiritual” ini, saya sadar bahwa “better than the others” ini bisa dilakukan oleh semua orang. Namun caranya berbeda-beda tiap orang. Ada yang benar-benar “easy peasy lemon squeezy” dan ada yang harus berdarah-darah. Karena …</p><blockquote>Seseorang bisa berbuat lebih dari orang lain itu karena ada 2 hal. Memang karena orangnya berbakat dari lahir (innate talent) atau memang orangnya berusaha keras belajar untuk melakukan itu.</blockquote><p>Musisi virtuoso seperti Chris Broderick itu bukan lahir, menua, terus langsung join Nevermore, Jag Panzer, Megadeth, and In Flames jadi Lead Guitarist. Benar-benar ada dedikasi disana, lebih ke arah persistent kalau mau dibilang sehingga dia berada di titik sekarang.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*c67MIpfu-xzQw63lLI3Tuw.png" /><figcaption>Reference: <a href="https://guildguitars.com/guild-conversation-megadeths-chris-broderick/">https://guildguitars.com/guild-conversation-megadeths-chris-broderick/</a></figcaption></figure><p>Nah, karena saya sadar orang-nya bodoh, jadi harus banyak effort biar bisa <em>keep-up</em>. Jadi sewaktu kuliah dulu, saya jarang keluar dari kost (kecuali ke kampus, acara komunitas, cari makan pagi/siang/malam, cari kebutuhan pokok, dan keperluan urgent lainnya). Saya harus berusaha lebih tekun dari orang lain supaya bisa bersaing atau bahkan <em>better than the others</em>.</p><p>Selain itu, <em>better than the others</em> saya sadar kalo saya keluar dari kampus cuman modal IPK cum-laude (bacot. IPK cuman 3,41) gak akan bawa saya kemana-mana. Disana-sana aja dan mungkin akan tetap digaji UMR. <em>I’m not gonna let that happen to me</em>. Jadi solusinya apa? <strong><em>Cari relasi (either business, atau ke orang yang experienced, atau ke kantor yang bonafit)</em></strong><em>.</em></p><p>To be continued “What Inside My Mind #002”. Terima kasih sudah meluangkan waktu buat membaca apa yang diotak saya selama saya kuliah dulu, ditunggu kelanjutannya dari si bodoh ini.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d89a9048a559" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python AWS SDK Failed to Retrieve More Than 1000Files]]></title>
            <link>https://uppercase-word.medium.com/python-aws-sdk-failed-to-retrieve-more-than-1000files-8392aa15e079?source=rss-799c8f968af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/8392aa15e079</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[aws-s3]]></category>
            <category><![CDATA[aws-sdk]]></category>
            <dc:creator><![CDATA[Vinsen Muliadi]]></dc:creator>
            <pubDate>Wed, 27 Mar 2024 13:47:31 GMT</pubDate>
            <atom:updated>2024-03-27T16:03:28.818Z</atom:updated>
            <content:encoded><![CDATA[<h3>Python AWS SDK Failed to Retrieve More Than 1000 Files</h3><p>Recently, I found a limitation where AWS S3 can only return up to 1000 objects in a single retrieve and this one is coming from their boto3 SDK, but this limitation does not apply to the awscli command. Here’s the sample from my object storage bucket.</p><pre>$ aws s3 ls s3://&lt;BUCKET_NAME&gt; --endpoint-url &lt;ENDPOINT_URL&gt; | wc -l  # 1391<br>$ aws s3api list-objects --bucket &lt;BUCKET_NAME&gt; --endpoint-url &lt;ENDPOINT_URL&gt; \<br>  | jq -r &#39;.Contents | length&#39; # 1391</pre><p>OK, that means we need to do a workaround in Python AWS SDK. I believe there are more efficient ways to do it, but since I’m a novice in Python programming, so I thought I’d do it plainly. Here’s the snippet code on how to do it.</p><pre>import boto3<br>c = boto3.client(service_name=&quot;s3&quot;,<br>                 aws_access_key_id=access_key,<br>                 aws_secret_access_key=secret_key,<br>                 endpoint_url=endpoint_url)<br><br>cloudflare_files = list()<br>def retrieve_files_req(continuation_token):<br>  if continuation_token == &quot;&quot;:<br>    s3_files_response = c.list_objects_v2(Bucket=bucket_name,<br>                                          MaxKeys=500,<br>                                          EncodingType=&quot;url&quot;)<br>  else:<br>    s3_files_response = c.list_objects_v2(Bucket=bucket_name,<br>                                          MaxKeys=500,<br>                                          EncodingType=&quot;url&quot;,<br>                                          ContinuationToken=continuation_token)<br><br>  for file in s3_files_response[&quot;Contents&quot;]:<br>    cloudflare_files.append(file)<br>    print(&#39;Name: {}. Size&quot; {}. Storage Class: {}&#39;.format(file[&quot;Key&quot;],<br>                                                         file[&quot;Size&quot;],<br>                                                         file[&quot;StorageClass&quot;]))<br>  ))<br><br>  try:<br>    print(&quot;Success retrieve {} files ...&quot;.format(len(cloudflare_files)))<br>    return s3_files_response[&quot;NextContinuationToken&quot;]<br>  except KeyError: return &quot;RETRIEVE_COMPLETELY&quot;<br><br><br>continuation_token = &quot;&quot;<br>retrieve_again = True<br>while retrieve_again:<br>  continuation_token = retrieve_files_req(continuation_token)<br>  if continuation_token == &quot;RETRIEVE_COMPLETELY&quot;:<br>    retrieve_again = False</pre><p>There is a while loop function that keeps calling the retrieve_files_req . When the first time the function is called, it’ll retrieve up to 1000 files (in default, in this case we’re retrieving 500 files in one go).</p><p><strong>Here’s the thing.</strong></p><p>If the number of files is more than the MaxKeys, it’ll return NextContinuationToken and we can use this token to send the request again until the key is no longer in the response. If the key no longer exists in the response, it means we’ve already retrieved all the files in the bucket.</p><p>To check the key, I put a try-except clause. It’ll return the token until it’s no longer in the response. If the key is no longer in the response, it’ll return RETRIEVE_COMPLETELY and the while loop will stop.</p><p>If we run the script above, it’ll produce an output like this.</p><pre>$ python3 retrieve-many-files.py<br>Success retrieve 500 files ...<br>Success retrieve 1000 files ...<br>Success retrieve 1391 files ...<br>Finished retrieving 1391 datas</pre><p>That concludes my mini tutorial on how to retrieve too many files in the AWS S3 object storage (and other S3-compatible services like Cloudflare R2).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8392aa15e079" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing Static File using OAuth2-Proxy]]></title>
            <link>https://uppercase-word.medium.com/securing-static-file-using-oauth2-proxy-d9c9b92054bc?source=rss-799c8f968af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9c9b92054bc</guid>
            <category><![CDATA[web-server]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[oauth2-proxy]]></category>
            <category><![CDATA[static-file]]></category>
            <dc:creator><![CDATA[Vinsen Muliadi]]></dc:creator>
            <pubDate>Sun, 19 Feb 2023 11:47:24 GMT</pubDate>
            <atom:updated>2023-02-19T11:47:24.144Z</atom:updated>
            <content:encoded><![CDATA[<p>Usually, we’re using a web server to serve static files to the public. In case we need to authenticate the user, we’re (back again) going to use .htpasswd .</p><p>Nothing wrong with .htpasswd . .htpasswd is great too, but if we’re able to automate the user authentication using an existing account. We’re using oauth2-proxy it to make it happen. This medium article is another post related to my previous article “<a href="https://medium.com/@SingingPepe/securing-transmission-daemon-using-oauth2-proxy-9794616243c8">Securing Transmission Daemon using OAuth2-Proxy</a>”.</p><p>Here are the required steps to secure your static file using OAuth2-Proxy.</p><h4>Google Cloud Platform’s Section</h4><p>First, you need to create an OAuth2 Client ID and Secret from GCP. I assume you already have an GCP account and have an active project.</p><ul><li>Access <a href="https://console.cloud.google.com/apis/credentials/consent">“OAuth consent screen”</a> under the “API &amp; Services” section.<br>Set the “User type” to “Internal”. The rest is a general question, you can directly set up your custom consent page (like using your own logo when someone authenticates themselves. If you left it blank, it’ll use the Google logo).</li><li>Open <a href="https://console.cloud.google.com/apis/credentials">“Credentials”</a> under “API &amp; Services” section.<br>Click on “+ CREATE CREDENTIALS” and click on “OAuth client ID”. Set the “Application type” to “Web application”. There are some fields that you need to pay attention to, the rest is up to you. I only left some guidance to make it easier for you to set it up.</li><li><strong><em>Authorized JavaScript origins</em></strong>. The HTTP origins that host your web application. This value can’t contain wildcards or paths. If you use a port other than 80, you must specify it.</li><li>Fill in the domain that you want to integrate with your service. For example <a href="https://transmission.example.com./">https://tr.example.com</a> (without trailing slash and include the scheme — https:// ).</li><li><strong><em>Authorized redirect URIs</em></strong>. Users will be redirected to this path after they have authenticated with Google. The path will be appended with the authorization code for access and must have a protocol. It can’t contain URL fragments, relative paths, or wildcards, and can’t be a public IP address.</li><li>Like “Authorized JavaScript origins”, you need to fill in the domain that you want to integrate with your service, but you need to add an additional path to it. Default, you need to add /oauth2/auth to the domain. For example <a href="https://tr.example.com/oauth2/auth.">https://tr.example.com/oauth2/auth.</a></li><li>If everything is OK, you’ll get a client id and client secret. We need this to integrate with OAuth2-Proxy. Until this step, we’re finished with the GCP’s part. Let’s continue to the VM and set up OAuth2-Proxy.</li></ul><h4>OAuth2-Proxy’s Part</h4><ul><li>Download the latest release based on your computer architecture from the <a href="https://github.com/oauth2-proxy/oauth2-proxy/releases">GitHub release page</a> and extract it to your server. After that, you need to add execute permission to the oauth2-proxy binary by executing chmod +x oauth2-proxy-{{ version }}.linux-amd64/oauth2-proxy and move it to /usr/bin .</li><li>Create a directory /opt/oauth2-proxy/ and then create a file named static-file-server.conf. Copy these templates and paste them to your static-file-server.conf . You need to replace some parts of the template with these.</li></ul><p>&lt;CLIENT_ID_FROM_GCP_OAUTH&gt; and &lt;CLIENT_SECRET_FROM_GCP_OAUTH&gt; from the GCP’s latest part on this medium. You can open the webpage again to check your client id and secret in case you forgot to store it somewhere.</p><p>&lt;COOKIE_SECRET&gt; can be generated using a random string. You can generate one by using this command and copying the output. You need to store it safely (because this is a <strong><em>secret)</em></strong>. Basically, the command will produce some random string with base64 encoded.</p><p>dd if=/dev/urandom bs=32 count=1 <strong>2</strong>&gt;/dev/null | base64 | tr -d -- &#39;\n&#39; | tr -- &#39;+/&#39; &#39;-_&#39;; echo</p><pre># General config<br>upstreams = [&quot;file:///var/www/html/#/&quot;] # change it with your targettet dir<br>email_domains = [ &quot;&lt;DOMAIN_NAME&gt;&quot; ]  # use your google-email domain<br>http_address = &quot;:8080&quot;  # use port where the oauth2-proxy will be running<br>request_logging = true<br>ssl_insecure_skip_verify = false</pre><pre># The OAuth Client ID, Secret<br>client_id = &quot;&lt;CLIENT_ID_FROM_GCP_OAUTH&gt;&quot;<br>client_secret = &quot;&lt;CLIENT_SECRET_FROM_GCP_OAUTH&gt;&quot;</pre><pre>#Cookie Settings<br>cookie_secret = &quot;&lt;COOKIE_SECRET&gt;&quot;<br>cookie_name = &quot;static_file_sharing&quot;<br>cookie_expire = &quot;24h&quot;<br>cookie_secure = true<br>cookie_httponly = true</pre><ul><li>Install supervisor on your system and ensure /etc/supervisor/conf.d/ existed in your server (assuming you’re using a Debian-based operating system. Other OS may vary). Create a file named static-file-server.conf and copy these template and paste it.</li></ul><pre>[program:static-file-server]<br>command=/usr/bin/oauth2-proxy --config=/opt/oauth2-proxy/transmission-daemon.conf  --ssl-upstream-insecure-skip-verify --reverse-proxy=true<br>process_name=%(program_name)s<br>priority=1<br>user=root<br>group=root<br>autostart=true<br>autorestart=true<br>redirect_stderr=true<br>stdout_logfile=/var/log/supervisor/static-file-server.log</pre><ul><li>Run sudo supervisorctl reread and sudo supervisorctl update to load the configuration that we recently created. To ensure everything is running perfectly, watch the log by executing sudo supervisorctl tail -f static-file-server . If everything is OK, we finally arrived at the last part. NGINX configuration.</li><li>Final part. Copy these templates and paste them to /etc/nginx/conf.d/static-file-server.conf . After that execute nginx -t to ensure the configuration is correct and working. If everything is OK, execute nginx -s reload to apply the configuration.</li></ul><pre>server {<br>  listen 80;<br>  server_name &lt;DOMAIN_NAME&gt;;<br>  return 301 https://$host$request_uri;<br>}</pre><pre>server {<br>    listen 443 ssl;<br>    server_name &lt;DOMAIN_NAME&gt;;</pre><pre>    access_log /var/log/nginx/transmission.access.log;<br>    error_log /var/log/nginx/transmission.error.log;</pre><pre>    ssl_certificate &lt;SSL_CHAIN_CERTIFICATE_FILE&gt;;<br>    ssl_certificate_key &lt;SSL_PRIVATE_KEY_FILE&gt;;</pre><pre>    # optional part. this one for SSL config.<br>    # include /etc/nginx/options-ssl-nginx.conf;<br>    # ssl_dhparam /etc/nginx/ssl-dhparams.pem;</pre><pre>    location /oauth2/ {<br>        proxy_pass <a href="http://127.0.0.1:8080;">http://127.0.0.1:8080;</a><br>        proxy_set_header Host $host;<br>        proxy_set_header X-Real-IP $remote_addr;<br>        proxy_set_header X-Scheme $scheme;<br>        proxy_set_header X-Auth-Request-Redirect $request_uri;<br>    }</pre><pre>    location / {<br>        auth_request /oauth2/auth;<br>        error_page 401 = /oauth2/sign_in;<br>        proxy_pass <a href="http://127.0.0.1:8080;">http://127.0.0.1:8080;</a><br>        proxy_set_header X-Real-IP $remote_addr;<br>        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>    }<br>}</pre><p>Basically, the NGINX config said something like this. In case you’re not authenticated using the mail domain that you registered during the OAuth2-Proxy’s part, you’ll be redirected to /oauth/sign_in to authenticate yourself against /oauth2/auth .</p><p>If the authentication succeeds, the system will create a cookie named static_file_sharing on your browser so the next time you access the transmission webpage, you won’t be asked anymore. Else, you’ll be kicked out and need to retry the authentication process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mlTDKY2R7pN0OEz9WrP21g.png" /><figcaption>OAuth2-Proxy default webpage that asking for authentication</figcaption></figure><p>Hasta la vista .htpasswd and thank you for your service.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9c9b92054bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing Transmission Daemon using OAuth2-Proxy]]></title>
            <link>https://uppercase-word.medium.com/securing-transmission-daemon-using-oauth2-proxy-9794616243c8?source=rss-799c8f968af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/9794616243c8</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[web-server]]></category>
            <category><![CDATA[oauth2-proxy]]></category>
            <category><![CDATA[transmission-daemon]]></category>
            <category><![CDATA[nginx]]></category>
            <dc:creator><![CDATA[Vinsen Muliadi]]></dc:creator>
            <pubDate>Wed, 15 Feb 2023 05:33:05 GMT</pubDate>
            <atom:updated>2023-02-15T14:49:52.636Z</atom:updated>
            <content:encoded><![CDATA[<p>transmission-daemon is a very helpful tool for someone that downloads files from time to time using torrent (use torrent <strong><em>responsibly</em></strong> folks). For people that never use transmission-daemon before, transmission-daemon has a webpage to manage things. That means you need to set up an authentication method to secure it.</p><p>Previously, I set up .htpasswd authentication method to access the transmission daemon’s web UI. Really simple and straightforward. In case you need to add a new user, you only execute htpasswd .htpasswd newuser . Until I found a new way to optimize this so that I no longer execute htpasswd commands anymore in case add a new user.</p><blockquote><a href="https://github.com/oauth2-proxy/oauth2-proxy">OAuth2-Proxy</a> is a reverse proxy and static file server that provides authentication using Providers (Google, GitHub, and others) to validate accounts by email, domain, or group.</blockquote><p>That means we can use our account like GitHub or Google to access our service, a perfect replacement for .htpasswd . In this medium, we’ll walk through the required steps to make your transmission-daemon protected by OAuth2-Proxy (I’m going to use GCP’s API and Service).</p><h4>Google Cloud Platform’s Section</h4><p>First, you need to create an OAuth2 Client ID and Secret from GCP. I assume you already have an GCP account and have an active project.</p><ul><li>Access <a href="https://console.cloud.google.com/apis/credentials/consent">“OAuth consent screen”</a> under the “API &amp; Services” section.<br>Set the “User type” to “Internal”. The rest is a general question, you can directly set up your custom consent page (like using your own logo when someone authenticates themselves. If you left it blank, it’ll use the Google logo).</li><li>Open <a href="https://console.cloud.google.com/apis/credentials">“Credentials”</a> under “API &amp; Services” section.<br>Click on “+ CREATE CREDENTIALS” and click on “OAuth client ID”. Set the “Application type” to “Web application”. There are some fields that you need to pay attention to, the rest is up to you. I only left some guidance to make it easier for you to set it up.<br><br><strong><em>Authorized JavaScript origins</em></strong>. The HTTP origins that host your web application. This value can’t contain wildcards or paths. If you use a port other than 80, you must specify it.<br><br>Fill in the domain that you want to integrate with your service. For example <a href="https://transmission.example.com./">https://tr.example.com</a> (without trailing slash and include the scheme — https:// ).<strong><br></strong><br><strong><em>Authorized redirect URIs</em></strong>. Users will be redirected to this path after they have authenticated with Google. The path will be appended with the authorization code for access and must have a protocol. It can’t contain URL fragments, relative paths, or wildcards, and can’t be a public IP address.<br><br>Like “Authorized JavaScript origins”, you need to fill in the domain that you want to integrate with your service, but you need to add an additional path to it. Default, you need to add /oauth2/auth to the domain. For example <a href="https://tr.example.com/oauth2/auth.">https://tr.example.com/oauth2/auth.</a></li><li>If everything is OK, you’ll get a client id and client secret. We need this to integrate with OAuth2-Proxy. Until this step, we’re finished with the GCP’s part. Let’s continue to the VM and set up OAuth2-Proxy.</li></ul><h4><strong>OAuth2-Proxy’s Part</strong></h4><ul><li>Download the latest release based on your computer architecture from the <a href="https://github.com/oauth2-proxy/oauth2-proxy/releases">GitHub release page</a> and extract it to your server. After that, you need to add execute permission to the oauth2-proxy binary by executing chmod +x oauth2-proxy-{{ version }}.linux-amd64/oauth2-proxy and move it to /usr/bin .</li><li>Create a directory /opt/oauth2-proxy/ and then create a file named transmission-daemon.conf. Copy these templates and paste them to your transmission-daemon.conf . You need to replace some parts of the template with these.</li></ul><p>&lt;CLIENT_ID_FROM_GCP_OAUTH&gt; and &lt;CLIENT_SECRET_FROM_GCP_OAUTH&gt; from the GCP’s latest part on this medium. You can open the webpage again to check your client id and secret in case you forgot to store it somewhere.</p><p>&lt;COOKIE_SECRET&gt; can be generated using a random string. You can generate one by using this command and copying the output. You need to store it safely (because this is a <strong><em>secret)</em></strong>. Basically the command will produce some random string with base64 encoded.</p><p>dd if=/dev/urandom bs=32 count=1 <strong>2</strong>&gt;/dev/null | base64 | tr -d -- &#39;\n&#39; | tr -- &#39;+/&#39; &#39;-_&#39;; echo</p><pre># General config<br>upstreams = [&quot;http://127.0.0.1:9091&quot;] # default transmission-daemon port<br>email_domains = [ &quot;&lt;DOMAIN_NAME&gt;&quot; ]  # use your google-email domain<br>http_address = &quot;:8080&quot;  # use port where the oauth2-proxy will be running<br>request_logging = true<br>ssl_insecure_skip_verify = false<br><br># The OAuth Client ID, Secret<br>client_id = &quot;&lt;CLIENT_ID_FROM_GCP_OAUTH&gt;&quot;<br>client_secret = &quot;&lt;CLIENT_SECRET_FROM_GCP_OAUTH&gt;&quot;<br><br>#Cookie Settings<br>cookie_secret = &quot;&lt;COOKIE_SECRET&gt;&quot;<br>cookie_name = &quot;transmission_daemon&quot;<br>cookie_expire = &quot;24h&quot;<br>cookie_secure = true<br>cookie_httponly = true</pre><ul><li>Install supervisor on your system and ensure /etc/supervisor/conf.d/ existed in your server (assuming you’re using a Debian-based operating system. Other OS may vary). Create a file named transmission-daemon.conf and copy these template and paste it.</li></ul><pre>[program:transmission-daemon]<br>command=/usr/bin/oauth2-proxy --config=/opt/oauth2-proxy/transmission-daemon.conf  --ssl-upstream-insecure-skip-verify --reverse-proxy=true<br>process_name=%(program_name)s<br>priority=1<br>user=root<br>group=root<br>autostart=true<br>autorestart=true<br>redirect_stderr=true<br>stdout_logfile=/var/log/supervisor/transmission-daemon.log</pre><ul><li>Run sudo supervisorctl reread and sudo supervisorctl update to load the configuration that we recently created. To ensure everything is running perfectly, watch the log by executing sudo supervisorctl tail -f transmission-daemon . If everything is OK, we finally arrived at the last part. NGINX configuration.</li><li>Final part. Copy these templates and paste them to /etc/nginx/conf.d/transmission-daemon.conf . After that execute nginx -t to ensure the configuration is correct and working. If everything is OK, execute nginx -s reload to apply the configuration.</li></ul><pre>server {<br>  listen 80;<br>  server_name &lt;DOMAIN_NAME&gt;;<br>  return 301 https://$host$request_uri;<br>}<br><br>server {<br>    listen 443 ssl;<br>    server_name &lt;DOMAIN_NAME&gt;;<br><br>    access_log /var/log/nginx/transmission.access.log;<br>    error_log /var/log/nginx/transmission.error.log;<br><br>    ssl_certificate &lt;SSL_CHAIN_CERTIFICATE_FILE&gt;;<br>    ssl_certificate_key &lt;SSL_PRIVATE_KEY_FILE&gt;;<br><br>    # optional part. this one for SSL config.<br>    # include /etc/nginx/options-ssl-nginx.conf;<br>    # ssl_dhparam /etc/nginx/ssl-dhparams.pem;<br><br>    location /oauth2/ {<br>        proxy_pass http://127.0.0.1:8080;<br>        proxy_set_header Host $host;<br>        proxy_set_header X-Real-IP $remote_addr;<br>        proxy_set_header X-Scheme $scheme;<br>        proxy_set_header X-Auth-Request-Redirect $request_uri;<br>    }<br><br>    location / {<br>        auth_request /oauth2/auth;<br>        error_page 401 = /oauth2/sign_in;<br>        proxy_pass http://127.0.0.1:8080;<br>        proxy_set_header X-Real-IP $remote_addr;<br>        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>    }<br>}</pre><p>Basically, the NGINX config said something like this. In case you’re not authenticated using the mail domain that you registered during the OAuth2-Proxy’s part, you’ll be redirected to /oauth/sign_in to authenticate yourself against /oauth2/auth .</p><p>If the authentication succeeds, the system will create a cookie named transmission_daemon on your browser so the next time you access the transmission webpage, you won’t be asked anymore. Else, you’ll be kicked out and need to retry the authentication process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mlTDKY2R7pN0OEz9WrP21g.png" /><figcaption>OAuth2-Proxy default webpage that asking for authentication</figcaption></figure><p>Hasta la vista .htpasswd and thank you for your service.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9794616243c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[AZURE] Azure CLI Linux Integration]]></title>
            <link>https://uppercase-word.medium.com/azure-azure-cli-linux-integration-5ed4bf2f6ffc?source=rss-799c8f968af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ed4bf2f6ffc</guid>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Vinsen Muliadi]]></dc:creator>
            <pubDate>Tue, 17 Jan 2023 03:27:32 GMT</pubDate>
            <atom:updated>2023-02-15T04:20:44.544Z</atom:updated>
            <content:encoded><![CDATA[<h3>[AZURE] Azure CLI Command</h3><blockquote>Update Feb 15, 2023: Fixing command on “<strong>Upload file to Microsoft Azure’s Container”</strong> section. The command should use double-dash <em>--</em> instead of — . Also I add sample command where we upload multiples files from file system.</blockquote><p>As someone new to the Microsoft Azure cloud ecosystem, I discovered that the Azure environment is really different from GCP’s gcloud and AWS’s awscli CLI command. This medium article will be my scratch notes regarding the command I’ve executed (mainly regarding the Azure Blob Storage) and its terminology (and will be plain as possible and will keep updated from time to time).</p><h3>Terminology</h3><p><strong>Container</strong>: The container is equivalent to the bucket in GCS and S3. So, if you need to create a bucket in your Azure’s Blob Storage, that means you need to create a container.</p><h3>Azure’s CLI Command</h3><ul><li><strong>Login to your Microsoft Azure account</strong><br>az login . Using this command, the binary will print something to the stdout containing a link to authenticate the login session. Just follow the link and enter the 9 random strings to the form and you’re good to go.<br><br>Note: I believe there is a more proper and secure way to connect to your account like using a service account like in GCP or IAM role in AWS. But in my case, I would like to use this method like what GCP’s have in gcloud auth login command.</li><li><strong>List Microsoft Azure’s Container Content <br></strong>az storage container list --account-name &lt;YOUR_ACCOUNT&gt;<strong>. </strong>Will print JSON-formatted data that contains a list of the containers that you’ve in your account. <br><br>Note: This command is similar to aws s3 list or gsutil ls command. Basically list all the buckets in your project. The difference is awscli and gsutil will print text in the default output model, az using JSON instead.</li><li><strong>Upload file to Microsoft Azure’s Container</strong><br>az storage azcopy blob upload --container &lt;CONTAINER_NAME&gt; --source &lt;SOURCE_FILE_IN_LOCAL_ENV&gt; --account-name &lt;YOUR_ACCOUNT&gt; . Will upload your &lt;SOURCE_FILE_IN_LOCAL_ENV&gt; to the &lt;CONTAINER_NAME&gt; under &lt;YOUR_ACCOUNT&gt;. <br><br>Note: This command is similar to aws s3 cp &lt;SOURCE_FILE_IN_LOCAL_ENV&gt; s3://&lt;AWS_S3_BUCKET_NAME&gt; or gsutil cp &lt;SOURCE_FILE_IN_LOCAL_ENV&gt; gs://&lt;GCP_GCS_BUCKET_NAME&gt; <br><br>Sample to upload many files based on its extension. In this example, we’ll upload all ZIP files to the targetted container to the Azure Blob.<br>IFS=$’\n’; for x in $(ls *.zip); do az storage azcopy blob upload --container &lt;CONTAINER_NAME&gt; --source ${x} --account-name &lt;YOUR_ACCOUNT&gt;; done</li><li><strong>List files inside Microsoft Azure’s Container<br></strong>az storage blob list --container-name &lt;CONTAINER_NAME&gt; --account-name &lt;YOUR_ACCOUNT&gt;. Will print a list of files inside your container in JSON format. Usually, you need to parse the JSON using jq. Here’s the sample JSON data that this command print to the stdout. You might consider the right key to filter your needs. <br><br>For example: az storage blob list --container-name &lt;CONTINER_NAME&gt; --account-name &lt;YOUR_ACCOUNT&gt; | jq -r &#39;.[].name&#39; will print the filename only.</li></ul><pre>[<br>  {<br>    &quot;content&quot;: null,<br>    &quot;deleted&quot;: false,<br>    &quot;metadata&quot;: {},<br>    &quot;name&quot;: &quot;my-random-data.json&quot;,<br>    &quot;properties&quot;: {<br>      &quot;Content-CRC64&quot;: null,<br>      &quot;appendBlobCommittedBlockCount&quot;: null,<br>      &quot;blobTier&quot;: &quot;Hot&quot;,<br>      &quot;blobTierChangeTime&quot;: null,<br>      &quot;blobTierInferred&quot;: true,<br>      &quot;blobType&quot;: &quot;BlockBlob&quot;,<br>      &quot;contentLength&quot;: 102400,<br>      &quot;contentRange&quot;: null,<br>      &quot;contentSettings&quot;: {<br>        &quot;cacheControl&quot;: null,<br>        &quot;contentDisposition&quot;: null,<br>        &quot;contentEncoding&quot;: null,<br>        &quot;contentLanguage&quot;: null,<br>        &quot;contentMd5&quot;: null,<br>        &quot;contentType&quot;: &quot;application/json&quot;<br>      },<br>      &quot;copy&quot;: {<br>        &quot;completionTime&quot;: null,<br>        &quot;id&quot;: null,<br>        &quot;progress&quot;: null,<br>        &quot;source&quot;: null,<br>        &quot;status&quot;: null,<br>        &quot;statusDescription&quot;: null<br>      },<br>      &quot;creationTime&quot;: &quot;2023-01-16T15:31:56+00:00&quot;,<br>      &quot;deletedTime&quot;: null,<br>      &quot;encryptionKeySha256&quot;: null,<br>      &quot;etag&quot;: &quot;0x8DAF7D6CD741D84&quot;,<br>      &quot;lastModified&quot;: &quot;2023-01-16T15:31:56+00:00&quot;,<br>      &quot;lease&quot;: {<br>        &quot;duration&quot;: null,<br>        &quot;state&quot;: &quot;available&quot;,<br>        &quot;status&quot;: &quot;unlocked&quot;<br>      },<br>      &quot;pageBlobSequenceNumber&quot;: null,<br>      &quot;remainingRetentionDays&quot;: null,<br>      &quot;serverEncrypted&quot;: true<br>    },<br>    &quot;snapshot&quot;: null<br>  }<br>]</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ed4bf2f6ffc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MyCloudHome and Linux Integration]]></title>
            <link>https://uppercase-word.medium.com/mycloudhome-and-linux-integration-ae8a6416463d?source=rss-799c8f968af1------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae8a6416463d</guid>
            <category><![CDATA[my-cloud-home]]></category>
            <category><![CDATA[nas]]></category>
            <category><![CDATA[mch]]></category>
            <dc:creator><![CDATA[Vinsen Muliadi]]></dc:creator>
            <pubDate>Mon, 28 Feb 2022 10:44:38 GMT</pubDate>
            <atom:updated>2022-03-05T05:03:20.411Z</atom:updated>
            <content:encoded><![CDATA[<p>So, some time ago I bought WD (Western Digital) My Cloud Home HDD 6TB (<a href="https://www.westerndigital.com/in-id/products/cloud-storage/wd-my-cloud-home">Product Link</a>) for project sync (I’m working on a directory in my workspace and then sync it to the cloud), data backup (disaster recovery in case something bad happen) and time-machine snapshot for my computers both Windows, Linux Fedora, and Mac (Macbook Pro 2020 Intel i5. The device has been returned to the office per my resignation at Feb 25, 2022.).</p><p>Found out, the official apps didn’t support for Linux operating system. Meanwhile I do some freelance works and most of the time I’ll use my Fedora Linux. One day come where I need to sync my freelance works to the cloud like I’m used to be working at Mac.</p><p>Later, I found out that linux-based machine can integrate well with WD My Cloud Home, but you need additional tools to make it works named MCH FUSE. Thanks to <a href="https://github.com/mnencia">mnencia</a>.</p><p>MCH FUSE basically mount the WD My Cloud Home (MCH) to your local machine using FUSE (Filesystem in USErspace) using WD MCH <a href="https://developer.westerndigital.com/develop/wd-my-cloud-home/api.html">Device API</a>). The setup is pretty simple and straight forward. Here’s the required steps that you need to do.</p><ul><li>Download the latest binary from the <a href="https://github.com/mnencia/mchfuse/releases">releases page</a> or download the binary directly using cURL. Don’t worry about the platform architecture since the shell script automatically detect it.</li></ul><pre>curl -sSfL <a href="https://github.com/mnencia/mchfuse/raw/main/install.sh">https://github.com/mnencia/mchfuse/raw/main/install.sh</a> | sudo sh -s -- -b /usr/local/bin</pre><ul><li>Create a new folder where the MCH will be mount (in my case I’ll name it cloud and put it under /mnt/ directory) and a new plaintext file named mchfuse.conf on your disk. Basically there is no strict rule where you put the file in, but I preferrably put it on config directory located in $HOME/.config/mchfuse/mchfuse.conf . Don’t forget to create the directory first.</li></ul><pre>$ mkdir -p $HOME/.config/mchfuse /mnt/cloud<br>$ cat &gt; $HOME/.config/mchfuse/mchfuse.conf &lt;&lt; &#39;EOF&#39;<br>username = &quot;EMAIL&quot;    # email to login to <a href="https://home.mycloud.com/">home.mycloud.com</a><br>password = &quot;PASSWORD&quot; # password to login to <a href="https://home.mycloud.com/">home.mycloud.com</a><br>uid = 65534           # your linux user id<br>gid = 65534           # your linux group id<br>EOF</pre><p>Basically, it will create a file named mchfuse.conf that contains the username and password to login to <a href="https://home.mycloud.com/">home.mycloud.com</a> and the UID/GID of the owner of the files in the disk. 65534 is owned by nobody so everyone in the machine can access the disk. If you need to restrict the user, you can replace it by your own UID/GID by checking it from /etc/passwd .</p><ul><li>Before mounting the disk, you need to check the MCH disk name. By checking the <a href="https://home.mycloud.com/settings/current_device">current device page</a> (take a look at picture below) or you can try random name until the mchfuse will inform you available disk name in the network later. Now execute this command</li></ul><pre>mchfuse -c $HOME/.config/mchfuse/mchfuse.conf &quot;{{ DEVICE_NAME }}&quot; &quot;{{ MOUNT_PATH }}&quot;</pre><blockquote>You can replace <strong>DEVICE_NAME</strong> with your MCH disk name (mine is “Vinsen’s My Cloud Home”) and <strong>MOUNT_PATH</strong> with the fullpath where you want to mount the MCH disk (mine in /mnt/cloud).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AVGX9voGnu9ee5rtNyskpg.png" /><figcaption>MCH Setting Page — Current Device Page</figcaption></figure><ul><li>Done, you can works with your MCH disk on your Linux machine and open the files inside like normal external HDD. You’re good to go.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae8a6416463d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>