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 zsh | |
| SRC_ROOT="???" | |
| DST_ROOT="???" | |
| find "$SRC_ROOT" \ | |
| \( -type d -name node_modules -prune \) -o \ | |
| \( -mindepth 4 -maxdepth 4 -type f -name "master.key" \ | |
| -print \) | while read -r file; do |
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 zsh | |
| SRC_ROOT="???" | |
| DST_ROOT="???" | |
| find "$SRC_ROOT" \ | |
| \( -type d -name node_modules -prune \) -o \ | |
| \( -mindepth 3 -maxdepth 3 -type f \( \ | |
| -name ".env" -o \ | |
| -name "mise.toml" -o \ |
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 sh | |
| bundle exec erb_lint --autocorrect --stdin $1 2>/dev/null | sed '1,/^================/d' |
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
| require 'bundler/inline' | |
| gemfile do | |
| source 'https://rubygems.org' | |
| gem 'liquid' | |
| gem 'base64' | |
| end | |
| require 'date' | |
| require 'liquid' |
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 ruby | |
| require "bundler/inline" | |
| gemfile do | |
| source "https://rubygems.org" | |
| gem "typhoeus" | |
| end | |
| require "uri" |
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
| require 'bundler/inline' | |
| gemfile do | |
| source 'https://rubygems.org' | |
| gem 'liquid' | |
| end | |
| require 'date' | |
| require 'liquid' |
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
| require 'sidekiq/monitor' | |
| Sidekiq::RetrySet.new.each do |job| | |
| p [job.display_class, job.display_args] | |
| end |
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
| # See https://support.freeagent.com/hc/en-gb/articles/115001222564-How-to-format-a-CSV-file-to-upload-a-bank-statement#h_01FWZVYY1GEEGAPKJHG6FKV2HM | |
| require 'csv' | |
| CSV($stdin, headers: true, skip_blanks: true) do |csv| | |
| csv.each do |row| | |
| puts([ | |
| Date.parse(row['Date']).strftime("%d/%m/%Y"), | |
| row['Amount'].gsub(/,/, ''), | |
| row['Description'].gsub(/,/, '') |
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
| <script> | |
| /* eslint-disable */ | |
| import { mode } from "$app/env"; | |
| import { onMount } from "svelte"; | |
| const rollbarAccessToken = import.meta.env | |
| .VITE_ROLLBAR_POST_CLIENT_ITEM_ACCESS_TOKEN; | |
| const codeVersion = import.meta.env.VITE_LATEST_SHA; |
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
| migration_context = ActiveRecord::Base.connection.migration_context | |
| migration_context.migrate(target_version = nil) | |
| migration_context.rollback(steps = 1) | |
| migration_context.forward(steps = 1) | |
| migration_context.up(target_version = nil) | |
| migration_context.down(target_version = nil) | |
| migration_context.current_version |
NewerOlder