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
  • 16:38 (UTC -12:00)
View GitHub Profile
@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 / .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 / 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 / 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 / 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 / chromecast-daily-wallpaper
Last active July 10, 2017 14:03
Simple command line tool which will grab a random wallpaper # from the Chromecast backgrounds repository at # https://github.com/dconnolly/chromecast-backgrounds
#!/bin/bash
# Chromecast-daily-wallpaper
# Version 0.2
#
# Simple command line tool which will grab a random wallpaper
# from the Chromecast backgrounds repository at
# https://github.com/dconnolly/chromecast-backgrounds
#
# Depends: lynx, nitrogen
#
@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 / name
Last active May 9, 2024 18:18
A bash script to gather pertinent system info. For debian, arch, crunchbang, raspbian, chromeos, and other *nix distros.
#!/usr/bin/env bash
## for default bash
##!/data/data/com.termux/files/usr/bin/bash
# for termux bash
## Gist link to 'name':
# https://gist.github.com/DennisLfromGA/a12b511d2b4a27e67a53
# name - A script to gather pertinent system info.
#
@DennisLfromGA
DennisLfromGA / crouton.init
Last active March 17, 2024 14:58
An external control file for adjusting six parameters in 'crouton.conf' to invoke a crouton chroot.
##########################################################################
##* crouton.conf defaults are: ##
# DELAY=10 # delay desired number of seconds before starting ##
# CHROOT=xenial # enter desired chroot to start ##
# START_DE=startxfce4 # enter desired Desktop Envirnoment to use ##
# CHROOT_APP=none # enter desired chroot application to run ##
# XMETHOD=default # enter the desired XMETHOD (xorg,xephyr,xiwi) ##
# RUN_STATE=y # change to 'n' to disable running $CHROOT ##
##########################################################################