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

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;
@sdondley
sdondley / 01-tests.rakutest
Created June 21, 2022 11:32
Test for Distribution::Resources::Menu
use v6.d;
use Test;
use Injector;
use Distribution::Resources::Menu;
use Distribution::Resources::Distribution;
BEGIN {
bind dist(), :name<dist>;
}
use Injector;
use Data::Dump;
use lib '../Menu-Simple/lib';
use Menu::Simple;
unit class Distribution::Resources::Menu;
class ResourceMenu is export {
has CompUnit::Repository::Distribution $.dist is injected<dist>;
has Menu $.menu is rw;
has Hash $.menu-hash is rw;