Skip to content

Instantly share code, notes, and snippets.

View davidlanouette's full-sized avatar

David Lanouette davidlanouette

View GitHub Profile
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'

Keybase proof

I hereby claim:

  • I am davidlanouette on github.
  • I am dlanouettemi (https://keybase.io/dlanouettemi) on keybase.
  • I have a public key ASAZAyYm-gcIwPhR5FIlCTDqwZxEMr351U_JcsNq0cAJ3Qo

To claim this, I am signing this object:

@davidlanouette
davidlanouette / clean_download_file_names.py
Created April 26, 2024 20:22
Rename files with "illegal" characters. All illegal chars get replaced with either a "-", or removed.
#!/usr/bin/env python3
import sys
import os
DEBUGGING = False
DRY_RUN = False
if (len(sys.argv) > 1):
print(f"First arg is {sys.argv[1]}")