If you make the script executable and in your bin
directory, you can run it from anywhere.
$ chmod +x commit_msg_tag.sh
$ sudo mv commit_msg_tag.sh /usr/local/bin/commit_msg_tag
Then run as:
Geckodrivder allows you to set up a web driver instance in a package like Selenium and control Firefox (and any other Gecko-based browsers).
Documentation
Downloaded a zip from Releases
From the Install doc:
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$ # Previously the guide just said this:
$ curl https://sh.rustup.rs -sSf | sh
Customize VS Code with some code snippets so you can insert them into your projects
For more info see:
How to control a 9G servo motor with a Rasp Pi and a simple Python script
The use of the servo including the wiring and script is based on this YouTube tutorial - Raspberry Pi Servo Motor Control. There are also plenty of similar videos out there.
For Arduino, see Using Servo Motors with Arduino
Using GitHub GraphQL API.
See related gist here.
The Python script below demonstrates how to use regex to match on text with a known structure to build a dictionary, then convert the output to JSON data.
The task comes from this StackOverflow question.
Rather than using a procedural approach to handle the lines one at a time and extract the relevant items, I split the text into chunks and then dealt with each using regex pattern to extract the relevant pieces. Expecting questions A and B to always be present and C and D to be there sometimes.
Note use brackets for capture groups.
How to set up a Twitter dev account, register Twitter app and generate Twitter API tokens
This guide takes you through setting up a new Twitter account all the way through to generated Twitter auth tokens (aka API tokens or credentials). These tokens must be used on every request, such as fetch or create Twitter content.
Open the current git repo directory on GitHub in your default browser.
Run this in a directory within a local git repo. The directory will be opened in your browser such as on GitHub.
.git
directory exists at some level.Prerequisites - install Ruby and Bundler globally for your user.
This is the version that runs on GH Pages.