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/sh | |
# USAGE: ./concat-pdf.sh *.pdf output-file.pdf | |
ALL_FILES="" | |
BLANK_FILE="/tmp/blank.pdf" | |
for OUTPUT_FILE; do true; done | |
if test -f "$OUTPUT_FILE"; then | |
echo "$OUTPUT_FILE already exists" | |
exit 1 |
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 | |
#!/bin/bash | |
function copy-file { | |
SRC=$1 | |
DEST=$2 | |
# Make sure DEST is a file | |
if [ ! -f "$SRC" ]; then | |
echo "Source file does not exist" |
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
(defun break-string (do-not-break column-width) | |
"Break string to a fit within a fill-column. | |
If DO-NOT-BREAK is non-nil (set with `C-u') then join a broken | |
string. COLUMN-WIDTH defaults to `fill-column'" | |
(interactive (list current-prefix-arg | |
fill-column)) | |
(save-excursion | |
(let* ((initial (point)) | |
(string-start (search-backward-regexp "\\([^\\]\\|^\\)\"" nil t)) | |
(start-col (current-column)) |
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
;;; echo-line.el --- Echo messages in minibuffer -*- lexical-binding:t -*- | |
;; | |
;; Author: Al Haji-Ali <abdo.haji.ali@gmail.com> | |
;; Version: 0.1.0 | |
;; Package-Requires: ((emacs "26.1")) | |
;; Keywords: message, echo, gui | |
;; | |
;; This file is not part of GNU Emacs. | |
;; | |
;; This program is free software; you can redistribute it and/or modify |
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
------------------------------------- | |
Translated Report (Full Report Below) | |
------------------------------------- | |
Process: Emacs [18026] | |
Path: /opt/homebrew/*/Emacs.app/Contents/MacOS/Emacs | |
Identifier: org.gnu.Emacs | |
Version: Version 29.0.50 (9.0) | |
Code Type: ARM-64 (Native) | |
Parent Process: launchd [1] |
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-minical.el --- Org Date picker in minibuffer -*- lexical-binding: t; -*- | |
;; Copyright (C) 2023, Al Haji-Ali | |
;; Author: Al Haji-Ali <abdo.haji.ali at gmail.com> | |
;; Created: Author | |
;; Version: 0.0.1 | |
;; Package-Requires: ((emacs "28.1")) | |
;; Keywords: calendar |
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
#!/usr/bin/env python3 | |
import yaml | |
import json | |
import re | |
import sys | |
def transform_key(key, is_from=True): | |
mod_map = {"M":"option", "C":"control", "S":"command", "F":"fn"} | |
m = re.match(r"^((?:(?:C|F|S|M)-)*)(.*)", key) |
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
--- | |
global: | |
ask_for_confirmation_before_quitting: true | |
check_for_updates_on_startup: true | |
show_in_menu_bar: false | |
show_profile_name_in_menu_bar: false | |
unsafe_ui: false | |
profiles: | |
- complex_modifications: | |
parameters: |