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)
[devops@localhost DevSandbox]$ openssl s_client -connect localhost:3300
CONNECTED(00000003)
Can't use SSL_get_servername
depth=0 CN = 15ebb19d5ddb
verify error:num=18:self signed certificate
verify return:1
depth=0 CN = 15ebb19d5ddb
verify return:1
---
@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";
FROM golang:1.11
ENV GO111MODULE=on
WORKDIR /cellar
COPY . /cellar
RUN ["go", "mod", "vendor"]
RUN ["go", "get", "-u", "goa.design/goa/v3/..."]
RUN ["go", "get", "github.com/githubnemo/CompileDaemon"]
@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]
#

Keybase proof

I hereby claim:

  • I am russelltsherman on github.
  • I am russelltsherman (https://keybase.io/russelltsherman) on keybase.
  • I have a public key ASBrd8fyeDme0pw5rxr8-5en7DCg-34E3_Z2oyDVmltacgo

To claim this, I am signing this object: