| // Plain ol' JavaScript module for fetching feature flags from the server | |
| // | |
| // import { isEnabled } from './flipper.js' | |
| // | |
| // if (await isEnabled("new_feature")) { | |
| // // render new feature | |
| // } else { | |
| // // render old feature | |
| // } | |
| // |
| import { Controller } from "@hotwired/stimulus" | |
| // use with Rails' `time_Tag` helper like so: | |
| // <%= time_tag campaign.starts_at, campaign.starts_at.to_formatted_s(:short), data: { controller: "localized-time", localized_time_type_value: "datetime-short" } %> | |
| export default class extends Controller { | |
| static targets = [ ] | |
| static values = { | |
| type: String, | |
| style: { type: String, default: 'medium' }, | |
| locale: { type: String, default: 'default' }, |
| KAMAL_REGISTRY_PASSWORD=dckr_pat_xXXxx_x0xXxXx-xX-XXX0xX0x-x | |
| RAILS_MASTER_KEY=00x00xxx000xxx000000xx0x000x0x00 | |
| POSTGRES_PASSWORD=xXxxx0xXXx0 | |
| MEILI_MASTER_KEY=xXxxx0xXXx0 | |
| BLAZER_DATABASE_URL=postgres://service:{POSTGRES_PASSWORD}@service-name-postgres:5432/service_production |
| #!/usr/bin/env ruby | |
| # Run like `ruby incompat_71.rb ~/path/to/Gemfile.lock` | |
| # From the team at infield.ai | |
| # | |
| PACKAGES = [['activerecord-import', '1.5.0'], | |
| ['anycable-rails', '1.4.1'], | |
| ['blazer', '3.0.1'], | |
| ['bullet', '7.1.2'], | |
| ['data_migrate', '9.2.0'], | |
| ['database_cleaner-active_record', '2.1.0'], |
| #!/bin/bash | |
| # Function to display usage information | |
| usage() { | |
| echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]" | |
| exit 1 | |
| } | |
| # Check if at least one argument (input file) is provided | |
| if [ $# -lt 1 ]; then |
This set of configuration changes achieves the following:
Ctrl+Shift+c or Super+c (on macOS only) after using the mouse to select text.Super+c keybinding works by remapping it to Ctrl+Shift+c in ghostty.| #!/usr/bin/env bash | |
| # vim: ft=bash | |
| # | |
| # © 2025 Konstantin Gredeskoul <kig AT kig.re> | |
| # All rights reserved. | |
| # MIT License. | |
| # | |
| # This script uses rbenv/ruby-build to install Ruby on OS-X or Linux. It configures | |
| # Ruby build flags in such a way to ensure Ruby is linked with libjemalloc (which | |
| # reduces the memory by half) and YJIT enabled. It has been tested on both Linux and |