Moved to a repo at https://github.com/Geczy/coolify-migration
This is an opinionated handbook on how I migrated all my Rails apps off the cloud and into VPS.
This is how I manage real production loads for my Rails apps. It assumes:
- Rails 7+
- Ruby 3+
- PostgreSQL
- Ubuntu Server 24.04
- Capistrano, Puma, Nginx
See the new site: https://postgresisenough.dev
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
| # 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 |
| SN32F268 | ATmega32U4 | WeAct Blackpill - STM32F411 | WeAct STM32F405 | RP2040 | Proton C - STM32F303xC | Nice Nano (nRF52840) | STM32G0B1xx | |
|---|---|---|---|---|---|---|---|---|
| Speed | 48MHz | 16MHz | ~96MHz | ~168MHz | 2@ 133MHz | 72MHz | 64MHz | 64MHz |
| Voltage | 3.3V | 5V | 3.3V with 5V capable pins | 3.3V with 5V capable pins | 3.3v | 3.3V with some 5V capable pins | 3.3v | 3.3V with 5V capable pins |
| Flash size | 32kB (~28kB usable) | 32kB (28kB |
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 \
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; | |
| textarea.style.position = 'fixed'; | |
| /* Prevent scrolling to bottom of page in MS Edge.*/ |
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
| 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: |
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; |
NewerOlder