Skip to content
EN

Back to the catalog

Bryan Brattlof0x42.sh
atomEnglish

Bryan Brattlof

0x42.sh · English

Hi'ya I'm Bryan, and this is my collection of projects, ideas, thoughts, feelings, opinions, ramblings, concepts, concerns, notions, conclusions, blurbs, and schemes, to name a few.

atom

Open the feed

https://0x42.sh/feeds/all.atom.xml

Last post
Apr 2, 2022
Posts in 24 h · 7 days · 30 days
0 · 0 · 0
Our last check
Answering
Served from
United States
Site title
Home « Bryan Brattlof
Text score at discovery
12,493
Format
atom

Posts

What our queue read from this feed. Open one to read it here, or go to the site that published it.

  1. How to Proxy Git Connections
    Apr 2, 2022 · original
    One of the first things you will notice when you start developing open source software for a larger corporation is the company firewall or proxy blocking all outgoing traffic not routed through their network appliance for inspection and review first. This sadly includes all of our git fetch traffic. Before we can do anything upstream we first need to configure Git to pull in updates through these corporate firewalls. This is where the multipurpose relay tool, socat , shines. Proxy http(s) Remotes Git uses the Smart HTTP protocol to download updates from a remote that starts with https://* URI. These type of connections have become, by far, the most popular way to use Git today and is the default protocol used by many popular forges like GitHub or GitLab. Internally Git relies on the libcurl library to handle these HTTP connections which means Git comes with the ability to proxy these req
  2. My PGP Cheat Sheet
    Nov 2, 2021 · original
    Getting Started with PGP? The Linux Foundation has a public GitHub wiki on Protecting Code Integrity with PGP that goes into more detail than what I've written here and can help you avoid the many pitfalls when setting up a secure PGP key in the 21 st century. I use gpg about as often as tar which is just enough time to forget how to use it. What lies below are my (a Linux kernel contributor) notes on some of the less used commands to keep your gpg keys safe and your copy of the Linux Web of Trust up to date. Please feel free to contact me if anything you read below is wrong, out of date, or find something I should expand on. :) Helpful Jump To Points: Why PGP? Convert A PGP Key To An SSH Key Locating A Public Key Updating Your Keyring Signing A Public Key Extending An Expiration Date Backing Up A GnuPG Directory Why PGP? Today, the Linux kernel development cycle is solely ( for now ) an
  3. The Linux Kernel Coding Style
    May 28, 2021 · original
    Like the (very) old saying goes: "Beauty is in the eye of the beholder" . This old (Greek maybe?) saying even holds true for the software we write. The Linux kernel, like any sufficiently large software project, with thousands of developers each having their own ideas of beautifully readable code, the issue of how the code looks eventually becomes a topic of discussion. These coding style standards, while sometimes annoying, are essential to letting developers worry about developing rather than trying to decipher another developer's "beautifully" written code. So for the 4 th challenge in The Eudyptula Challenge we'll return our focus on the Hello World Kernel Module we created in the 1 st challenge, bringing it up to the (charmingly unique) Linux kernel coding standard of what beautifully written C code looks like. Brief Aside: Before we begin, this is the 4 th write-up in a series as I
  4. Boston Parking Tickets
    Feb 9, 2021 · original
    Last year (mid December 2020) I created a Freedom of Information Act request for all parking tickets issued in Boston from 2011 to the end of 2020. Eventually I was given 40 CSV files that I've combined into a simple torrent you can download here: boston-parking-tickets-2011-2020.tar.gz Please feel free to send me an email if you don't wish to use BitTorrent, and I'll do my best to send you a copy using a different protocol. These (very messy) files have data on every ticket, time and date it was issued, violation and fine total, how much was payed, the license plate number and state, including the car's make, style and color on every parking ticket. Also included is the hand-entered location of where the ticket was issued. I say messy, because each ticket is manually entered on very small screens, often by parking attendants wearing gloves during winter while someone is telling them abo
  5. Cgit, Nginx & Gitolite: A Personal Git Server
    Jan 12, 2021 · original
    I've been on a "own my online presence" kick for more than a year now. So for this (overly protracted) essay, I thought I'd publish my notes on how I created my own Git server. There are many open source projects like GitTea or GitLab to make hosting your own git projects effortless; however I wanted a much more simple (read: old school) setup. I ended up with something that uses many of the same projects that the Linux Organization uses to publish the Linux Kernel The server (as of this writing) uses Ubuntu's 20.04.1 LTS (Focal Fossa) running on Digital Ocean's hardware ( referral-link ). I wholeheartedly support and recommend you chose a different setup. Diversity in people and in tech stack is always and will always be a great thing. What lies below can be broken into 3 main topics: The Start prepares a newly minted server for git hosting duties. Creating a new admin user, locking dow
  6. The Great Influenza
    Dec 7, 2020 · original
    When living in New Orleans ( Louisiana ) one of the many "iconic" things visiting guests would request to see (before pandemics existed of course) was the above ground cemeteries . I was regularly surprised during each visit by both how heavily touristed New Orleans' cemeteries are, and how much death the 1918 influenza season brought to the city. New Orleans' hot and humid swamps had always brought disease to the historically significant port city. In 1853 alone an estimated 8,000 people died from Yellow Fever. And while 8,000 is a shockingly high number, there is something different to seeing the aisles of 3,489 vaults (roughly 1% of New Orleans' population in 1918) for the people who died from influenza. It's much like the real life version of "what if all C@\/!$-19 deaths happened in your neighborhood" . That experience together with reading John M. Barry's book The Great Influenza i
  7. Calling Bullshit
    Oct 30, 2020 · original
    Turn on the news, log into social media, or just start talking to someone at the store and you're sure to run into it. Complete and utter bullshit. Some of it is easy to spot: The earth is flat , Area 51 is experimenting on aliens , airlines are spraying chemicals on us , the loch ness monster or bigfoot exists , Mattress Firms are laundering money , Alaska is trying to control everyone's minds , and the list goes on … for a depressingly long time. Other times, bullshit can be tricky. Rampant food-stamps fraud , kills 99.9% of germs , chocolate as a weight loss supplement , rap music is deadly . Outside of scientific or journalistic circles, you would be forgiven for believing some of these claims or falling for their bullshit. And that's exactly what Carl Bergstrom's and Jevin West's new book, Calling Bullshit , is trying to fix. Carl Bergstrom is a professor of Biology at the Universit
  8. Adding OpenStreetMaps To Matplotlib
    Oct 21, 2020 · original
    It's Dead Jim: OpenStreetMap uses expensive hardware amazingly donated by community members. Recently they've started to block requests that abuse this hardware which, unfortunately, includes this script. As someone who enjoys hosting publicly accessible computers on the internet, I completly understand this position and wish to honnor it. Therefore these scripts will remain broken. You are welcome to fix them but I encourage you to read the tile server usage policy first to ensure you do not abuse this wonderful asset. Adding a map to your visuals is a great way to quickly understand the geographic information you're trying to investigate. Thankfully there are quite a few packages and libraries (like geopandas , cartopy , smopy , folium , tilemapbase , or ipyleaflet ) that can make creating these visuals fairly straightforward and easy in your jupyter notebooks or whatever stack you're
  9. Tribe
    Sep 8, 2020 · original
    We are currently living in the most connected time in human history. Today, half of the world's population has some type of access to the internet and the limitless information it contains. Together with the advent of social media, geography is no longer a limitation to finding and belonging to a community, allowing the most obscure groups to exist and thrive. In short, with the internet, it has never been easier to belong. Surprisingly though, we are also living in the loneliest time in human history. An online study of 20,000 Americans above the age of 18 found that 43% of respondents feel they lack companionship, 43% feel their relationships are meaningless, 43% feel isolated from others, and 39% are no longer close to anyone. The study went on to find that, how frequently people have meaningful face-to-face interactions and how lonely they felt had the highest correlation, and contra
  10. Why We Sleep
    Aug 27, 2020 · original
    If you're anything like me, the fundamental processes all living organisms need to sustain life do not come naturally to us. Things like knowing when to eat food, drink fluids, or just sleeping are often completely forgotten when our mind finds something else to occupy its time. It's this intense focus that allows me to characterize my relationship with sleep as quarrelsome. After reading Matthew Walker's book, Why We Sleep , it's easy see the damage my adversarial relationship with sleeping causes. Walker, who is the director of the Human Sleep Science Center in UC Berkeley, lists some of the immediately recognizable symptoms from the aftermath of pulling an "all-nighter" . In the short term, sleep deprivation destroys your creativity, problem solving, and decision-making skills, along with inhibiting your memory and your ability to learn. Chronic lack of sleep also has long term side-e
  11. Modify The Linux Kernel
    Aug 15, 2020 · original
    For the 3 rd task (this task) in The Eudyptula Challenge , we continue our work from the last challenge , compiling the absolute latest Linux Kernel from the source code. This time we focus on modifying the Makefiles and .config files that help us compile the kernel. Before we begin, if you wish to work on The Eudyptula Challenge yourself before you read my notes (recommended), you can use my git repository , which has all 20 tasks and the code I used to complete each one. Task No.3 Now that you have your custom kernel up and running, it's time to modify it! The tasks for this round is: take the kernel git tree from Task 02 and modify the Makefile to and modify the EXTRAVERSION field. Do this in a way that the running kernel (after modifying the Makefile, rebuilding, and rebooting) has the characters "-eudyptula" in the version string. show proof of booting this kernel. Extra cookies for
  12. Prepared
    Aug 9, 2020 · original
    When you think back to your primary or secondary school days was there something you would change? If you could change absolutely anything, create your own curriculum, add or remove some lectures, assign less homework, what would your dream school look like? Would you change school start times? Allowing students to get enough sleep and, in my case, preventing students from waking up at an un-Godly hour trying to catch a 6am bus. Everyone involved in a child's education, including parents, teachers, administrators, and even the students themselves all want every student to succeed. As a country we have devised countless initiatives and tests to identify and help a student who falls behind on their journey to developing the tools needed for a successful life. Yet as of 2018, there were an estimated 2.1 million (~5.3%) American children , between 16 to 25 who would be labeled "dropout" . A
  13. Building The Linux Kernel
    Jul 31, 2020 · original
    Previously, for the 1 st task in The Eudyptula Challenge , we built a Loadable Kernel Module (LKM) that adds "Hello World" to our kernel's message buffer any time the module is installed. You can read my notes all about that here if you want to learn more. Or, if you wish to work on The Eudyptula Challenge yourself before you read my notes (recommended), you can use my git repository , which has all 20 tasks and the code I used to complete each one. For this challenge, the 2 nd task of The Eudyptula Challenge, we will use the Kbuild system once again. This time we will use the Kbuild system to compile the latest version of the Linux Kernel. Then after compiling it (this takes some time), we install and boot from it. Task No.2 Now that you have written your first kernel module, it's time to take off the training wheels and move on to building a custom kernel. No more distro kernels for yo
  14. The Hello World Kernel Module
    Jul 15, 2020 · original
    As a brief introduction to this (very long) essay. What lies below are my notes while completing the 1 st in a set of 20 tasks from The Eudyptula Challenge . Each task, emailed one at a time, starting with building a "hello world" kernel module (this essay) and progressed in difficulty until we ultimately submit patches into the main tree of the Linux kernel. The ultimate goal of The Eudyptula Challenge is to get new developers comfortable with the somewhat unique world of kernel development by separating the "on-boarding" process into focused manageable tasks. Sadly, The Eudyptula Challenge is no longer accepting new applicants. However, if you wish to work on the tasks yourself, I've published the 20 tasks I've managed to find along with the code I used to "complete" them in a git repo here . Task No.1 Write a Linux kernel module, and stand-alone Makefile, that when loaded prints to th
  15. Humble Pi
    Jun 30, 2020 · original
    We all make mistakes … especially math mistakes. Either we forgot to carry the one, used "freedom units" instead of metric, lost the decimal point, or found some other creative way to make a mistake. Usually the consequences are small enough that we can chuckle when we find out Michael Bloomberg can't afford to give everyone $1 million dollars . However, for the engineers and software developers among us, these mistakes can have real consequences. For the vast majority of us, math is not an easy subject, nor does it come naturally to us. One of my favorite examples of this (also in the book) happened in 1852. Radhanath Sikdar , a young mathematician at the time, was compiling measurements from multiple different observations for a mountian peak named "Peak XV" for the Great Trigonometrical Survey , a project to survey the entire Indian subcontinent. While Sikdar was calculating the measu
  16. Probably Approximately Correct
    Jun 17, 2020 · original
    It was Charles Darwin who taught us the foundational and the now widely accepted concept of evolution. Stating that all life has, over time, descended from a common ancestor through a process of natural selection, much like how we selectively bred wolves to produce hundreds of the domesticated dog breeds we see today. The struggle of existence has only allowed the best of us to produce offspring, resulting in a natural process of selection, where only the fittest among us will survive. This evolutionary process tells us why, over millennia, the Giraffes got taller, Sloths got slower, Alligators got scarier and we doubly wise men became (kinda) smarter. As life continues to evolve, it also continues to grow in its complexity. If you want to succeed in an interview, or choose a life partner, or (if you're like my wife ) decide on a restaurant, you can be sure there is no equation that coul
  17. The Mosquito
    May 28, 2020 · original
    For thousands of years, we humans were terrorized by a deadly disease, without effective treatments or a clue what actually caused malaria. Hindu texts from the 6 th century BC, Mesopotamian tablets from 2000 BC, and Chinese documents from around 2700 BC all make references to something we are almost certain was malaria. It wasn't until the early Greeks, including Homer (850 BC) and Hippocrates (400 BC) that documents survived well enough about the enlarged spleens and malarial fevers from people living in marshy areas. This observation would help popularize miasma theory and how malaria would eventually receive its name, which literally translates into "bad air" in medieval Italian. Even with remedies like chinhona bark , a genus of around 23 species of plants "discovered" in the early-1600s in tropical regions of the Andes Mountains, it would take another 200 years for scientists like
  18. Removing Git LFS From A Project
    May 1, 2020 · original
    Git Large File Storage (LFS) is an extension to Git that separates large, frequently changing, binary files and saves them in a separate storage location outside of the normal Git project. LFS replaces these binary files with smaller text files, called pointers, that hold information about the original file and how to download them. These pointers look something like this: version https://git-lfs.github.com/spec/v1 oid sha256:d7cbc07ce9b78a89764c0ac5e9c8e1b9dbdeb42c30d8396cba8f75aace5ba225 size 145930 Git-LFS uses git hooks to transparently replace and create these pointers whenever we make a commit and saves the binary data outside of Git until the next push where it will sync with your LFS server. When everything is working correctly, we should never see these pointer files. When we say "remove LFS from a project" we really mean removing the hooks from our project, which, if not done c
  19. Upheaval
    Jan 27, 2020 · original
    Jared Diamond is one of those prolific authors with so much clout to his name that when he writes a new book, everyone knows about it . That's why when he published his new book called Upheaval all of the algorithms I trust easily shoved this straight to the top of my "recommended reading" list and they had good reason. This book, inspired by his wife, Marie Cohn who works as a psychologist, uses crisis therapy techniques developed to help people through periods of crisis in their own lives (like the death of a loved one) and adapts them to gain understanding of how nations going through crisis can successfully navigate that critical time. Diamond begins the first part of the book by taking the 12 things therapists have identified as steps that indicate whether someone will succeed in resolving a personal crisis (like acknowledging you're in a crisis), and adapts them into 12 success fac
  20. A Gentleman In Moscow
    Jan 5, 2020 · original
    At this point in my reading career (amateur status), most of the books I read can easily be classified as non-fiction, and when I do read fiction, it's rarely beyond a comic strip like xkcd , Sarah's Scribbles or Calvin & Hobbes . However, after watching Jordan read Amor Towles' A Gentleman in Moscow, it was easy to add this great book to my reading list. At one point Jordan burst into laughter (not too uncommon) envisioning the Count, our main character, witness guests at the hotel dropping different objects (including an egg) from the second floor balcony of the Metropol's ballroom to test the accuracy of Newton's law of universal gravitation they had learned about in school. Towles' ability to illustrate scenes like this and his quirky attention to detail brings the Count to life in a way that by the end of the book you really feel like friends. This surprisingly upbeat book follows t

Discovered by the rss-feed-index crawler, which checks each feed at most once a month.

Same record as JSON: https://api.agentalog.com/api/feeds/fd_0x42_sh_21009b79e4aef7a1. More from this site: 0x42.sh in the Feeds tab.