share

= copy file from windows share folder + curl -O "smb://user:password@server/sharefolder/file.txt" = copy file from http server + wget "http://server/file.txt" = copy file from https server + curl -kO "https://server/file.txt" = open windows startup folder with Run + shell:startup (for current user) + shell:common startup (for all user) = enlarge CMD (window command line) screen + type command "mode 800" = insert URL image on cell in Excel + select active cell for insert URL image + select INSERT->Pictures + put URL image in "File name" box + select Insert->"Link to File" + resize picture to fit the cell (or number of cells) + at picture, right-click, select "Size and Properties" + select PROPERTIES->"Move and size with cells" + URL image will resize follow the cell = save video from facebook + right-click on video, select "Show video URL" + copy URL to clipboard + paste URL on address bar of browser + change "www." to "m." of URL (m.facebook.com), press Enter + right-click on video, select "Save Links As..." = linux shell + do parameters have in shell script ((!$#)) && echo "Usage: cmd.sh [param]" && exit + set shell prompt export PS1="["`hostname -s`"]":'$PWD'' # ' + change hostname (Ubuntu) # hostnamectl set-hostname 'new-hostname' # sudo -s > change 127.0.0.1 old-hostname to new-hostname + get tomorrow date # echo "310817"| perl -MPOSIX -MTime::Local -le '$dt=<>; $tm=timelocal(0,0,0,substr($dt,0,2), substr($dt,2,2)-1, substr($dt,4,2)+2000); $next=strftime "%a %Y%m%d", localtime($tm + 86400);printf("%s", $next);' = change ls color in bash + edit dircolor # cp /etc/DIR_COLORS ~/.dircolors # vi ~/.dircolors > change DIR 01;34 ==> DIR 01;33 # directory > relogon + or put this line in .bashrc file LS_COLORS=$LS_COLORS:'di=0;33:' ; export LS_COLORS = change vim color schemes (see in /usr/share/vim/vimNN/colors/) + put these in .vimrc set ts=2 syntax on colorscheme koehler + set TERM=xterm export TERM=xterm