Skip to content

Instantly share code, notes, and snippets.

Avatar

Steve Dondley sdondley

View GitHub Profile
View gist:9db6dbffb8fb751c4afcd1092ab24fd0
/**
* Roundcube Webmail Client Script
*
* This file is part of the Roundcube Webmail client
*
* @licstart The following is the entire license notice for the
* JavaScript code in this file.
*
* Copyright (C) The Roundcube Dev Team
* Copyright (C) Kolab Systems AG
@sdondley
sdondley / gist:032fea49818dc50d65f1c36f92b48f5d
Created Aug 23, 2021
Tabbing through google search results in Safari
View gist:032fea49818dc50d65f1c36f92b48f5d
For whatever very bad reason (likely related squeezing to every drop of ad revenue from their product), Google does not allow you to easily tab throug search results. When logged in to Google, you have to hit tab 17 times just to get to the first result, which is ridiculous. It can take anywhere from a few to dozens of more taps to get to the next result. This is painful.
I took a quick look for an extension on Safari but came up empty. So here is a quick AppleScript I quickly knocked out (well, OK, it took several hours because I'm not proficient with AppleScript and it's agonizing to debug) to make tabbing a lot more useful on Google:
#!/usr/bin/osascript
on run argv
set op to argv
global isTag
View gist:b47fd4f293cecd9070a5c63428be8787
Yeah, yeah. Welcome to the Making Sense podcast. This is Sam Harris. Okay, well today's podcast is
yet another PSA There have been many of them of late needless to say if you want to support what I'm
doing here, the way to do that is to subscribe to the podcast at SAm Harris dot org. It's really the
subscribers that make all of this possible. But given the kinds of topics I touch here, it's with
some regularity that I feel the need to put out a podcast in a form where the most people will hear
every word of it. And today, the topic that could not suffer a paywall is what is now universally
described as vaccine. Hesitancy and the general condition of misinformation and disinformation that
surrounds vaccines in general. But the Covid MRNA vaccines in particular, I think anyone who has
listened to the podcast in the last year or so, we'll have no doubt about where I stand on the topic
of the Covid vaccines but haven't focused on it because it seemed like there really has not been all
@sdondley
sdondley / tmux split-window subcommand.md
Last active Sep 15, 2021
Super Guide to the split-window tmux Subcommand (and Beyond)
View tmux split-window subcommand.md

Super Guide to the split-window tmux Subcommand (and Beyond)

Guide overview

tmux, like other great software, is deceptive. On the one hand, it's fairly easy to get set up and start using right away. On the other hand, it's difficult to take advantage of tmux's adanced power features without spending some quality alone time with the manual. But the problem with manuals is that they aren't geared toward beginners. They are geared toward helping seasoned developers and computer enthusiasts quickly obtain the

View gist:c5d8818f0e9879b8e7953b15e16bfe3c
You'll often see this recommendation for navigating up a directory tree.
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
etc.
But there is better, shorter way:
@sdondley
sdondley / osx_elcapitan_sierra_cpan_fix.md
Last active Feb 21, 2017 — forked from lifofernandez/osx_elcapitan_fix.md
CPAN fix "Do not have write permissions on '/usr/bin'" OSX El Capitan problem
View osx_elcapitan_sierra_cpan_fix.md

CPAN log

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/bin'
Do not have write permissions on '/usr/bin'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

There may be a problem upgrading the CPAN module in Mac OS X El Capitan and Sierra releases. Solution: http://www.perlmonks.org/?node_id=1144321