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:19 (UTC -04: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 April 17, 2024 17:18
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 March 2, 2024 20:59
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 April 1, 2024 21:15
A distilled list of open-source CRM software
@Isaddo
Isaddo / import-github-labels.js
Last active February 9, 2024 22:44
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 April 19, 2024 18:49
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