Prompt Fu
Tech tips and command line fu found within this dojo
THE LATEST FROM THE BLOG
After setting up your Gatsby website and manually deploying it to Firebase as detailed in our previous guide, it’s time to streamline your deployment process. This article will guide you through the steps to set up automatic deployment to Firebase Hosting using GitHub Actions.
May your deploys be smooth, and your build errors few. Keep automating and innovating!
Discover how to host your Gatsby website on Firebase (by Google) with this step-by-step guide. This tutorial covers everything from site creation and building to Firebase setup and deployment, ensuring a seamless hosting process.
To Infinity and Beyond Code!
It ‘twas the morning of July 18, 2019 as I was working on this site; just polishing up a few tidbits, when my 2012 Macbook Pro became quite warm and decided to poweroff, never to return again. About 30 minutes had past while I aimlessly troubleshot, but ultimately I found myself on Apple’s support site scheduling an appointment to have my laptop serviced.
# Bash
WORLD='World'
echo "Hello, ${WORLD}"
Hello, World
This
is officially the first post! How exciting!THE LATEST FROM THE WIKI
Rsync between hosts, using a jump host’s ssh keys as the intermediary:
cat raw.old.new.list | awk '{ print( " ssh " $1 " \x27 " "rsync -avP /app/users " $2 ":/app \x27 ") }'
# and to run it...
cat raw.old.new.list | awk '{ system( " ssh -A " $1 " \x27 " "rsync -avP /app/users " $2 ":/app \x27 ") }'
Summary
taskset
is used to affine an application to a specific set of CPU cores; usally taking into account NUMA architecture.
CPU/memory affinity can improve performance of workloads that are performance-critical and/or that may be network-heavy.
Affining closely related applications on the same NUMA node can improve memory access latencies, and newtork-heavy workloads can take advantage of affining applications by scheduling network I/O on the same NUMA node as the NIC card to reduce the latency between the CPU and PCIe.
Summary
sed
is a stream editor. A stream editor is used to perform basic text transformations on an input stream (a file or
input from a pipeline). While in some ways similar to an editor which permits scripted edits (such as ed
), sed
works by making only one pass over the input(s), and is consequently more efficient. But it is sed
’s ability to
filter text in a pipeline which particularly distinguishes it from other types of editors.