grep -rnw "some thing to grep" --include=*.{module,inc,php,js,css,html,htm} ./
https://stackoverflow.com/questions/12516937/how-can-i-grep-recursively-but-only-in-files-with-certain-extensions
2023-11-14, Рекомендую
2020-11-30, Рекомендую
Покартиночно:
mkdir images pdfimages -all Untitled.pdf images/prefix
Постранично:
pdftoppm Untitled.pdf outputname -png
2018-05-31, Рекомендую
[
{ "keys": ["ctrl+p"], "command": "scope_to_clipboard" },
{ "keys": ["ctrl+ф"], "command": "select_all" },
{ "keys": ["ctrl+ч"], "command": "cut" },
{ "keys": ["ctrl+с"], "command": "copy" },
{ "keys": ["ctrl+shift+i"], "command": "noop" },
{ "keys": ["ctrl+м"], "command": "paste" },
{ "keys": ["ctrl+в"], "command": "save" },
{ "keys": ["ctrl+ы"], "command": "save" },
{ "keys": ["ctrl+r"], "command": "save" },
{ "keys": ["ctrl+t"], "command": "save" },
{ "keys": ["ctrl+а"], "command": "save" },
{ "keys": ["ctrl+z"], "command": "undo" },
{ "keys": ["ctrl+я"], "command": "undo" },
{ "keys": ["ctrl+у"], "command": "show_panel", "args": {"panel": "find"} },
{ "keys": ["ctrl+n"], "command": "noop" },
{ "keys": ["ctrl+home"], "command": "noop" },
{ "keys": ["ctrl+end"], "command": "noop" },
{ "keys": ["ctrl+pageup"], "command": "noop" },
{ "keys": ["ctrl+pagedown"], "command": "noop" },
{ "keys": ["ctrl+."], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+up"], "command": "move", "args": {"by": "lines", "forward": false, "extend": true} },
{ "keys": ["ctrl+shift+down"], "command": "move", "args": {"by": "lines", "forward": true, "extend": true} },
{ "keys": ["ctrl+shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true} },
{ "keys": ["ctrl+shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },
{ "keys": ["ctrl+up"], "command": "move", "args": { "by": "lines", "forward": false, "amount": 1 } },
{ "keys": ["ctrl+down"], "command": "move", "args": { "by": "lines", "forward": true, "amount": 1 } },
]
2017-11-23, Рекомендую
Посмеялся от души.
Пост, из которого можно совершенно точно выяснить почему же яндекс говно:
https://govnoproger.ru/seo/yandeks-govno.html
2017-09-05, Рекомендую
g()
{
if [[ $* == *['?''['']''*']* ]]
then
(>&2 echo "Warning: ?][* are wildcards!")
fi
SEARCH_STRING=$(printf "%s[
]*" "$@")
find -L . -iname "*${SEARCH_STRING::-5}*"
}
G()
{
# SEARCH_STRING=$(echo "$1" | sed 's/[]*?[]/\&/g')
# find . -name "'"*$SEARCH_STRING*"'"
if [[ $* == *['?''['']''*']* ]]
then
(>&2 echo "Warning: ?][* are wildcards!")
fi
SEARCH_STRING=$(printf "%s[
]*" "$@")
find -L . -name "*${SEARCH_STRING::-5}*"
}
gg()
{
grep -RIin --color=always -- "$*" . | cut -c1-1000
}
GG() # Case-insensitive, Wildcards disabled
{
local SEARCH_STRING
if [[ "$*" == "" ]]; then
read -p "Type a search string: " SEARCH_STRING # For complex queries.
history -s GG "'"${SEARCH_STRING//\'/\'\"\'\"\'}"'" # Append escaped command to history.
else
SEARCH_STRING="$*"
fi
grep -RFIn --color=always -- "$SEARCH_STRING" . | cut -c1-1000
}
2017-09-03, Рекомендую
sudo add-apt-repository ppa:purplei2p/i2pd sudo apt-get update sudo apt-get install i2pd
sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt update sudo apt install streamlink streamlink https://www.youtube.com/watch?v=VvVvVvVvVvV streamlink --hls-live-edge 9999999 --stream-segment-attempts 1000 --stream-segment-timeout 30 --hls-segment-attempts 1000 --hls-segment-timeout 30 --hls-playlist-reload-attempts 1000 --hls-timeout 1000 -o video1.mp4 https://www.youtube.com/watch?v=VvVvVvVvVvV 720p
Присутствуют глюки:
https://github.com/streamlink/streamlink/issues/1146
Рекомендуют также сохранять в .ts, т.к. он "родной формат и точно не заглючит". Но это не проверенная информация.
streamlink --hls-live-edge 9999999 --stream-segment-attempts 1000 --stream-segment-timeout 30 --hls-segment-attempts 1000 --hls-segment-timeout 30 --hls-playlist-reload-attempts 1000 --hls-timeout 1000 -o video1.ts https://www.youtube.com/watch?v=VvVvVvVvVvV 720p
Ютуби-дл скачивает не с начала, а с середины, поэтому использовать его можно только если стрим ещё не начался либо если уже закончился.
youtube-dl --list-formats https://www.youtube.com/watch?v=VvVvVvVvVvV youtube-dl -f 95 https://www.youtube.com/watch?v=VvVvVvVvVvV
sudo add-apt-repository ppa:retroshare/stable sudo apt update sudo apt install -y retroshare
2017-07-09, Рекомендую
function regex { gawk 'match($0,/'"$1"'/,arr){print ((part="'$2'")=="") ? $0 : arr[part]}'; }
2017-07-04, Рекомендую
LIBREOFFICE XRAY БЛЯДЬ
XrayTool60_en