• Skip to primary navigation
  • Skip to main content
Ethan Banks

Ethan Banks

@ecbanks

  • Blog
  • Book
  • Podcasts
  • RSS
  • Show Search
Hide Search

How To Fix Ubuntu 18.04 ‘apt update’ Throwing An NGINX Repository i386 Package Error

Ethan Banks · < 1 minute to read
Published March 22, 2022 · Updated April 6, 2022

If ‘apt update’ on Ubuntu 18.04 throws an error N: Skipping acquire of configured file ‘nginx/binary-i386/Packages’ as repository ‘http://nginx.org/packages/ubuntu bionic InRelease’ doesn’t support architecture ‘i386’, then replace the one line of text in /etc/apt/sources.list.d/nginx.list with this line instead.

deb [arch=amd64] http://nginx.org/packages/mainline/ubuntu/ bionic nginx

How To Create A Python Function You Can Call From Other Scripts

Ethan Banks · 4 minutes to read
Published March 8, 2022 · Updated March 8, 2022

Writing and calling functions is a key component of the Don’t Repeat Yourself (DRY) principle of software development. Creating a function in a single script and calling that function from other scripts is preferable to performing copypasta of the same bit of code throughout several scripts. When a function lives in a single script, it only needs to be updated in that one place when it inevitably needs updating.

How To Blackhole (Null Route) An IPv6 Block On Linux Using ‘ip -6 route’

Ethan Banks · 3 minutes to read
Published March 1, 2022 · Updated April 6, 2022

If you wanted to drop traffic at your Linux host destined for, let’s say, IPv6 netblock 2a09:8700:1::/48, you could get that done with this command.

sudo ip -6 route add blackhole 2a09:8700:1::/48

What Does An ‘R’ Before A String Mean In Python?

Ethan Banks · < 1 minute to read
Published February 25, 2022 · Updated February 23, 2022

An ‘r’ before a string tells the Python interpreter to treat backslashes as a literal (raw) character. Normally, Python uses backslashes as escape characters.

Podcast Guest: Can You Have A Successful IT Career Without A Degree?

Ethan Banks · 2 minutes to read
Published February 23, 2022 · Updated February 22, 2022

I was a guest on the February 22, 2022 episode of the So You Wanna Be In IT podcast. I chatted with hosts Pat & Dean about how my career got started. Along the way, we discussed whether or not someone can have a successful IT career without a college degree. Put another way, are IT certifications good enough? I think that yes, you can have a successful IT career without a degree, but that the question, “College degree. Yes or no?” deserves more analysis than a simple yes or no answer offers. Give the episode a listen for more nuance.

How To Pass Environment Variables To A Remote SSH Deployment With PyCharm

Ethan Banks · 3 minutes to read
Published February 16, 2022 · Updated February 16, 2022

PyCharm allows for the passing of environment variables from the IDE to a script, whether that script is running locally or in a remote SSH deployment you’ve configured for your project. To set the environment variables, select Edit Configurations from the Run menu.

How To Pass API Query Parameters In A Curl Request

Ethan Banks · < 1 minute to read
Published February 7, 2022 · Updated February 7, 2022

Why does adding a query parameter on the end of a curl request against an API endpoint result in an error? Because you need -G and -d, that’s why.

They’ll Remember The Rage Monster

Ethan Banks · 3 minutes to read
Published December 6, 2021 · Updated December 6, 2021

After a several minutes of answering her scripted questions, I lost it. I unloaded on this kid. I was yelling over the speakerphone at her. In an open office. With my boss standing next to me. In front of my co-workers and the junior network engineer I was mentoring, all of whom had either also been there all night or come in early to help with testing. In front of everyone else, I just leveled this poor JTAC girl.

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Interim pages omitted …
  • Go to page 88
  • Go to Next Page »

twitter mastodon linkedin instagram linkedin

Have a great day. You're doing an outstanding job. 👍

About · Privacy

Copyright © 2007–2023 Ethan Banks