RSSAmplifier

Blog

chris pickard's weblog

Recent content on chris pickard's weblog

pickard.ccRSS feed ↗7 posts

Latest posts

kubectl debug for fun and zero profit

One of your pods is misbehaving. Maybe it’s not finding a config file or you
don’t understand why it’s unable to contact another pod in your cluster. At
times like these it’s nice to be able to kubectl exec to run a command in an
existing container. Unfortunately, if you are running a container that doesn’t
have a shell included (eg FROM scratch or…

TIL: docker containers don't show up in `ip netns`

a couple weeks ago I ran ip netns with a couple containers running and didn’t see anything in the
output. this surprised me because docker is using net namespaces for network isolation. it turns out
that docker creates the netns at /var/run/docker/netns , while the ip command is looking in
 /run/netns .

TIL: /proc/<pid>/root

I&rsquo;m starting a new series of posts called TILs. It&rsquo;s basically a tech only alternative to&#xA;twitter without having to deal with mastodon. it is directly inspired by&#xA; https://til.simonwillison.net/ . We&rsquo;re starting out with a quick one I learned a few weeks ago. &#xA; /proc is a pseudo file system that contains information on every process running on the machine,&#xA;each…

moving to mastodon

I&rsquo;m now on hachyderm and no longer engaging on twitter. I&rsquo;ve had a twitter habit for too long&#xA;anyway. Now that Elon has fully taken over, reinstated nazis, fired everyone worth a damn and&#xA;generally caused mayhem and destruction, I&rsquo;m out. I should have left long ago but better late than&#xA;never.&#xA;find me on hachyderm.io/@chrispickard

why does zsh start so slowly?

I&rsquo;m serious about shell startup speed. I use tmux to open and&#xA;close tmux splits all day every day, so I need zsh to start quickly. I used to use frameworks&#xA;like oh-my-zsh or prezto and&#xA;while I was happy with the functionality they provided I wasn&rsquo;t happy with their impact on my&#xA;shell&rsquo;s startup speed. So, what do we do about it? The first step when something feels…

just a project command center

I used to use the venerable make(1) as my project command runner. I would cd into a project I hadn&rsquo;t touched in&#xA;awhile, run make test and be off to the races. I didn&rsquo;t have to remember whether we used nose or pytest or whether&#xA;this was a go project or node. make test would do the right thing. As a person who often has several balls in the air&#xA;across several different…

multiple git identities with home-manager and fzf

If you have multiple git identities (a personal and a work email, say)&#xA;and would like to use both in different projects on the same machine it&#xA;can be a hassle. Hopefully you've never committed to your work repo&#xA;with your personal email address! If this happens you're looking at an&#xA;unwieldy git filter-branch&#xA;invocation to fix it. &#xA; To avoid the issue in the future you can…