Skip to content

Instantly share code, notes, and snippets.

@Geczy
Geczy / readme.md
Last active April 8, 2025 14:41
Migrate Coolify to a new server
@jangroth
jangroth / dendron-to-obsidian.py
Created March 25, 2023 04:53
Converts dendron note structure to obsidian note structure
# converts dendron note structure to obsidian note structure
# - removes frontmatter
# - adds tags
# - converts internal links
# - ignores empty (frontmatter-only) notes
#
# use at your own risk
import glob
import re
@plembo
plembo / pandocdocx2md.md
Last active April 4, 2025 01:28
Convert docx to markdown with pandoc

Convert Word documents to markdown with pandoc

I use pandoc to convert masses of Word documents to markdown. Still working on a generic script, but for now here's the "gist" of what I type into the terminal:

$ myfilename="example"
$ pandoc \
-t markdown_strict \
--extract-media='./attachments/$myfilename' \
$myfilename.docx \
@hasssan
hasssan / jiraToDendronTaskPage.js
Last active March 10, 2025 08:45 — forked from idelem/titleUrlMarkdownClip.js
Bookmarklet to copy current page title and url in Markdown format to clipboard, like [title](url) or Tasks - Usual for posting links to resources in README.md files
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;
textarea.style.position = 'fixed';
/* Prevent scrolling to bottom of page in MS Edge.*/
@wlib
wlib / LICENSE
Last active April 30, 2024 17:07
Run a shell script with bash, line-by-line, prompted on each command. Useful for running unknown scripts or debugging. Not a secure substitute for understanding a script beforehand.
MIT License
Copyright (c) 2021 Daniel Ethridge
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@idelem
idelem / titleUrlMarkdownClip.js
Last active March 5, 2025 13:13 — forked from bradleybossard/titleUrlMarkdownClip.js
Bookmarklet to copy current page title and url in Markdown format to clipboard, like [title](url) - Usual for posting links to resources in README.md files
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;
@paulomcnally
paulomcnally / lily58-keyboard.org
Created August 11, 2020 23:33 — forked from braun-steven/lily58-keyboard.org
Lily58 Pro Parts List
@hdnl
hdnl / daily_template.md
Last active December 16, 2024 10:13
Template to faciliate taking daily notes in Markdown, featuring start and end day reflections, schedule, and logging

Start-of-Day Reflections

I am grateful for...

What would make today great?

@ChrAlpha
ChrAlpha / gist:65a6f402d1b984ea17feaa4ae314e8dd
Created March 21, 2020 14:05
Windows Terminal Configuration
Setting 基础配置(默认位置 `C:\Users\{{UserName}}\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\profiles.json`):
```
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",