This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; NOTE: This has been superseded by `org-sidebar-tree': https://github.com/alphapapa/org-sidebar#org-sidebar-tree-command | |
(defun ap/open-tree-view () | |
"Open a clone of the current buffer to the left, resize it to | |
30 columns, and bind <mouse-1> to jump to the same position in | |
the base buffer." | |
;; http://emacs.stackexchange.com/questions/9530/how-can-i-get-an-org-mode-outline-in-a-2nd-buffer-as-a-dynamic-table-of-contents | |
;; TODO: Make this use navi-mode, which handles most of this already | |
(interactive) | |
(let ((new-buffer-name (concat "<tree>" (buffer-name)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; org-kbd | |
;; (setq org-emphasis-alist '(("%" org-kbd verbatim) | |
;; ("*" bold) | |
;; ("/" italic) | |
;; ("_" underline) | |
;; ("=" org-verbatim verbatim) | |
;; ("~" org-code verbatim) | |
;; ("+" | |
;; (:strike-through t)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Please see the script's new home: https://github.com/alphapapa/magit.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; Memoization benchmark -*- lexical-binding: t; -*- | |
;; Ref: https://github.com/skeeto/emacs-memoize | |
;; $ emacs -Q --batch -L path/to/memoize -f batch-byte-compile memoize-bench.el | |
;; $ emacs -Q --batch -L path/to/memoize -l memoize-bench.elc | |
;; Note: Benchmark requires at least 64-bit integers. Choose one of: | |
;; * Emacs >= 27 | |
;; * Emacs <= 26 on 64-bit host |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; When editing an image with many layers (e.g. an animated GIF with | |
;; hundreds of frames), it's impossibly tedious to click hundreds and | |
;; hundreds of times on small little boxes to hide or show all layers. | |
;; Since GIMP seems to lack a button to hide/show all of them, and it | |
;; doesn't allow selection of multiple layers, this script provides | |
;; menu items to hide/show all layers at once. | |
;; Who knows if later versions of GIMP than I have provide a way to do | |
;; this, but this works, and maybe it will be helpful to someone. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Launch Dired in a plain Emacs configuration. | |
# Arguments are passed to Emacs, e.g. "-nw" works as expected. | |
emacs -q "$@" \ | |
--eval "(dired default-directory)" \ | |
--eval "(defun kill-window-or-emacs () (interactive) (if (one-window-p) (kill-emacs) (delete-window)))" \ | |
--eval "(setq dired-dwim-target t delete-by-moving-to-trash t)" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq | |
org-ql-views | |
'(("stuck" lambda nil | |
(interactive) | |
(org-ql-search | |
(org-agenda-files) | |
'(and (tags "story") | |
(not (tags "ignore")) | |
(not (done)) ;; Finished stories should be excluded | |
(not (descendants (todo "NEXT"))) ;; If there are already |
This is the source of background.js
for a now-unpublished Chrome extension called "Video Downloader professional" (ID kmdldgcmokdpmacblnehppgkjphcbpnn
, since then replaced with another "Video Downloader professional" (ID bacakpdjpomjaelpkpkabmedhkoongbi
). This script is republished here for educational / research purposes. It has initially been extracted from the extension’s archive available as v2.4 on https://www.crx4chrome.com/.
The extension has appeared in malware discussions in the past. Its replacement of Video downloader professional "bacakpdjpomjaelpkpkabmedhkoongbi" seems related to the [ownership change of The Great Suspender](greatsuspender/thegreatsuspender#1263 (comment)