Skip to content

Instantly share code, notes, and snippets.

Hello, world!

Goodbye, world!

@SuperCowProducts
SuperCowProducts / Make-Cisco-Packet-Tracer-pdf-docs.sh
Last active April 6, 2026 13:42
Turn the built-in static HTML help site into a PDF
# A copy I made 6th May 2026: https://codeberg.org/jipmelon/t/raw/branch/main/Cisco_Packet_Tracer_help.pdf
ar xf CiscoPacketTracer_900_Ubuntu_64bit.deb
tar xf data.tar.xz
cd opt/pt/
box64 packettracer.AppImage --appimage-extract # use `./packettracer.AppImage --appimage-extract` if on x86
cd squashfs-root/opt/pt/help/default
pw() { pandoc --pdf-engine=weasyprint "$1" -o "${1/.*}.pdf"; }
#!/usr/bin/bash
# echo $1
# ~~b/w/x/cr~~ € < Q137641294 #pp/k/b/c/d
# an-S() {
# cpdf -list-annotations-json "$1" | jq '.[][]["/Contents"]?["U"]? | select( . != null )' | grep --color=always -P "$2"
# }
NORMAL=$(tput sgr0)
BRIGHT=$(tput bold)
POWDER_BLUE=$(tput setaf 153)
BLUE=$(tput setaf 4)
cd
#. .bashrc
mkdir -p ~/bk/an/
export COPY_FILE="true"
#. ~/Nextcloud/sh/cp/at-cp.sh
# 2025-12-31T15;39;29,01;00
# S="$1"
# E=0
IFS=$'\n'
@SuperCowProducts
SuperCowProducts / .emacs
Last active January 1, 2026 16:23
[UPDATED 2025] Keyboard shortcuts for color annotations in `pdf-tools` for `emacs`
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
;; Comment/uncomment this line to enable MELPA Stable if desired. See `package-archive-priorities`
;; and `package-pinned-packages`. Most users will not need or want to do this.
;;(add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") t)
(package-initialize)
(blink-cursor-mode -1)
(pdf-tools-install) ;;(pdf-loader-install) ; On demand loading, leads to faster startup time