Skip to content

Instantly share code, notes, and snippets.

@marijnbent
marijnbent / gist:5452c4597d93d3b47577efdb15b4d775
Created November 1, 2023 14:51
Replace applications on macOS with brew installed apps
import os
import argparse
import shutil
import subprocess
def list_installed_apps():
app_folder_path = '/Applications'
app_list = [app.replace('.app', '') for app in os.listdir(app_folder_path) if app.endswith('.app')]
return app_list
@marijnbent
marijnbent / clipboard.py
Created October 9, 2023 20:57
Copy Alfred clipboard history as list or save as CSV
import os
import sqlite3
import csv
import subprocess
def export_alfred_clipboard(db_path, export_as):
db_path_expanded = os.path.expanduser(db_path)
conn = sqlite3.connect(db_path_expanded)
cursor = conn.cursor()
### Keybase proof
I hereby claim:
* I am marijnbent on github.
* I am marijnbent (https://keybase.io/marijnbent) on keybase.
* I have a public key ASBd3V-X0gzOQe28PmfQhykcaMPWU9pInOUpnbxU6BWtvwo
To claim this, I am signing this object: