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 | |
# Shiori is a good way to bookmark and archive webpage: https://github.com/go-shiori/shiori | |
# You can self-host it and use this script if you want your bookmarks as obsidian notes. | |
# This script assumes that shiori is running using docker. | |
# | |
# Usage: ./convert_shiori_to_obsidian.sh output_directory | |
# Example: ./convert_shiori_to_obsidian.sh ./obsidian_notes/ | |
output_dir="$1" |
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
#!/usr/bin/env python3 | |
import os | |
import requests | |
import sys | |
import re | |
# Environment variables for Paperless API | |
PAPERLESS_API_URL = os.getenv("PAPERLESS_API_URL", "http://localhost:8000/api") | |
PAPERLESS_API_TOKEN = os.getenv("SCRIPT_PAPERLESS_API_TOKEN", None) | |
HEADERS = {"authorization": f"Basic {PAPERLESS_API_TOKEN}"} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Articles List</title> | |
</head> | |
<body> | |
<ol id="articles-list"></ol> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Articles List</title> | |
</head> | |
<body> | |
<ol id="articles-list"></ol> |
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
johnny | |
description: Desktop Computer | |
product: Z83 II (Default string) | |
vendor: AZW | |
version: Default string | |
serial: Default string | |
width: 64 bits | |
capabilities: smbios-3.0.0 dmi-3.0.0 smp vsyscall32 | |
configuration: boot=normal chassis=desktop family=Default string sku=Default string uuid=03000200-0400-0500-0006-000700080009 | |
*-core |
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/zsh | |
#### | |
# This script assumes that you have installed https://github.com/Wandmalfarbe/pandoc-latex-template and that your input is a markdown file from https://www.notion.so/ | |
# Converting to PDF requires MacTex or equivalent to be installed. | |
# Cover page background is hardcoded to "~/.pandoc/backgrounds/background7.pdf", change it. | |
# Author is hardcoded to "Lisbon Collective", https://lisboncollective.com/ | |
# Usage: ./notion2pdf.sh inputFile.md | |
# Questions: [email protected] | |
### |
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 | |
wget https://github.com`wget -qO- https://github.com/gohugoio/hugo/releases/latest | grep -oE -m 1 '/gohugoio/hugo/releases/download/v[0-9].[0-9][0-9].[0-9]/hugo_extended_[0-9].[0-9][0-9].[0-9]_Linux-64bit.deb'` | |
tar -xzf hugo*.tar.gz | |
sudo dpkg -i hugo*.deb && rm hugo*.deb; |
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
[{"id":"c8971770.2bcb98","type":"file","z":"d7b932b9.f6cb4","name":"","filename":"","appendNewline":true,"createDir":false,"overwriteFile":"true","encoding":"none","x":1050,"y":440,"wires":[["5759783a.949fa8"]]},{"id":"57fad02e.17f44","type":"rbe","z":"d7b932b9.f6cb4","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","x":930,"y":420,"wires":[["c8971770.2bcb98"]]},{"id":"992b766a.f1a868","type":"change","z":"d7b932b9.f6cb4","name":"destino","rules":[{"t":"set","p":"filename","pt":"msg","to":"\"/NAS/Invoices_Archive/\" & $substring($now(),0,13) & \"h\" & $substring($now(),14,2) & \"mn_\" & msg.payload.filename","tot":"jsonata"},{"t":"set","p":"payload","pt":"msg","to":"payload.content","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":420,"wires":[["57fad02e.17f44","8490a08.3588e6"]]},{"id":"3e3b1204.c9300e","type":"switch","z":"d7b932b9.f6cb4","name":"PDF?","property":"payload.contentType","propertyType":"msg","rules":[{"t":"eq","v":" |
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
[ | |
{ | |
"id": "2dec1e89.a9a582", | |
"type": "chatbot-telegram-receive", | |
"z": "b05ba402.a21508", | |
"bot": "21c9917c.15264e", | |
"botProduction": "21c9917c.15264e", | |
"x": 170, | |
"y": 640, | |
"wires": [ |
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
<!-- | |
I use a lot of photos from unsplash as headers. This shortcode works in two ways to make that easier: | |
1. Standard use | |
{{< copyright name="Malte Wingen" href="https://unsplash.com/@maltewingen?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText" >}} | |
2. Automatic parsing of filename | |
{{< copyright >}} |
NewerOlder