1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
[Python] Patching platform.uname in Tests
Posted on in Programming
AI-enabled developer productivity, build systems, and engineering leadership
Posted on in Programming
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
Posted on in Programming
A repository move does not require throwing away a useful clone. If the project moves organizations, changes hosts, or is renamed, your local branches, stash, reflog, hooks, and unpushed work can stay right where they are. Update the remote deliberately, verify it, and then decide whether the branch topology also …
Posted on in Programming
Multiple GitHub accounts on one laptop are normal now: a managed work identity,
a personal account, perhaps an open-source organization account. The failure mode
is still surprising. git fetch says the repository does not exist even though
it absolutely does, because SSH offered a key that authenticated successfully
for the …
Posted on in Programming
Posted on in programming
I thought it would be neat to keep an eye on the popular google search terms related to Python.
The list below uses JavaScript from Google Trends. You can use the kebab menu icon to choose between "Top" and "Rising" search phrases.
Posted on in uncategorized
Posted on in uncategorized
I've been out of pocket for a while and really have neglected this site. So, as goofy as these things sound, I'm making it a personal goal to contribute more regularly to slaptijack.com in 2022.
I somehow managed to lose my old copy of the markdown I used to …
Posted on in voice
An Asterisk server has a very involved configuration system. One instance I manage has over 100 configuration files. As these configurations grow, it can be helpful to have a separate server running for testing and debugging problems. If you are planning a major change, it's often helpful to get it …
Posted on in Networking
As always, I've changed pertinent details for reasons.
I was working on an ASR the other day and received the follow error:
RP/0/RSP0/CPU0:ASR9K(config-tacacs-host)# commit
Fri Jul 29 12:55:46.243 PDT
% Failed to commit one or more configuration items during a pseudo-atomic
operation. All …Posted on in programming
I had this interesting question the other day. Someone had a file with two columns of data in it. They wanted to assign each column to a different variable and then take action using those two variables. Here's the example I wrote for them:
IFS=$'\n';
for LINE in $(cat …Posted on in System Administration
A bastion host is one of those pieces of infrastructure that is easy to explain and surprisingly easy to get slightly wrong. You have a private server, database node, router, lab machine, or management host that should not be reachable from the open internet. Instead of exposing SSH on every …
Posted on in Programming
I was recently asked to take two lists and interleave them. Although I can not
think of a scenario off the top of my head where this might be useful, it doesn't
strike me as a completely silly thing to do.
StackOverflow's top answer
for this problem uses itertools.chain …
Posted on in Programming
Things have changed quite a lot since this post was originally written in 2016. Currently, I would recommend switching over to making asynchronous calls via aiohttp.
One of my scripts that makes an API call has been failing silently lately. It appears that the connection is timing out, but I …
Posted on in system_administration
I've been getting the following error from cron.daily in my inbox lately:
/etc/cron.daily/apt:
Cache has broken packages, exiting
That's an annoying email to get everyday. I decided I would apt-get clean and
that would probably fix the problem:
$ sudo apt-get clean
$ sudo apt-get dist-upgrade
Reading package …Posted on in System Administration
I use Pingdom's free service to monitor slaptijack.com. Apparently,
late Friday night, oom-killer decided that the server needed more memory and
took out the MySQL server. To make matters worse, I missed the alarm from Pingdom,
and slaptijack.com was down for pretty much all of Saturday. The fact …