Skip to content

Instantly share code, notes, and snippets.

View ndejay's full-sized avatar

Nicolas De Jay ndejay

  • Montréal, Québec, Canada
  • LinkedIn in/ndejay
View GitHub Profile
# https://localhost:8787/unattended/provision?spoof=192.168.14.56
# This kickstart file was rendered from the Foreman provisioning template "Kickstart default".
url --url ftp://hyd-foreman01.local.lan/pub/Rocky-8.4-x86_64-dvd1/
lang en_US.UTF-8
#!/usr/bin/env bash
INSTALL_TO="$HOME/.Renv"
echo "Installing to $INSTALL_TO"
if [ -d "$INSTALL_TO" ]; then
echo "$INSTALL_TO already exists: skipping"
else
git clone git://github.com/viking/Renv.git "$INSTALL_TO"
@ndejay
ndejay / cluster.sh
Last active January 1, 2016 08:49
Login script for a singleton tmux session on a host, regardless of where the user logs in from and whether a session is dispatched to one of multiple cluster nodes upon login.
#!/usr/bin/env bash
# See simple.sh for a solution that does not handle cluster dispatch
# behavior (i.e. on your personal computer.)
# Do not activate on a non-interactive shell or as a nested session.
if [[ $- == *i* ]] && [[ -z "$TMUX" ]] ; then
# List of possible cluster login nodes.
nodes[0]='lg-1r14-n01'
nodes[1]='lg-1r14-n02'