Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

DennisL DennisLfromGA

🏠
Working from home
  • SOHO
  • GA
View GitHub Profile
@DennisLfromGA
DennisLfromGA / install.brio-br
Last active Sep 11, 2021
A script to install 'brio-br' and associated links to '/usr/local/bin' as root (default)
View install.brio-br
#!/bin/bash
# 'install.brio-br' - A script to install 'brio-br' and associated links to '/usr/local/bin' as root (default)
##
#########################
### Declare variables ###
#########################
##
APPL='install.brio-br'
APPLBR='brio-br'
BIN=${BIN:-/usr/local/bin}
@DennisLfromGA
DennisLfromGA / brio-br
Last active Sep 12, 2021
A script to list, backup and restore brioche containers
View brio-br
#!/bin/bash
# 'brio-br' - A script to list, backup and restore brioche containers
##
#########################
### Declare variables ###
#########################
##
## COMMON variables ##
##
APPL="${0##*/}"
@DennisLfromGA
DennisLfromGA / brio-restore
Last active Sep 5, 2021
A script to restore brioche containers from brioche backups
View brio-restore
#!/bin/bash
# brio-restore - A script to list brioche backups & restore brioche containers
##
#######################
### Setup variables ###
#######################
##
APPL="${0##*/}"
CONTAINERS=''
DELAY=5
@DennisLfromGA
DennisLfromGA / brio-backup
Last active Sep 5, 2021
A script to list & backup brioche containers
View brio-backup
#!/bin/bash
# brio-backup - A script to list & backup brioche containers
##
#######################
### Setup variables ###
#######################
##
APPL="${0##*/}"
BACKEDUP=''
BACKUPS=''
View get-recovery.name
#!/bin/bash
name=${1:-google pixelbook$}
confdiff=''
conffile="recovery.conf"
confscript='get-recovery.conf'
location="${HOME}/Downloads/"
del=3
key=''
View get-recovery.hwid
#!/bin/bash
hwid=${1:-eve}
confdiff=''
conffile="recovery.conf"
confscript='get-recovery.conf'
location="${HOME}/Downloads/"
del=3
key=''
View get-recovery.board
#!/bin/bash
board=${1:-eve}
confdiff=''
conffile="recovery.conf"
confscript='get-recovery.conf'
location="${HOME}/Downloads/"
del=3
key=''
View get-recovery.conf
#!/bin/bash
conffile="recovery.conf"
location="${HOME}/Downloads/"
mkdir -p ${location}
echo "Getting a new ${conffile} file ..."
curl -s https://dl.google.com/dl/edgedl/chromeos/recovery/${conffile} -o /tmp/${conffile}
View taremall.sh
#!/bin/bash
## Backup script for use before powerwashing or recovery.
ANS=''
DAT="$(date +%m%d%Y)"
DIR="$HOME/Downloads/$DAT"
EXF='--exclude-tag-under=.EXCLUDE'
MOD='Eve'
NIX='/var/crouton/chroots/trusty/home/denny'
echo_e='/bin/echo -e'
xit=0
@DennisLfromGA
DennisLfromGA / etc-setup.sh
Last active Jun 6, 2021
A script to remove rootfs verification and install an openssh server - needs to be run twice with two reboots.
View etc-setup.sh
#!/usr/bin/env bash
###
APPLICATION="${0##*/}"
ARCHIVE=''
CURRENTROOT="$(rootdev -s)"
GO=''
HOM=$HOME
NUM='0'
SUDO=''