Skip to content

Instantly share code, notes, and snippets.

View CouldBeThis's full-sized avatar

CouldBeThis CouldBeThis

  • lol nope
View GitHub Profile
@CouldBeThis
CouldBeThis / linux-ui-tools-rofi.md
Last active January 23, 2023 04:10
🧰 🥽 [gui tools] fast access via keyboard with `rofi`

🧰 🥽 [gui tools] fast access via keyboard with rofi

repo: davatorium/rofi: Rofi: A window switcher, application launcher and dmenu replacement

use Keyboard > Application Shortcuts setting panel in WM to create shortcut (I used alt+space)

simple use

rofi -show drun -show-icons -sidebar-mode -show-icons
@DannyQuah
DannyQuah / 2020.08-D.Quah-Pandoc-Workflow-Markdown-PDF.md
Last active April 8, 2024 12:57
My Pandoc Markdown-PDF Workflow for Routine, Not Especially Technical Writing

My Pandoc Markdown-PDF Workflow for Routine, Not Especially Technical, Writing

by Danny Quah, Aug 2020 (revised Jan 2022)

TL;DR: I write technical articles in LaTeX. But shorter, non-technical writings are easier to do in Markdown. How do I produce PDF from Markdown documents? Answer: provide YAML information in the Markdown; run Pandoc (typically through a Makefile or Atom's Markdown Preview Enhanced). To make all this work, some adjustment is needed in Pandoc options and template files.

Pandoc is a filter that takes a written document in a particular format, and produces a version of that same document in yet a different format. I use Pandoc primarily to transform Markdown documents to PDF, but I also draw on Pandoc to convert Word or ODT documents to Markdown. And vice versa.

Available official Pandoc documentation is voluminous. So as a matter of logic the knowledge to generate PDF from Markdown, to the user's desired degree of control, is already extant, out there somewhere. But a user j

@loleg
loleg / grab-commons-images-sh
Last active June 3, 2023 09:49
Download images and metadata from a Wikimedia Commons category or results page
#!/bin/bash
#
# Download images from a Wikimedia Commons category
#
# Highest preview resolution and metadata in XML format will be saved in subfolders.
# Usage: execute this script on a Linux command line, providing the full URL to the category page.
#
# Shell tools required for this script: wget sed grep
#