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
PS(1) BSD General Commands Manual PS(1) | |
NAME | |
ps -- process status | |
SYNOPSIS | |
ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]] | |
[-g grp[,grp...]] [-u uid[,uid...]] [-p pid[,pid...]] | |
[-t tty[,tty...]] [-U user[,user...]] |
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
General | |
id (string) Video identifier | |
title (string) Video title | |
url (string) Video URL | |
ext (string) Video filename extension | |
alt_title (string) A secondary title of the video | |
display_id (string) An alternative identifier for the video | |
uploader (string) Full name of the video uploader | |
license (string) License name the video is licensed under | |
creator (string) The creator of the video |
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
All files were found via Googling: | |
site:oregontechsfcdn.azureedge.net filetype:pdf inurl:library-documents | |
or for specific chapters: | |
site:oregontechsfcdn.azureedge.net filetype:pdf inurl:library-documents inurl:chapter-1 | |
#https://www.google.com/search?q=site%3Aoregontechsfcdn.azureedge.net+inurl%3Alibrary-documents+filetype%3Apdf | |
Successful Searching in Oregon Tech Library’s Electronic Resources | |
https://oregontechsfcdn.azureedge.net/oregontech/library-documents/successful-searching-in-oregon-tech-library-electronic-resources2012.pdf |
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 __trim { | |
if test -p /dev/stdin; then | |
data="$(</dev/stdin)" | |
elif test -n "${1}"; then | |
data="$*" | |
else | |
return 1 | |
fi | |
echo "${data}" | sed -E -e 's/^[[:space:]]*//g' -e 's/[[:space:]]*$//g' |
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/bash | |
# Create /etc/profile.d/prompt.sh and add the content of this gist to it. | |
# | |
# Prompt example: | |
# (2)[Fri May 06 10:00:30| 0:003]{4}root@ip-172-31-1-226:~(0)# | |
# Format is: | |
# (sessions on server)[date time| Last command exec time]{sessions on server}username@hostname:working_directory(exit code of last cmd)# | |
# | |
# Example Output (of $[prompt[0]}): http://d.pr/i/19B87 | |
# |
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 trim { | |
if [ $# -eq 0 ] | |
then | |
data=$(cat) | |
else | |
data="$*" | |
fi | |
data="${data#"${data%%[![:space:]]*}"}" | |
data="${data%"${data##*[![:space:]]}"}" |
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
declare -A _c | |
_c[reset]=$(tput sgr0) | |
_c[bold]=$(tput bold) | |
_c[red]=$(tput setaf 1) | |
_c[grn]=$(tput setaf 2) | |
_c[yel]=$(tput setaf 3) | |
_c[cya]=$(tput setaf 6) |
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 _err { | |
echo "${1}" 1>&2 | |
[[ -n $2 ]] && exit $2 | |
} | |
function trim { | |
if test -p /dev/stdin; then | |
data="$(</dev/stdin)" |
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/bash | |
# Create /etc/profile.d/prompt.sh and add the content of this gist to it. | |
# | |
# Prompt example: | |
# (2)[Fri May 06 10:00:30| 0:003]{4}root@ip-172-31-1-226:~(0)# | |
# Format is: | |
# (sessions on server)[date time| Last command exec time]{sessions on server}username@hostname:working_directory(exit code of last cmd)# | |
# | |
# Example Output (of $[prompt[0]}): http://d.pr/i/19B87 | |
# |
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/local/bin/bash4 | |
function stderr { | |
echo $@ 1>&2 | |
} | |
function abspath { | |
[[ -d $1 ]] && { cd "$1"; echo "$(pwd -P)"; } || | |
{ cd "$(dirname "$1")"; echo "$(pwd -P)/$(basename "$1")"; } | |
} |
NewerOlder