Skip to content

Instantly share code, notes, and snippets.

View jpritikin's full-sized avatar
😋

Joshua Pritikin jpritikin

😋
View GitHub Profile
@jpritikin
jpritikin / set-grub-pointer
Created October 18, 2019 22:11
perl script to select which grub.cfg to load from the EFI partition
#!/usr/bin/perl
use Modern::Perl '2018';
use Fatal qw(open);
die "$0 volume-group logical-volume" if @ARGV != 2;
our $vg=$ARGV[0];
our $lv=$ARGV[1];

Keybase proof

I hereby claim:

  • I am jpritikin on github.
  • I am jpritikin (https://keybase.io/jpritikin) on keybase.
  • I have a public key whose fingerprint is 275A 6673 208B 1E36 CDEC 5188 281A 7053 6127 B3F7

To claim this, I am signing this object:

@jpritikin
jpritikin / predis-sm.Rnw
Last active December 27, 2015 00:09
knitr doesn't generate the figure correctly when knit_hooks$set is enabled in the shell script.
#!/bin/sh
set -o errexit
set -o nounset
set -o noclobber
name=predis-sm
R --no-save --restore <<'EOF'
library(knitr)