Skip to content

Instantly share code, notes, and snippets.

View davidldennison's full-sized avatar
🎯
Focusing

David Dennison (Search Riot) davidldennison

🎯
Focusing
View GitHub Profile
@jonlabelle
jonlabelle / disable_macos_firewall_logging.md
Last active January 26, 2023 07:14
Disable macOS Firewall Logging
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 30, 2025 18:11
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@walesmd
walesmd / IconServiceAgent.md
Last active April 18, 2025 13:38
A lot of people are having issues with com.apple.IconServicesAgent. Since this is a very new issue, Google was no help and `man iconservicesd` is even more hilarious. I eventually fixed it, when I was working on a completely different issue (that is still not fixed). The instructions are below and on the Apple Support Forum, https://discussions.…

I was chasing down another issue (slow "Save As") and thought these two issues may have been related (with QuickLook being the common broken link). Unfortunately, my "Save As" dialog is still miserably slow on the initial load; but IconServicesAgent hasn't gone above 30MB and he rarely makes an appearance in the Console!

Some of these steps may not be necessary, but here are all of the steps I took that inadverdently put IconServicesAgent back in its place. Note: all commands are a single-line, if they appear to be multiple that's just the forum formatting.

  1. Check for any QuickLooks related .plist files. In a terminal: mdfind com.apple.quicklook. -name .plist

  2. I only had files at the system level (specifically within /System/Library/LaunchAgents/). If you have others, modify the directions below to take that into account (re-introducing plist files from the system level back up to the user).

  3. Make some temporary directories to store these plist files, just in case: mkdir ~/tmp-quicklook

@vsajip
vsajip / pyvenvex.py
Last active April 24, 2025 08:47
A script which demonstrates how to extend Python 3.3's EnvBuilder, by installing setuptools and pip in created venvs. This functionality is not provided as an integral part of Python 3.3 because, while setuptools and pip are very popular, they are third-party packages.The script needs Python 3.3 or later; invoke it using"python pyvenvex.py -h"fo…
#
# Copyright (C) 2013-2020 Vinay Sajip. New BSD License.
#
import os
import os.path
from subprocess import Popen, PIPE
import sys
from threading import Thread
from urllib.parse import urlparse
from urllib.request import urlretrieve
@rwilcox
rwilcox / web2bbedit.sh
Created May 8, 2012 11:59
Download something from the web directly into BBEdit
#!/bin/sh
curl $1 | /usr/local/bin/bbedit
# Call this script like so:
# web2bbedit.sh http://www.barebones.com
# This will open the Bare Bone Software homepage as HTML in BBEdit