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 / flex.grub
Last active March 6, 2023 13:15
Script for ChromeOS Flex to add cros_debug / dev mode option in grub.cfg
View flex.grub
### Script to add cros_debug / dev mode option in grub.cfg
### ( Each Flex update removes cros_debug / dev mode option
### Be sure to run this script AFTER each update and BEFORE rebooting )
ANS=
ROOTDEVICE=
ROOTDEVICEPREFIX=
P12MOUNTPOINT=/var/p12
GRUBCFGPATH=$P12MOUNTPOINT/efi/boot
GRUBCFGFILE=grub.cfg
@DennisLfromGA
DennisLfromGA / install.brio-br
Last active September 11, 2021 20:50
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 September 12, 2021 20:06
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 September 5, 2021 15:45
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 September 5, 2021 15:41
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