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
  • 11:39 (UTC -12:00)
View GitHub Profile
@DennisLfromGA
DennisLfromGA / name
Last active April 13, 2024 19:40
A bash script to gather pertinent system info. For debian, arch, crunchbang, raspbian, chromeos, and other *nix distros.
## for default bash
#!/usr/bin/env bash
# for termux bash
##!/data/data/com.termux/files/usr/bin/bash
# name - A script to gather pertinent system info.
#
APPLICATION="${0##*/}"
TMPDIR='/tmp'
@nl5887
nl5887 / transfer.fish
Last active March 22, 2022 09:07
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
@DennisLfromGA
DennisLfromGA / startcr
Last active December 22, 2015 04:38
A crouton tool to search and prompt for a Desktop Environment (I.E.) gnome, xbmc, xfce4, etc. in a specified chroot based upon the contents of the '(chroot)/etc/crouton/targets' file. Also allows checking the 'crouton' version and optionally updating all targets in a chroot.
#!/bin/sh
echo_e='/bin/echo -e'
#######################
## Declare Variables ##
#######################
APPLICATION="${0##*/}"
Chroot_loc=/usr/local/chroots
[ -d /var/crouton/chroots ] && Chroot_loc='/var/crouton/chroots'
[ ! -d "$Chroot_loc" ] && Chroot_loc=''
Chroot_par="$(dirname "${Chroot_loc}")"
# I updated the script for kernel 3.8 running on Acer C7 Chrubuntu 13.04
#!/bin/bash
set -x
#
# Grab verified boot utilities from ChromeOS.
#
mkdir -p /usr/share/vboot