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
  • 21:26 (UTC -12:00)
View GitHub Profile
@DennisLfromGA
DennisLfromGA / nix-installs
Last active January 21, 2016 04:58
Script to install or update common software packages - as defined in $PACKAGES.
#!/bin/sh -e
#
APPLICATION="${0##*/}"
PACKAGES="\
cgpt colordiff compizconfig-settings-manager cowsay fortune-mod fortunes fortunes-debian-hints fortunes-min \
fortunes-off gparted guake ppa-purge remmina remmina-common remmina-plugin-rdp remmina-plugin-vnc screen synaptic \
tmux ubuntu-wallpapers unity-tweak-tool update-manager update-manager-core update-notifier update-notifier-common \
update-notifier-kde vim vim-doc vim-scripts vim-addon-manager vlc vlc-data vlc-nox vlc-plugin-notify vlc-plugin-pulse wajig"
SUDO=''
#
@DennisLfromGA
DennisLfromGA / cb-repart.sh
Created December 21, 2015 06:04
Chrome OS script to add or delete ChrUbuntu partitions.
#!/bin/bash
set -e
BNAME=$(basename $0)
USAGE="
Usage: sudo bash $0 [ChrUbuntu size in GB]
$BNAME will resize the Chromebook to add or delete ChrUbuntu partitons.
$BNAME should be run from VT2 when NOT logged in.
@DennisLfromGA
DennisLfromGA / .crouton_funcs
Created January 4, 2016 19:38
Functions to find and mount Crouton & ChrUbuntu partitions
# Exits the script with return code $1, spitting out message $@ to stderr
error() {
local ecode="$1"
shift
echo "$*" 1>&2
return "$ecode"
}
# Find the root drive
# Sets:
@DennisLfromGA
DennisLfromGA / recovery-id.sh
Last active February 8, 2016 22:25
A script to download current Chrome OS image data for importing into a spreadsheet.
Moved to: https://github.com/DennisLfromGA/CBC-Projects/blob/recovery-id/recovery-id.sh
@DennisLfromGA
DennisLfromGA / recovery-id.csv
Last active February 8, 2016 22:22
Chrome OS recovery image data for importing into a spreadsheet.
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Moved to: https://github.com/DennisLfromGA/CBC-Projects/blob/recovery-id/recovery-id.csv
@DennisLfromGA
DennisLfromGA / chrx-install.log
Created February 21, 2016 17:59
chrx install log (Feb 21 12:51)
## go -d galliumos -p admin-misc kodi -H denny.chrx -U denny -v
chrx installer, version 2.1.2
Hardware ID: LULU_D25-O2K-D2Q-Q2P
Model: Dell Chromebook 13 7310
Released: 2015
CPU Family: Intel Broadwell
Prognosis: success likely, ONLY IF FIRMWARE HAS BEEN UPDATED!
Checking hardware support for legacy boot... OK
@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=''
[
{
"desc": "Acer 15.6\" BSW Banjo refresh",
"file": "chromeos_8530.81.0_banon_recovery_stable-channel_mp.bin",
"filesize": 2279571456,
"hwidmatch": "^BANON .*",
"manufacturer": "Acer",
"name": "Acer 15.6\" Chromebook",
"sha1": "55283c73c64c48cca410eddc38b23a9f4854648e",
"url": "https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_8530.81.0_banon_recovery_stable-channel_mp.bin.zip",
@DennisLfromGA
DennisLfromGA / cb
Created July 6, 2017 00:12
Shows Vital Product Data (VPD) for Chrome OS device.
#!/bin/sh -e
### 'cb' - Shows Vital Product Data (VPD) for Chrome OS device.
###
### Typical VPD data
###
## sudo dump_vpd_log --full --stdout
## "mlb_serial_number"="CN0V..................."
## "ppid"="CN0V..................."
## "asset_tag"=""
@DennisLfromGA
DennisLfromGA / priority
Last active September 12, 2024 19:07
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=""