This file contains hidden or 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 | |
# Org-journal to Day One import script | |
# Usage: ./import_org_to_dayone.sh <org-journal-file> | |
# | |
# Written mostly by Claude, with one tweak. Here's the prompt | |
# I would like a bash script that will use the dayone2 command line tool to import | |
# my Org-journal entries into the Day One app. I've attached a sample journal | |
# file. The script should loop through each org heading, derive the entry date | |
# from the CREATED property and call the dayone2 command with that date and the |
This file contains hidden or 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 LaTeX config --- | |
;; LaTeX --------------------------------------------------------------------- | |
;; My default LaTeX class | |
(with-eval-after-load 'ox-latex | |
(add-to-list 'org-latex-classes | |
'("scrartcl" | |
"\\documentclass{scrartcl}" | |
("\\section{%s}" . "\\section*{%s}") |
This file contains hidden or 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 | |
## Location of Pandoc support files. | |
prefix=/Users/jbaty/.pandoc | |
## output directory | |
#outputpath=/Users/jbaty/Desktop/ | |
outputpath="/Users/jbaty/Dropbox (Maestral)/Apps/reMarkable/" | |
## Default Template |
This file contains hidden or 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
<?php | |
class JackBatyBridge extends FeedExpander | |
{ | |
const MAINTAINER = 'jackbaty'; | |
const NAME = 'JackBaty'; | |
const URI = 'https://github.com/RSS-Bridge/rss-bridge'; | |
const DESCRIPTION = <<<'TEXT' | |
This bridge merges the feeds from several of my websites.. | |
TEXT; |
This file contains hidden or 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
SERVER_HOST=servername.baty.net | |
SERVER_DIR=/home/jbaty/apps/baty.net/public_html | |
PUBLIC_DIR=/Users/jbaty/sites/blog/public/ | |
TARGET=DigitalOcean | |
.POSIX: | |
.PHONY: build checkpoint deploy | |
# search index. No longer used. | |
# npx -y pagefind --source public |
This file contains hidden or 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
% Options for packages loaded elsewhere | |
\PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref} | |
\PassOptionsToPackage{hyphens}{url} | |
$if(colorlinks)$ | |
\PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor} | |
$endif$ | |
$if(CJKmainfont)$ | |
\PassOptionsToPackage{space}{xeCJK} | |
$endif$ | |
% |
This file contains hidden or 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 doom-font (font-spec :family "iosevka Comfy" :size 16) | |
doom-variable-pitch-font (font-spec :family "iA Writer Quattro V" :size 13)) |
This file contains hidden or 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
return { | |
version = 1, | |
title = 'My Essentials', | |
id = 'com.mytagsets.tagset2', | |
type = 'MetadataFieldList', | |
sortOrder = -9, | |
items = { | |
'com.adobe.metadataStatus', | |
'com.adobe.filename', | |
'com.adobe.copyname', |
This file contains hidden or 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
javascript:(function() { | |
function copyToClipboard(text) { | |
if (window.clipboardData && window.clipboardData.setData) { | |
/*IE specific code path to prevent textarea being shown while dialog is visible.*/ | |
return clipboardData.setData("Text", text); | |
} else if (document.queryCommandSupported && document.queryCommandSupported("copy")) { | |
var textarea = document.createElement("textarea"); | |
textarea.textContent = text; |
This file contains hidden or 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
javascript: (function() { | |
let sel = document.getSelection(); | |
let selText = ""; | |
let reference = `[[${location.href }][${document.title }]]`; | |
const selectedRanges = []; | |
if (sel.rangeCount > 1) { | |
selText = reference + "\n"; | |
for (let i = 0; i < sel.rangeCount; i += 1) { | |
selText += `\t${sel.getRangeAt(i).toString().trim()}<<< \n`; | |
selectedRanges.push(sel.getRangeAt(i)) |
NewerOlder