RSSAmplifier

Blog

A Scripter's Notes

Recent content on A Scripter's Notes

scripter.coRSS feed ↗15 posts

Latest posts

Version controlling Jenkins config

Jenkins is an amazing free and open source continuous integration and deployment software. But its primary means of configuration is a web UI, and recently that cost me a lot of debug time. That set me down the path of figuring out a way to version control the Jenkins config (the $JENKINS_HOME directory). Table of Contents What bit me .gitignore for Jenkins config Jenkins Plugin Manager Full…

Using Git Delta with Magit

Git Delta is a command line utility that beautifies git diffs in the terminal. But did you know that it can do the same in Magit too? Table of Contents Installing delta Installing magit-delta Configuring delta Delta is a highly configurable I am not kidding. Check out the output of delta --help . command line utility that makes the git diffs look better, while also syntax-highlighting Difftastic…

Gujarati Transliteration

You can phonetically write a non-English language on an English keyword in Emacs, and that transforms into that non-English script. This is called transliteration , and I demonstrate that for the Gujarati language in this post. Table of Contents Enabling transliteration Toggling the input method Caveats with Gujarati and other Indic language transliteration “Input method” cheat sheet…

Cleaning up ${GOPATH}/pkg/

Use go clean -modcache to clean up all the old auto-downloaded Go modules in ${GOPATH}/pkg/ . That’s all you need to know. Rest of the post gives just the history of how I got there. Table of Contents The $GOPATH directory The disk space issue Write-protected ${GOPATH}/pkg/ Cleaning up “modcache” Wrapping up References As I mentioned in the post description above, the solution to…

View GitHub Pull Requests in Magit

How to view GitHub Pull Request branches locally in the cloned repo, and more importantly, how to do that automatically from within Emacs. Table of Contents Locally creating a branch for a PR Getting references to all Pull Requests Automatically adding PR refs Summary References I have a few public projects in git repos, but I don’t get that much traffic in Pull Requests (PR) Gitlab calls…

Gujarati fonts in Emacs

Setting a different font for a specific script or language in Emacs. Table of Contents Setting a “fontset” font Gujarati fonts All Emacs versions ship with a nifty HELLO file that you can quickly open using M-x view-hello-file or its default binding C-h h . This file lists “Hello” written in dozens of languages to demonstrate some of the character sets supported by Emacs.…

Emacs Lisp: Advice Combinators

My diagrammatic take on summarizing all the Emacs advice combinators. Table of Contents Overview on using advices 1 :before 2 :after 3 :override 4 :around 5 :before-while 6 :before-until 7 :after-while 8 :after-until 9 :filter-args 10 :filter-return Summary References If you have read some of my earlier posts, you would know that I really enjoy using the Emacs Advice system 😃. The…

Org: Show only Post subtree headings

How to define a custom org-global-cycle -like command that collapses only the Org subtrees with specific properties. Table of Contents Org Global Cycle Skeleton of only Post headings The “Collapse All Posts” function Binding with C-u C-c TAB Result I start this post by introducing what the Org mode global cycling command does, what kind of subtree folding I actually need, and then…

Firefox: Always open a New Tab after Current

The default behavior of Firefox opening new tabs from links had been troubling me for a while .. it was time I tried to do something about it. Table of Contents The Issue Expected Behavior False Leads Firefox Bug # 1485683 Solution This was one of the those little things in software that bug me, but I don’t start looking for a solution right-away because of reasons like “I am too busy…

Saving Python pip dependencies

How I generated the Python dependencies file requirements.txt so that Netlify can install and run the HTML5 Validator before deploying this site. Table of Contents 1 Create a virtual environment 2 Activate the virtual environment 3 Install the packages using pip 4 Generate requirements.txt Netlify deployment Summary Recently I learned about the Python tool html5validator tool and used it to run…

Disarming the 'tar' bomb in 10 seconds

Use tar -caf <file> <dir> to create an archive, tar -xf <file> to extract one, and more. Table of Contents Mnemonics Creating an archive Extracting an archive Listing contents of an archive Summary I had come across this post by user Garrit on Mastodon, and that inspired this post. In reply to: https://garrit.xyz/posts/2022-06-02-tar-commands A post on the Unix command tar cannot leave out the…

Unclutter: A better Reader View for browsers

Unclutter is a better looking Reader View browser add-on available for both Firefox and Chrome. Table of Contents Why? Caveat Closing I am writing this post to share this wonderful browser add-on Unclutter (available for both Firefox and Chrome) by Peter Hagen . I discovered this a few days back on Hacker News . But given how awesome this add-on is, I am surprised that the HN post didn&rsquo;t…

Zero HTML Validation Errors!

How I fixed my site content and went down from 46 HTML validations errors down to 0! Table of Contents 1 Avoid duplicate heading id attributes 2 Remove inline <style> elements 3 Ensure that all images have captions or alt attributes 4 Do not have hyperlinks in headings Validation Ignores 5 Ignore errors due to hyperlinks in inline SVG 6 Ignore files not expected to serve HTML content Summary In my…

Offline HTML5 Validator

Validate your website offline &mdash; It&rsquo;s just one curl command away. Table of Contents Using the .jar Using pip install Using pre-compiled binary Results Conclusion I have been using the online HTML5 Validator https://html5.validator.nu/ for few years now. I have a link at the bottom of each post to validate that page&rsquo;s HTML. For an example, see the html5 validator link at the bottom…

Hugo Modules: Importing a Theme

A brief guide on how to install Hugo themes using Hugo Modules. Table of Contents 1 Clean up the old way of setting a theme 2 Import the &ldquo;theme&rdquo; module Quick Example 3 hugo mod tidy 4 Updating the theme Dependency Graph Building your Hugo site on a server In a nutshell References Hello! You are reading this post because you are probably interested in the Hugo Modules feature and are…