Skip to content

Instantly share code, notes, and snippets.

View DennisLfromGA's full-sized avatar
🏠
Working from home

DennisL DennisLfromGA

🏠
Working from home
  • SOHO
  • GA
  • 13:29 (UTC -12:00)
View GitHub Profile
@DennisLfromGA
DennisLfromGA / flex.grub
Last active July 30, 2024 05:45
[BROKEN] Script for ChromeOS Flex to add cros_debug / dev mode option in grub.cfg
##########################################################################
### THIS SCRIPT NO LONGER WORKS DUE TO RECENT CHANGES IN CHROMEOS Flex ###
##########################################################################
### 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=
@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)
#!/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
#!/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
#!/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
#!/bin/bash
# brio-backup - A script to list & backup brioche containers
##
#######################
### Setup variables ###
#######################
##
APPL="${0##*/}"
BACKEDUP=''
BACKUPS=''
#!/bin/bash
name=${1:-google pixelbook$}
confdiff=''
conffile="recovery.conf"
confscript='get-recovery.conf'
location="${HOME}/Downloads/"
del=3
key=''
#!/bin/bash
hwid=${1:-eve}
confdiff=''
conffile="recovery.conf"
confscript='get-recovery.conf'
location="${HOME}/Downloads/"
del=3
key=''
#!/bin/bash
board=${1:-eve}
confdiff=''
conffile="recovery.conf"
confscript='get-recovery.conf'
location="${HOME}/Downloads/"
del=3
key=''
#!/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}
#!/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