Skip to content

Instantly share code, notes, and snippets.

View fredplante's full-sized avatar
🏠
Working from home

Frédéric Planté fredplante

🏠
Working from home
View GitHub Profile
@fredplante
fredplante / script.rb
Created March 19, 2023 09:05
Put all google photo takout export files in a same directory (and remove jpeg from heic)
#!/usr/bin/env ruby
require "fileutils"
INPUT_DIR = "/Users/user/Takeout"
OUTPUT_DIR = "/Users/user/Takeout Output"
item_count = 0
debug = true
@fredplante
fredplante / check_stale_codeowners_entries.rb
Last active November 30, 2022 10:44
Checks if entries can be removed from CODEOWNERS file
#!/usr/bin/env ruby
# This script assumes CODEOWNERS files can be found in "../.github/
lines = File.readlines(File.join(__dir__, "..", ".github", "CODEOWNERS"))
stale_entries = []
lines.each_with_index do |line, index|
original_line = line