BigFont Blog
  • Home
  • About
  • Bibliography (Work)

bash

A collection of 5 posts

Output the number of Git commits a person made each day of the year in bash.
git

Output the number of Git commits a person made each day of the year in bash.

It's the end of the year. Sometimes I want to know how many commits I made per day. This also helps me to see how many days I worked per year. (The unrelated

  • Shaun Luttin
    Shaun Luttin
5 min read
vscode

Allow VSCode through WSL Firewall

As far as I can tell, VSCode's Remote - WSL service connects over port `41261`. So, we can allow it through the Firewall like this: sudo ufw allow 41261 comment 'VSCODE'

  • Shaun Luttin
    Shaun Luttin
1 min read
bash

Use ssh to run a local script with arguments on a remote host.

ssh [email protected] -i rsa_private_key 'bash -s arg01 arg02' < some_script.shSee also: https://stackoverflow.com/questions/305035/how-to-use-ssh-to-run-a-shell-script-on-a-remote-machine

  • Shaun Luttin
    Shaun Luttin
1 min read
software-development

Parse jest --json test output with jq

The following example installs jq, saves the jest test output to a JSON file, parses the JSON with jq, and then selects only the fullName of tests with a status of "failed&

  • Shaun Luttin
    Shaun Luttin
1 min read
wsl

Tab completion in Ubuntu Bash (in WSL)

This is for people, like me, who come from ten years of Windows PowerShell, and are more an more using Linux (through the Windows Subsystem for Linux). Here is a snippet from the

  • Shaun Luttin
    Shaun Luttin
1 min read
BigFont Blog © 2021
Latest Posts Ghost