Enviado em 14/09/2017 - 21:44h
Olá pessoal,#!/usr/bin/env bash text="$(xsel -o)" translate="$(wget -U "Mozilla/5.0" -qO - "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=pt&dt=t&q=$(echo $text | sed "s/[\"'<>]//g")" | sed "s/,,,0]],,.*//g" | awk -F'"' '{print $2}')" echo -e "Original text:" "$text"'\n' > /tmp/notitrans echo "Translation:" "$translate" >> /tmp/notitrans zenity --text-info --title="Translation" --filename=/tmp/notitrans
Enviado em 18/09/2017 - 15:58h
ricardom@ricardom:~$ ping -c 12 translate.googleapis.com PING translate.googleapis.com(2800:3f0:4001:816::200a (2800:3f0:4001:816::200a)) 56 data bytes --- translate.googleapis.com ping statistics --- 12 packets transmitted, 0 received, 100% packet loss, time 11261ms ricardom@ricardom:~$
ricardom@ricardom:~$ traceroute translate.googleapis.com traceroute to translate.googleapis.com (216.58.202.170), 30 hops max, 60 byte packets 1 192.168.1.1 (192.168.1.1) 2.746 ms 2.283 ms * 2 201.79.201.1 (201.79.201.1) 18.895 ms 18.746 ms 19.772 ms 3 100.122.50.171 (100.122.50.171) 23.804 ms 24.438 ms 25.838 ms 4 100.122.22.200 (100.122.22.200) 38.401 ms 38.347 ms 100.122.19.129 (100.122.19.129) 38.216 ms 5 100.122.19.196 (100.122.19.196) 47.469 ms 100.122.19.220 (100.122.19.220) 46.450 ms 100.122.19.196 (100.122.19.196) 47.907 ms 6 100.122.20.85 (100.122.20.85) 49.479 ms 100.122.20.77 (100.122.20.77) 36.302 ms 100.122.20.103 (100.122.20.103) 35.505 ms 7 72.14.220.142 (72.14.220.142) 34.988 ms 72.14.242.150 (72.14.242.150) 40.308 ms 40.242 ms 8 108.170.245.129 (108.170.245.129) 39.265 ms 108.170.245.161 (108.170.245.161) 39.200 ms 108.170.245.129 (108.170.245.129) 41.740 ms 9 72.14.239.221 (72.14.239.221) 43.697 ms 72.14.239.223 (72.14.239.223) 34.837 ms 38.150 ms 10 216.58.202.170 (216.58.202.170) 41.485 ms 41.491 ms 43.769 ms ricardom@ricardom:~$
12 packets transmitted, 0 received, 100% packet loss, time 11261ms
Enviado em 14/09/2017 - 23:48h
#!/usr/bin/env bash text="$(xsel -o)" translate="$(wget -U "Mozilla/5.0" -qO - "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=pt&dt=t&q=$(echo $text | sed "s/[\"'<>]//g")" | sed "s/,,,0]],,.*//g" | awk -F'"' '{print $2}')" echo -e "Original text:" "$text"'\n' > /tmp/notitrans echo "Translation:" "$translate" >> /tmp/notitrans zenity --text-info --title="Translation" --filename=/tmp/notitrans
wget -U "Mozilla/5.0" -qO - "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=pt&dt=t&q=yesterday"|egrep -o '[a-z]+'|head -n1 ontem
Enviado em 15/09/2017 - 00:16h
Oi Marcelo,Enviado em 15/09/2017 - 13:06h
translate="$(wget -U "Mozilla/5.0" -qO - "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=pt&dt=t&q=$(echo $text | sed "s/[\"'<>]//g")" | sed "s/,,,0]],,.*//g" | awk -F'"' '{print $2}')"ATUAL:
translate="$(wget -U "Mozilla/5.0" -qO - "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=pt&dt=t&q=yesterday"|egrep -o '[a-z]+'|head -n1)"
Enviado em 15/09/2017 - 13:16h
Oi Marcelo,#!/usr/bin/env bash text="$(xsel -o)" translate="$(wget -U "Mozilla/5.0" -qO - "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=pt&dt=t&q=yesterday"|egrep -o '[a-z]+'|head -n1)" echo -e "Original text:" "$text"'\n' > /tmp/notitrans echo "Translation:" "$translate" >> /tmp/notitrans zenity --text-info --title="Translation" --filename=/tmp/notitrans
Enviado em 15/09/2017 - 13:32h
#!/usr/bin/env bash text="$(xsel -o)" translate="$(wget -U "Mozilla/5.0" -qO - "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=pt&dt=t&q=yesterday"|egrep -o '[a-z]+'|head -n1)" echo -e "Original text:" "$text"'\n' > /tmp/notitrans echo "Translation:" "$translate" >> /tmp/notitrans zenity --text-info --title="Translation" --filename=/tmp/notitrans
wget -U "Mozilla/5.0" -qO - "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=pt&dt=t&q=COLOQUE A VAR AQUI"|egrep -o '[a-z]+'|head -n1
Enviado em 15/09/2017 - 15:12h
Marcelo,#!/usr/bin/env bash text="$(xsel -o)" translate="$(axel -n 4 "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=pt&dt=t&q=$(echo $text | sed "s/[\"'<>]//g")"|egrep -o '[a-z]+'|head -n1)" echo -e "Original text:" "$text"'\n' > /tmp/notitrans echo "Translation:" "$translate" >> /tmp/notitrans zenity --text-info --title="Translation" --filename=/tmp/notitrans
Enviado em 15/09/2017 - 15:19h
time translate="$(wget -U "Mozilla/5.0" -qO - "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=pt&dt=t&q=yesterday"|egrep -o '[a-z]+'|head -n1)"
ricardom@ricardom:~$ time translate="$(wget -U "Mozilla/5.0" -qO - "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=pt&dt=t&q=yesterday"|egrep -o '[a-z]+'|head -n1)" real 2m10,934s user 0m0,000s sys 0m0,008s ricardom@ricardom:~$
Enviado em 15/09/2017 - 15:26h
time translate="$(wget -U "Mozilla/5.0" -qO - "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=pt&dt=t&q=yesterday"|egrep -o '[a-z]+'|head -n1)"
ricardom@ricardom:~$ time translate="$(wget -U "Mozilla/5.0" -qO - "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=pt&dt=t&q=yesterday"|egrep -o '[a-z]+'|head -n1)" real 2m10,934s user 0m0,000s sys 0m0,008s ricardom@ricardom:~$
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Descritores de Arquivos e Swappiness
Fez porcaria no teu repositório Git? Aprenda a restaurar uma versão anterior do seu código!
Restaurando Fontes de Download do Hydra no Linux
Atualizando "na marra" o YT-DLP quando começa a dar erro de downloads
Como instalar o WPS com interface e corretor ortográfico em PT-BR no Arch Linux
Firewall filtrando portas que estão abertas [RESOLVIDO] (3)
Atualizador de Programas do Zorin 17.3 não funciona (3)