Skip to content

Instantly share code, notes, and snippets.

View javierjulio's full-sized avatar

Javier Julio javierjulio

View GitHub Profile
@javierjulio
javierjulio / Dockerfile
Created March 31, 2026 18:06
Delete unnecessary gem files from Docker image
FROM ruby:4.0.2-alpine AS base
ENV BUNDLE_PATH="/usr/local/bundle"
# ...
# Post install, delete unnecessary files in gems that cause security vulnerability false positives
RUN bundle config set without 'development test rubocop' && \
bundle install && \
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
@javierjulio
javierjulio / bugsnag-console
Created February 4, 2026 22:35
Bugsnag Data API Interactive Console
#!/usr/bin/env ruby
# Include this script with no file extension in your project's `bin` directory.
# Update the script with your organization slug.
ORGANIZATION_SLUG = "" # Your Bugsnag organization slug
require "io/console" # provides `STDIN.noecho` method
begin
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
minWidth="955" minHeight="600">
<s:layout>
<s:HorizontalLayout gap="20" paddingTop="15" paddingLeft="15" />
</s:layout>