Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revisionBoth sides next revision | ||
| code:bash [2014/08/31 15:07] ::ffff:89.204.130.13 | code:bash [2026/02/05 15:21] (current) 84.138.194.42 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| ====== bash ====== | ====== bash ====== | ||
| ===== bashrc ===== | ===== bashrc ===== | ||
| Line 35: | Line 34: | ||
| [ $1 ] || { echo -ne " | [ $1 ] || { echo -ne " | ||
| - | # pipes | + | |
| + | ## sqlite to html | ||
| sqlite3 ex1 ' | sqlite3 ex1 ' | ||
| + | ### tools | ||
| + | ## remove html | ||
| + | lynx -dump | ||
| + | |||
| ===== ip and gateway ===== | ===== ip and gateway ===== | ||
| Line 68: | Line 72: | ||
| </ | </ | ||
| + | |||
| + | ==== youtube-dl ==== | ||
| + | |||
| + | * https:// | ||
| + | |||
| + | <file bash yt.sh> | ||
| + | #!/bin/sh | ||
| + | COOKIE_FILE=/ | ||
| + | for i in $*; do | ||
| + | mplayer -cookies -cookies-file ${COOKIE_FILE} $(youtube-dl -g --cookies ${COOKIE_FILE} $i) | ||
| + | done | ||
| + | </ | ||
| + | |||
| + | ==== mysql ==== | ||
| + | |||
| + | ex=' | ||
| + | min() { echo $(( $1 < $2 ? $1 : $2 )); } | ||
| + | i=470; | ||
| + | a=$i; | ||
| + | $ex " | ||
| + | | ||
| + | | ||
| + | echo " | ||
| + | |||