flatpak override --user --env=GTK_IM_MODULE=cedilla net.xmind.XMind8
flatpak override --user --env=GTK_IM_MODULE=cedilla com.microsoft.Teams
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 | |
# Set default branch name | |
branch_name="${1:-staging}" | |
# Get changed files with grep for _spec.rb extension | |
changed_specs=$(git diff --name-only --diff-filter=d "$branch_name" | grep _spec.rb) | |
# Check if any changed specs found | |
if [[ -z "$changed_specs" ]]; then |
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
# To download the file run | |
# curl THIS_GIST_RAW_URL -o docker-compose.yml | |
# docker compose up | |
version: "3.9" | |
services: | |
postgres: | |
image: postgres:14 | |
ports: |
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
# Fix missing images on Trix when upgrading from Rails 6.1 to 7.0 | |
# Source: https://discuss.rubyonrails.org/t/rails-6-1-7-gives-404-for-actiontext-attachments/80803 | |
def refresh_trix(trix) | |
return unless trix.embeds.size.positive? | |
trix.body.fragment.find_all("action-text-attachment").each do |node| | |
embed = trix.embeds.find { |attachment| attachment.filename.to_s == node["filename"] && attachment.byte_size.to_s == node["filesize"] } |