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
  • 05:54 (UTC -12:00)
View GitHub Profile
@DennisLfromGA
DennisLfromGA / sme.mount
Last active January 1, 2016 06:29
A shell script to mount or unmount your SMEStorage Cloud Provider folders for local access.<p>Refer to http://storagemadeeasy.com/ for features and details.
#!/bin/sh -e
# Mount SMEStorage Cloud folders locally
Bname="${0##*/}"
Crosh_Loc=''
Local_User="$(id -un)"
SMEmount=''
Umount=''
USAGE="
${Bname} [options]
@DennisLfromGA
DennisLfromGA / screencast
Last active January 3, 2016 09:19
A script to capture a 'screencast' on your Chromebook via 'crouton' (http://goo.gl/fd3zc) by David Schneider. This is a modified version of the original script 'screencast.sh' (http://goo.gl/UmWAta) by Francois Beaufort.
#!/bin/bash -e
## A script to capture a 'screencast' on your Chromebook via 'crouton' (http://goo.gl/fd3zc) by David Schneider.
#+ This is a modified version of the original script 'screencast.sh' (http://goo.gl/UmWAta) by Francois Beaufort.
#+ This 'screencast' modified source (and author) can be found here - (https://gist.github.com/DennisLfromGA/8441689)
# Needs to run in bash so do it.
if [ -z "$BASH_VERSION" ]; then exec bash -e "$0" "$@"; fi
APPLICATION="${0##*/}"
ARGNUM="$#"
@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 / 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 / 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 / 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 / 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 / enable-vmx.sh
Last active May 5, 2017 00:35
ChromeOS script to re-write the current kernel configuration to enable VT-x extensions and lsm.module locking for virtualbox/virtualization. Based on steps provided by @zwxfzzzjr on the crouton github site here - https://github.com/dnschneid/crouton/issues/675#issuecomment-40567742
#!/bin/sh -e
C_ROOT=''
C_KERNEL=''
##
## Exits the script with exit code $1, spitting out message $@ to stderr
error() {
local ecode="$1"
shift
echo "$*" 1>&2
exit "$ecode"
@DennisLfromGA
DennisLfromGA / mnt-crouton.conf
Created April 19, 2014 02:30
A Chromebook init script to mount the CROUTON partition - made possible via @drinkcat's crouton/separate_partition branch
# 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 CROUTON on /var/crouton"
author "drinkcat & DennisLfromGA"
start on starting boot-services
task
script
@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"=""