Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
iex "& {$(irm get.scoop.sh)} -ScoopDir ${Env:USERPROFILE}\Scoop"
scoop install git
scoop bucket add extras
scoop install delta exiftool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
### -*- Mode: Python; fill-column: 132; comment-auto-fill-only-comments: t; tab-width: 4; eval: (local-set-key "\C-i" 'indent-according-to-mode); eval: (auto-fill-mode 1); -*- | |
# | |
# Map `errno` names or codes to num+name+strerror tuples and/or generate Bash | |
# arrays that do the same mappings. For use in MEJSH, NHC, and/or daily life. | |
# | |
# Michael Jennings <mej@lanl.gov> | |
# 23 Sep 2024 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
set -- "This... " This "can't" \*really\* be a '<bleep>ing' "\"test,\"" can it\?$'\n' | |
OFFLINE_NODE="echo -e -n" | |
exec >$0.out 2>$0.err | |
TESTSTR="$*" | |
printf 'Beginning testing; test string is: "%s"\n' "${TESTSTR}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
#### Check https://goo.gl/9N7e3S for the latest version of this gist! | |
# | |
#### Installs Docker, Charliecloud, and Mezzanine by default during provisioning. Run: | |
#### $ vagrant up | |
#### To connect to the VM and play around with the above software, simply run: | |
#### $ vagrant ssh | |
#### Then, to build, convert, and test several example containers with Charliecloud, use: | |
#### $ vagrant provision --provision-with ctr-build,ctr-install,ch-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### -*- Mode: conf-toml; fill-column: 80; comment-auto-fill-only-comments: t; tab-width: 4; eval: (local-set-key "\C-i" 'indent-according-to-mode) -*- | |
################################################################################ | |
# Git Configuration | |
# | |
# Michael Jennings <mej@eterm.org> | |
# 15 Mar 2013 | |
# | |
# Evolved over time and cobbled together from innumerable sources. | |
# | |
################################################################################ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
#### Check https://goo.gl/9N7e3S for the latest version of this gist! | |
# | |
#### Installs Docker, Charliecloud, and Mezzanine by default during provisioning. Run: | |
#### $ vagrant up | |
#### To connect to the VM and play around with the above software, simply run: | |
#### $ vagrant ssh | |
#### Then, to build, convert, and test several example containers with Charliecloud, use: | |
#### $ vagrant provision --provision-with ctr-build,ctr-install,ch-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _GNU_SOURCE | |
#define _BSD_SOURCE | |
#include <errno.h> | |
#include <sched.h> | |
#include <stdarg.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <sys/mount.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mac_to_ipv6() { | |
local HWADDR="$1" IFACE="$2" | |
local -a OCTETS | |
local IPV6ADDR | |
if [[ -z "$IFACE" ]]; then | |
IFACE=$(ip route | grep ^default | sed 's/^.* dev //') | |
fi | |
OCTETS=( ${HWADDR//:/\ } ) | |
OCTETS[0]=$(printf %02x $((16#${OCTETS[0]}+0x02))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl -ni.presort -e '@F = split /:/; $F[3] = join(",", sort(grep{$_}split(",", (chomp($F[3]),$F[3]))))."\n" if ($F[2] >= 100); print join(":", @F);' /etc/group |