Skip to content

Instantly share code, notes, and snippets.

View Merovex's full-sized avatar

Ben W Merovex

  • Gainfully Employed
  • In a hidden bunker under a non-descript building
  • 22:46 (UTC -05:00)
View GitHub Profile
@wndxlori
wndxlori / send_to_kindle.rb
Last active April 15, 2024 20:00
When you have a whole LOT of ebooks to send to your Kindle
#!/Usr/bin/env ruby
require 'mail'
require 'fileutils'
# Check if a command line argument is provided
if ARGV.length < 1
puts "Usage: ruby send_to-kindle.rb <directory containing epub files>"
exit 1
@AliOsm
AliOsm / .env
Last active July 8, 2024 17:21
Deploy Rails, GoodJob, PostgreSQL, Redis, Memcached, Meilisearch, and ChromaDB on the same server using Kamal.
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
@robzolkos
robzolkos / Dockerfile
Last active October 30, 2024 15:06
Kamal / SQLite3 issue
# syntax = docker/dockerfile:1
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
ARG RUBY_VERSION=3.2.2
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base
# Rails app lives here
WORKDIR /rails
# Set production environment
@cstroe
cstroe / OpenSourceCRM.rst
Last active November 13, 2024 13:24
A distilled list of open-source CRM software
@Isaddo
Isaddo / import-github-labels.js
Last active September 6, 2024 00:47
import github labels via console command
/*
Go on your labels page (https://github.com/user/repo/labels)
Edit the following label array
or
Use this snippet to export github labels (https://gist.github.com/MoOx/93c2853fee760f42d97f)
and replace it
Paste this script in your console
Press Enter!!
@staltz
staltz / introrx.md
Last active November 14, 2024 11:27
The introduction to Reactive Programming you've been missing
@philshon
philshon / gist:1206356
Created September 9, 2011 14:26
"rake generate" error.
$ rake -t generate
** Invoke generate (first_time)
** Execute generate
## Generating Site with Jekyll
Configuration from /Users/pshon/Projects/crazypheel_octopress/_config.yml
/Users/pshon/Projects/crazypheel_octopress/plugins/category_generator.rb:73: warning: regexp has invalid interval
/Users/pshon/Projects/crazypheel_octopress/plugins/category_generator.rb:73: warning: regexp has `}' without escape
/Users/pshon/Projects/crazypheel_octopress/plugins/category_generator.rb:110: warning: regexp has invalid interval
/Users/pshon/Projects/crazypheel_octopress/plugins/category_generator.rb:110: warning: regexp has `}' without escape
unchanged sass/screen.scss