Skip to content

Instantly share code, notes, and snippets.

View sdondley's full-sized avatar

Steve Dondley sdondley

View GitHub Profile
@sdondley
sdondley / osx_elcapitan_sierra_cpan_fix.md
Last active February 21, 2017 02:06 — forked from lifofernandez/osx_elcapitan_fix.md
CPAN fix "Do not have write permissions on '/usr/bin'" OSX El Capitan problem

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

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 / tmux split-window subcommand.md
Last active April 16, 2024 07:46
Super Guide to the split-window tmux Subcommand (and Beyond)

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

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 / gist:032fea49818dc50d65f1c36f92b48f5d
Created August 23, 2021 20:46
Tabbing through google search results in Safari
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
/**
* 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 / lists.p6
Created June 11, 2022 17:44
Raku List Basics
#! /usr/bin/env raku
use v6;
# se
my $pause = False;
blank;
say "LIST BASICS";
blank;
das '(1, 2)', "This is a simple list with two elements";
@sdondley
sdondley / lists.p6
Created June 11, 2022 17:46
Raku List Basics
#! /usr/bin/env raku
use v6;
# set this to True to pause between examples
my $pause = False;
blank;
say "LIST BASICS";
blank;
das '(1, 2)', "This is a simple list with two elements";
use v6.d;
unit module Doc::Examples::Resources;
class Resource {
has Str $.name;
}
class Lesson is Resource {
has IO $.file;
use v6.d;
unit module Simple;
class Menu { ... }
class Option {
has Str $.display-string is required;
has Int $.option-number;
has Menu $.submenu is rw;