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
@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
@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
@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

@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

@jonlabelle
jonlabelle / disable_macos_firewall_logging.md
Last active January 26, 2023 07:14
Disable macOS Firewall Logging
@skyzyx
skyzyx / homebrew-gnubin.md
Last active May 28, 2025 23:49
Using GNU command line tools in macOS instead of FreeBSD tools

macOS is a Unix, and not built on Linux.

I think most of us realize that macOS isn't a Linux OS, but what that also means is that instead of shipping with the GNU flavor of command line tools, it ships with the FreeBSD flavor. As such, writing shell scripts which can work across both platforms can sometimes be challenging.

Homebrew

Homebrew can be used to install the GNU versions of tools onto your Mac, but they are all prefixed with "g" by default.

All commands have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc.

For a more organised and more update list please visit https://github.com/RayZz-/LCU-Arguments
This list will no longer be updated please refer to the repo linked above
These are known command line arguments for the LCU(including helper) some maybe outdated
or overtime may become outdated or some information maybe incorrect
if you would like to contribute please comment with updated information.
Usage example:
--app-name=kappa
@peteristhegreat
peteristhegreat / ReadMe.md
Created September 24, 2019 19:56
Pandoc, Markdown to PDF on Mac
brew install pandoc
brew cask install basictex # takes a few minutes
sudo tlmgr install collection-fontsrecommended
pandoc -f markdown -t latex ./myfile.md -o myfile.pdf
@peteristhegreat
peteristhegreat / Readme.md
Created January 30, 2020 15:50
Swap file magic
sudo dd if=/dev/zero of=/swap1 bs=1k count=1M
sudo mkswap /swap1 
sudo chmod 600 /swap1 
sudo swapon /swap1

# Make it permanent
echo '/swap1 none swap sw 0 0' | sudo tee -a /etc/fstab