Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/18/19 in all areas

  1. Razi ca melcul la priza. Depinde cum si unde anunta ISP-ul adresele IP sau daca bazele de date utilizate la geolocalizare au update-urile la zi. Se poate specifica orasul si poti chiar sa faci o functie bash weather() { if [ $# -eq 0 ] then echo "Usage: weather city_name" else curl -s http://wttr.in/$1 fi } Dupa ce o faci, poti introduce functia in profilul tau (ex: ~/.bashrc pentru root sau ~/.bash_profile pentru user). Dupa adaugare, pentru a relua environmentul trebuie sa te reautentifici sau sa executi comanda "source ~/.bashrc" sau "source ~/.bash_profile" (dupa caz) Demo aelius@macbook:~$ weather Usage: weather city_name aelius@macbook:~$ weather Lorrach Weather report: Lorrach \ / Partly cloudy _ /"".-. 16 °C \_( ). ↓ 6 km/h /(___(__) 10 km 0.0 mm ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Thu 18 Apr ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ \ / Partly cloudy │ \ / Partly cloudy │ \ / Partly cloudy │ \ / Partly cloudy │ │ _ /"".-. 13 °C │ _ /"".-. 19 °C │ _ /"".-. 20 °C │ _ /"".-. 17 °C │ │ \_( ). ← 5-8 km/h │ \_( ). ↙ 6-7 km/h │ \_( ). ↙ 8-13 km/h │ \_( ). ↙ 7-14 km/h │ │ /(___(__) 20 km │ /(___(__) 19 km │ /(___(__) 18 km │ /(___(__) 19 km │ │ 0.0 mm | 0% │ 0.0 mm | 0% │ 0.0 mm | 0% │ 0.0 mm | 0% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Fri 19 Apr ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ \ / Partly cloudy │ \ / Partly cloudy │ \ / Partly cloudy │ \ / Partly cloudy │ │ _ /"".-. 15 °C │ _ /"".-. 23 °C │ _ /"".-. 21 °C │ _ /"".-. 19 °C │ │ \_( ). ↖ 5-7 km/h │ \_( ). → 3-4 km/h │ \_( ). ↓ 6-10 km/h │ \_( ). ↖ 4-7 km/h │ │ /(___(__) 20 km │ /(___(__) 19 km │ /(___(__) 16 km │ /(___(__) 16 km │ │ 0.0 mm | 0% │ 0.0 mm | 0% │ 0.0 mm | 0% │ 0.0 mm | 0% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Sat 20 Apr ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ _`/"".-. Patchy rain po…│ \ / Partly cloudy │ \ / Partly cloudy │ _`/"".-. Patchy rain po…│ │ ,\_( ). 15..16 °C │ _ /"".-. 21 °C │ _ /"".-. 19 °C │ ,\_( ). 14 °C │ │ /(___(__) ← 4-5 km/h │ \_( ). ↙ 6 km/h │ \_( ). ↓ 9-12 km/h │ /(___(__) ↙ 7-13 km/h │ │ ‘ ‘ ‘ ‘ 20 km │ /(___(__) 19 km │ /(___(__) 17 km │ ‘ ‘ ‘ ‘ 19 km │ │ ‘ ‘ ‘ ‘ 0.7 mm | 23% │ 0.0 mm | 0% │ 0.1 mm | 50% │ ‘ ‘ ‘ ‘ 0.1 mm | 25% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ Follow @igor_chubin for wttr.in updates aelius@macbook:~$ weather Mannheim Weather report: Mannheim \ / Sunny .-. 19 °C ― ( ) ― ← 15 km/h `-’ 10 km / \ 0.0 mm ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Thu 18 Apr ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ \ / Sunny │ \ / Sunny │ \ / Partly cloudy │ \ / Partly cloudy │ │ .-. 13..14 °C │ .-. 18 °C │ _ /"".-. 19 °C │ _ /"".-. 16 °C │ │ ― ( ) ― ← 15-18 km/h │ ― ( ) ― ← 19-22 km/h │ \_( ). ↙ 16-25 km/h │ \_( ). ↙ 16-28 km/h │ │ `-’ 20 km │ `-’ 20 km │ /(___(__) 20 km │ /(___(__) 20 km │ │ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ 0.0 mm | 0% │ 0.0 mm | 0% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Fri 19 Apr ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ \ / Partly cloudy │ \ / Partly cloudy │ \ / Partly cloudy │ \ / Partly cloudy │ │ _ /"".-. 15 °C │ _ /"".-. 20 °C │ _ /"".-. 20 °C │ _ /"".-. 18 °C │ │ \_( ). ← 13-15 km/h │ \_( ). ← 13-15 km/h │ \_( ). ← 11-15 km/h │ \_( ). ↙ 9-14 km/h │ │ /(___(__) 20 km │ /(___(__) 20 km │ /(___(__) 20 km │ /(___(__) 20 km │ │ 0.0 mm | 0% │ 0.0 mm | 0% │ 0.0 mm | 0% │ 0.0 mm | 0% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ ┌─────────────┐ ┌──────────────────────────────┬───────────────────────┤ Sat 20 Apr ├───────────────────────┬──────────────────────────────┐ │ Morning │ Noon └──────┬──────┘ Evening │ Night │ ├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤ │ \ / Partly cloudy │ \ / Sunny │ \ / Partly cloudy │ \ / Clear │ │ _ /"".-. 16 °C │ .-. 20 °C │ _ /"".-. 22 °C │ .-. 20 °C │ │ \_( ). ↙ 11-13 km/h │ ― ( ) ― ↙ 14-16 km/h │ \_( ). ↙ 12-15 km/h │ ― ( ) ― ↙ 12-20 km/h │ │ /(___(__) 20 km │ `-’ 20 km │ /(___(__) 20 km │ `-’ 20 km │ │ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ └──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘ Follow @igor_chubin for wttr.in updates aelius@macbook:~$
    3 points
  2. curl http://wttr.in
    2 points
×
×
  • Create New...