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
  • 18:20 (UTC -12:00)
View GitHub Profile
@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
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
board=${1:-eve}
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
name=${1:-google pixelbook$}
confdiff=''
conffile="recovery.conf"
confscript='get-recovery.conf'
location="${HOME}/Downloads/"
del=3
key=''
@DennisLfromGA
DennisLfromGA / priority
Last active May 25, 2021 17:26
Re-prioritize CrOS boot pair to toggle the active image pair (KERNEL & ROOT) or set the active image pair as specified.
#!/bin/sh -e
REVISION=14
APPL_PATH="$(readlink -f $0)"
APPLICATION="${0##*/}"
BOOT_KERNEL=""
BOOT_ROOT=""
CURRENT_BOOTPAIR=""
CURRENT_CHROME=""
CURRENT_DRIVE=""
CURRENT_KERNEL=""
@DennisLfromGA
DennisLfromGA / chrootbu
Last active May 8, 2021 23:21
Perfroms a chroot backup ensuring enough space is available.
#!/bin/sh
ANSWER=''
APPLICATION="${0##*/}"
AVAIL=''
AVAILGB=''
BACKTAG=''
BACKUP=''
CHROOT=''
CHROOTS=''
@DennisLfromGA
DennisLfromGA / mywanip
Created August 25, 2015 18:29
Script to grab your WAN IP address using various means.
#!/usr/bin/env sh
ipurl="icanhazip.com"
if hash dig 2>/dev/null; then cmd="dig +short myip.opendns.com @resolver1.opendns.com"; ipurl=""
elif hash curl 2>/dev/null; then cmd="curl"
elif hash wget 2>/dev/null; then cmd="wget -qO-"
else echo "*** No app (dig,curl,wget) found - exiting ***"; exit 2; fi
[ -n "$1" ] && echo -n "$cmd $ipurl - "
eval $cmd $ipurl || ret=$?
exit $ret
@DennisLfromGA
DennisLfromGA / mnt-chrubuntu.conf
Last active September 6, 2020 13:10
A Chromebook init script to mount a ChrUbuntu partition (#7 / ROOT-C) at boot.
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "mount CHRUBUNTU on /var/ChrUbuntu-sda7"
author "DennisLfromGA@github.com & drinkcat@github.com"
start on starting boot-services
task
script
@DennisLfromGA
DennisLfromGA / crouton.conf
Last active July 17, 2020 17:27
A ChromeOS upstart script to kick-off a crouton chroot desktop environment.
# Copyright (c) 2016 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
## Filename: /etc/init/crouton.conf
## NOTE: 'rootfs' verification needs to be removed.
## crouton chroot - Start session
##
## This will start a (crouton) chroot Desktop Environment session