Skip to content

Instantly share code, notes, and snippets.

View russelltsherman's full-sized avatar

Russell T. Sherman russelltsherman

View GitHub Profile

Nix on macOS Catalina

Installing Nix

Note: See the NixOS manual for discussion of the --darwin-use-unencrypted-nix-store-volume option.

sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume --no-daemon
@russelltsherman
russelltsherman / tmux-cheatsheet.markdown
Created February 21, 2021 05:25 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@russelltsherman
russelltsherman / Dockerfile.base
Created September 18, 2020 13:15 — forked from carlosedp/Dockerfile.base
Build Keycloak on ARM
FROM centos:7
MAINTAINER Marek Goldmann <mgoldman@redhat.com>
# Install packages necessary to run EAP
RUN yum update -y && yum -y install xmlstarlet saxon augeas bsdtar unzip java-1.8.0-openjdk-devel && yum clean all
# Create a user and group used to launch processes
# The user ID 1000 is the default for the first "regular" user on Fedora/RHEL,
# so there is a high chance that this ID will be equal to the current user
# making it easier to use volumes (no permission issues)
@russelltsherman
russelltsherman / placeFileInAllGithubRepos.php
Created April 12, 2020 18:14 — forked from bchecketts/placeFileInAllGithubRepos.php
Quick script to place a single file in every repository in your Github organization
<?php
## Generate a Github user token at https://github.com/settings/tokens
$githubToken = 'EnterYourGithubTokenHere';
## Your organization name (from https://github.com/yourOrganizationName)
$organization = 'yourOrganizationName';
## Enter the name of the remote file you want to place
$remoteFile = "pull_request_template.md";
@russelltsherman
russelltsherman / gist:40140094bfc1d78d1d8ad3f949e7deb6
Created May 20, 2019 18:53 — forked from christofluethi/gist:646ae60d797a46a706a5
Convert m4a to mp3 on OS X command line using ffmpeg
brew update
brew link yasm
brew link x264
brew link lame
brew link xvid
brew install ffmpeg
ffmpeg wiki:
https://trac.ffmpeg.org/wiki/Encode/MP3
@russelltsherman
russelltsherman / festivaltts-install-sh
Last active April 24, 2019 16:42 — forked from fabianosarracco/festivaltts-install-sh
Festival/Mbrola installation on Raspberry Pi (with english and italian voices)
#!/bin/sh
#
# festivaltts-install.sh
# -----
#
# Installation and setup of a Festival based TTS system.
# Following instructions from:
# - [http://ubuntuforums.org/showthread.php?t=751169]
#
@russelltsherman
russelltsherman / dumb-ap-wired-link.sh
Created October 9, 2017 03:46 — forked from braian87b/dumb-ap-wired-link.sh
How to setup a Dumb AP, Wired backbone for OpenWRT / LEDE
@russelltsherman
russelltsherman / wireless-link-wds.sh
Created October 9, 2017 03:46 — forked from braian87b/wireless-link-wds.sh
How to setup Wireless Links to avoid Wired backbone using WDS on Atheros for OpenWRT / LEDE
@russelltsherman
russelltsherman / consul.service
Created June 13, 2017 04:20 — forked from Manc/consul.service
/etc/systemd/system/consul.service
[Unit]
Description=Consul service discovery agent
Requires=network-online.target
After=network.target
[Service]
User=consul
Group=consul
PIDFile=/run/consul/consul.pid
Restart=on-failure