[Blog] My Org+Pandoc Workflow : r/emacs

Links https://www.reddit.com/r/emacs/comments/1bqmc8j/blog_my_orgpandoc_workflow/ Emacs org-mode configuration.

April 6, 2024 · 1 min · Kristian Alexander P

noweb

noweb in org-mode The Code in org-org-mode: #+name: first-block #+begin_src python :results output print ("first-block") #+end_src #+begin_src python :noweb yes :results output <<first-block>> print("second-block") #+end_src print ("first-block") Code Snippet 1: first block first-block print ("first-block") print("second-block") Code Snippet 2: second block first-block second-block

March 27, 2024 · 1 min · Kristian Alexander P

org-agenda

A built-in agenda for emacs org-mode.

March 19, 2024 · 1 min · Kristian Alexander P

perfect-number

What is perfect number? In number theory, a perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself. For instance, 6 has divisors 1, 2 and 3 (excluding itself), and 1 + 2 + 3 = 6, so 6 is a perfect number. The next perfect number is 28, since 1 + 2 + 4 + 7 + 14 = 28. ...

March 14, 2024 · 1 min · Kristian Alexander P

python script examples

Example python scripts archlinux packages import subprocess def packages_list(): """Yay packages list""" packages = subprocess.run(["yay", "-Qu"], capture_output=True, text=True) if packages.stdout: return packages.stdout else: return "all packages updated!" return packages_list() get the wireless interface import subprocess import re def get_wlan_iface(): """Get the wireless interface name.""" interfaces = subprocess.run( ["ip", "link", "show"], capture_output=True, text=True ) pattern = r"(^\d+:\s+)(wl.+):" for iface in interfaces.stdout.splitlines(): if re.search(pattern, iface): match = re.search(pattern, iface) assert match is not None return match.group(2) return get_wlan_iface()

March 14, 2024 · 1 min · Kristian Alexander P

gif

Graphics Interchange Format reduce gif file size using gifsicle. gifsicle --optimize=3 --lossy=100 -o output.gif input.gif convert mp4 video to gif using ffmpeg ffmpeg -ss 3 -to 8 -i input.mp4 -filter_complex "fps=10,scale=360:-1[s]; [s]split[a][b]; [a]palettegen[palette]; [b][palette]paletteuse" output.gif

March 9, 2024 · 1 min · Kristian Alexander P

ffmpeg

tools to record, convert, stream audio, and video in linux. Backlinks gif

March 9, 2024 · 1 min · Kristian Alexander P

video formats

Backlinks gif ffmpeg

March 9, 2024 · 1 min · Kristian Alexander P

audio

Backlinks ffmpeg mpd

March 9, 2024 · 1 min · Kristian Alexander P

windows

Operating system from microsoft. Backlinks ripgrep virt-manager rustup

February 25, 2024 · 1 min · Kristian Alexander P