Skip to content

Instantly share code, notes, and snippets.

View npupko's full-sized avatar
🚀

Nick Pupko npupko

🚀
View GitHub Profile
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="cfr.xsl"?>
<CFRGRANULE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CFRMergedXML.xsd">
<FDSYS>
<CFRTITLE>49</CFRTITLE>
<CFRTITLETEXT>Transportation</CFRTITLETEXT>
<VOL>5</VOL>
<DATE>2024-10-01</DATE>
<COVERONLY>false</COVERONLY>
<ORIGINALDATE>2024-10-01</ORIGINALDATE>
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="cfr.xsl"?>
<CFRGRANULE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="CFRMergedXML.xsd">
<FDSYS>
<CFRTITLE>49</CFRTITLE>
<CFRTITLETEXT>Transportation</CFRTITLETEXT>
<VOL>5</VOL>
<DATE>2024-10-01</DATE>
<COVERONLY>false</COVERONLY>
@npupko
npupko / rollback-migrations.rb
Created February 10, 2025 16:22
Rollback migrations which are not in `main`
#!/bin/bash
get_migration_files() {
branch=$1
git ls-tree -r $branch --name-only backend/db/migrate | grep '[0-9]\+_.\+.rb'
}
current_branch=$(git rev-parse --abbrev-ref HEAD)
current_migrations=$(get_migration_files $current_branch)
@npupko
npupko / .alacritty.yml
Created May 29, 2023 13:04
Alacritty config
env:
TERM: xterm-256color
font:
normal:
family: JetBrainsMono Nerd Font
style: Regular
bold:
family: JetBrainsMono Nerd Font
require 'capybara/rspec'
RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end
config.mock_with :rspec do |mocks|
mocks.verify_partial_doubles = true
end
module Service
extend ActiveSupport::Concern
included do
attr_reader :options
def initialize(options = {})
@options = JSON.parse(
options.to_json, object_class: Hash
).deep_symbolize_keys
@npupko
npupko / README-Template.md
Created July 6, 2017 13:00 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites