This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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}")" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |