Post details
I find it absurdly funny that you can type "man <command>" unironically and have the command explained to you
Tierney Cyren, the Cosmic Equine (@bitandbang)Fri, 07 Jan 2022 19:49 GMT
I find it absurdly funny that you can type "man <command>" unironically and have the command explained to you
Tierney Cyren, the Cosmic Equine (@bitandbang)Fri, 07 Jan 2022 19:49 GMT
How old were you when realized that grep was g/re/p ? I'm 39
Juan Pablo Daniel (@jpdborgna)Mon, 27 Dec 2021 19:42 GMT
TIL that it’s possible (if not easy) to use `locate` & `updatedb` with independent directory structures in addition to system wide. A la # locate -d ./locatedbGrant Taylor (@DrScriptt)Sun, 19 Dec 2021 08:39 GMT
Getting the Battery Status of a Bluetooth Device on Linux (1 mins read).
How to use dbus-send
to retrieve the percentage of battery left on a Bluetooth device on Linux.
Converting an Image to a Base64 data
URL with Node.JS (1 mins read).
How to convert an image to a data
URL using Node.JS on the command-line.
did you know that if you put `+noall +answer` into `~/.digrc`, it'll make your dig output easier to read? here's a before/after
🔎Julia Evans🔍 (@b0rk)Sat, 04 Dec 2021 14:59 GMT
Controlling the Linux Backlight via the Command-Line (1 mins read).
How to manage your screen backlight on the command-line, without installing any tools.
RT @type__error Running something with the —verbose flagCarol 🌻 (@CarolSaysThings)Thu, 19 Aug 2021 11:26 +0000
Encoding Strings for Embedding in JSON with Ruby on the Command-Line (1 mins read).
How to easily convert a string to a format that can be used as a value for JSON strings.
Parsing Encoded JSON Strings on the Command-Line with Ruby (1 mins read).
How to decode an encoded JSON string.
Fun fact: Alfred Aho is the A in Awk. The w and k are Peter Weinberger and Brian Kernighan. The trio created the software tool in 1977Post details
And the Turing Award for best compilation goes to... Jeffrey Ullman and Alfred Aho reg.cx/3Za7The Register (@TheRegister)Thu, 01 Apr 2021 01:06 +0000
The Register (@TheRegister)Thu, 01 Apr 2021 18:21 +0000
I just learned about the CLI tool `grex`. It might change how I approach regular expressions (🤞🙈). You provide string values and it comes up with a regular expression matching them.😲 github.com/pemistahl/grex Video alt: CLI session showing multiple generated reg. expressions.Stefan Judis (@stefanjudis)Sun, 21 Mar 2021 13:52 GMT
Bash: the up arrow can be used to get past commands Users: yesssssss Bash: We also have a history comman- Users: up arrow!! Bash: a history command , where you use ! to call past comma- Users: UP ARROWWWWWcasey (@varcharr)Wed, 03 Feb 2021 22:21 GMT
Let’s build a list! Which other CLI tools expose a command to do this? We have gh api, knife raw and snykctl api so far.Post details
Oh… Snap. The `gh` CLI tool has an API subcommand for interacting with the GitHub API directly. E.g., `gh api /orgs/$ORGrepos` Then slice and dice the data with `jq`.Anti-fascist Joshua (@jtimberman)Sun, 24 Jan 2021 19:40 GMT
Gareth Rushgrove (@garethr)Sun, 24 Jan 2021 20:21 GMT
https://github.com/veltman/clmystery is a fun interactive way of getting more hands on experience if that helps?
One of the fights I keep losing at ${DAYJOB} is “don’t use short flags in shell scripts if you have long flags available; make things easier for the people who come after you” And like... I do not understand why this is controversial or why people resist it so strongly.Ryan McKern 🇵🇷 (@the_mckern)Fri, 18 Dec 2020 00:55 GMT
Creating Signed JOSE Objects with Ruby (1 mins read).
How to use ruby-jose
to create a signed JSON Object Signing and Encryption (JOSE) object on the command-line.
Diffing Pretty-Printed JSON Files (4 mins read).
How to compare two JSON documents by pretty-printing them.
I very much recommend learning how to use a more well-structured scripting language than Bash, as languages such as Ruby have a great standard library, a huge ecosystem of other libraries, and are commonly installed across machines - this is a great look at partially replacing shell scripts with Ruby
Generating Random Bytes On the Command Line with OpenSSL (1 mins read).
How to generate random bytes as binary, base64 or hex, using openssl
on the command-line.
Generating the Client Assertion JWT for private_key_jwt
Authentication with Ruby (1 mins read).
A helper script to generate the client assertion required to authenticate to an Authorization Server that supports private_key_jwt
, on the command-line with Ruby.
Verifying Signed JWTs (JWS) with Ruby (2 mins read).
Using the ruby-jwt library to verify a signed JSON Web Token (JWS) on the command-line.
Creating Signed JWTs (JWS) with Ruby (1 mins read).
Using the json-jwt and ruby-jwt libraries to sign a JSON Web Token on the command-line.
How to Run Java on the Command-Line to Attach a Debugger (1 mins read).
How to run java
on the command-line, and make it possible to attach a debugger.
Anna Dodson and I had good fun a couple of years ago with https://github.com/veltman/clmystery and https://overthewire.org/wargames/
Converting Output from Rest Assured to Curl Requests (3 mins read).
How to convert the log output from Rest Assured to a curl
request.
Determining What Motherboard You're Using, On Linux (1 mins read).
How to determine what motherboard the machine you're using is reporting, on the command-line with Linux.
Toggling Your Bluetooth Connection using bluetoothctl
on the Command-Line (1 mins read).
How to script bluetoothctl
to toggle your connection to a Bluetooth device.