Skip to content

Instantly share code, notes, and snippets.

View sapphirecat's full-sized avatar
🎼
Out living life

Sapphire Cat sapphirecat

🎼
Out living life
View GitHub Profile
@sapphirecat
sapphirecat / lock-keyring.sh
Created July 22, 2022 14:17
lock a gnome-keyring
#!/bin/sh
ring="${1-awsvault}"
exec dbus-send --session --type=method_call \
--dest=org.gnome.keyring /org/freedesktop/secrets \
org.freedesktop.Secret.Service.Lock \
"array:objpath:/org/freedesktop/secrets/collection/${ring}"

Keybase proof

I hereby claim:

  • I am sapphirecat on github.
  • I am sapphirepaw (https://keybase.io/sapphirepaw) on keybase.
  • I have a public key ASCgNGTgEFEnqLG9m5cY3-tmoBh5OQ_Fb3b7CLzxV8L3dgo

To claim this, I am signing this object:

@sapphirecat
sapphirecat / benchmark.pl
Last active August 29, 2015 14:01 — forked from schwern/gist:896004
Perl object access showdown, incl. Class::XSAccessor
#!/usr/bin/env perl
use strict;
use warnings;
use Carp;
BEGIN {
# uncomment to test pure Perl Mouse
# $ENV{MOUSE_PUREPERL} = 1;