Author: John A. Fedoruk <[email protected]>
Key ID: 8937446102D51067EB90DB6AB229A6E87086AD48
Date: 2019-07-03
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
| // ==UserScript== | |
| // @name Notion Numbered Headings | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2025-10-06 | |
| // @description Add hierarchical numbering to Notion headings (H2-H4 + bold-only as H5) using almost only CSS | |
| // @author chriscz (https://github.com/chriscz) | |
| // @match https://www.notion.so/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=notion.so | |
| // @grant none | |
| // ==/UserScript== |
Built on-top of phusion/baseimage
Application is mounted at /app
update-app-ids.sh
#!/bin/bash
set -eou pipefailSee how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs
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
| # We generate a quick reference within a code block that can then be moved into your LogSeq | |
| (echo '```' > quickref.md && curl -s https://raw.githubusercontent.com/DailyBotHQ/universal-emoji-parser/main/src/lib/emoji-lib.json | jq 'to_entries | .[] | "\(.key) -> \(.value.keywords | join(", "))"' -r >> quickref.md; echo '```' >> quickref.md) |
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
| # FIXME Rails has-one through is nil on unpersisted objects (bug) | |
| # https://github.com/rails/rails/issues/33155 | |
| module ActiveRecordUnpersistedHasOneFix | |
| extend ActiveSupport::Concern | |
| # Define utility methods | |
| class << self | |
| # @return [Array<String>, nil] | |
| def association_path(model_class, association) | |
| path = [] |
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 | |
| SOURCE=${BASH_SOURCE[0]} | |
| while [ -L "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink | |
| DIR=$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd ) | |
| SOURCE=$(readlink "$SOURCE") | |
| [[ $SOURCE != /* ]] && SOURCE=$DIR/$SOURCE # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located | |
| done | |
| SCRIPT_DIR=$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd ) |
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
| # Place under initializers/yaml_autoloader.rb | |
| class PsychLoaderPatch | |
| include Singleton | |
| def initialize | |
| logfile = File.open(Rails.root.join("log/yaml_disallowed_classes.log").to_s, "a") | |
| logfile.sync = true | |
| @logger = Logger.new(logfile) |
NewerOlder