Ho un file del tipo:
"/some-page" => "/"
"/some-other-page" => "/some-other/new-page"
Lo posso convertire utilizzando awk
| streamripper http://ice1.somafm.com/missioncontrol-128-mp3 -q 33 |
| function get_video_homepage($youtube,$i) { | |
| if( strpos($youtube[$i]->link, "youtube" ) != true) { | |
| $html = '<div id="video_'. $i .'"> | |
| <div class="video-content"> | |
| <a target="_blank" href="'. $youtube[$i]->link . '" onclick="_gaq.push([\'_trackEvent\', \'Homepage Video\', \'Click Video - '. $youtube[$i]->title .'\']);"> | |
| <img class="schermo" height="53px" width="71px" src="http://img.youtube.com/vi/'. id_youtube($youtube[$i]->link) .'/default.jpg" /> | |
| </a> | |
| </div> | |
| <div> | |
| <div class="descrizione">'. $youtube[$i]->title .'</div> |
| find . -iname '*.jpg' -exec bash -c "du -h '{}' && convert '{}' -resample 72 -resize "1200x800" '{}' && du -h '{}'" ';' |
Ho un file del tipo:
"/some-page" => "/"
"/some-other-page" => "/some-other/new-page"
Lo posso convertire utilizzando awk
| ln -s /opt/foo /usr/bin/bar |
| var date1 = new Date("2/1/2016"); // Mese, Giorno, Anno | |
| var today = new Date("1/1/2016"); | |
| var timeDiff = today.getTime() - date1.getTime(); | |
| var diffDays = Math.ceil(timeDiff / (1000 * 3600 * 24)); | |
| document.write(diffDays); |
| sudo mount.vboxsf INBOX /mnt/inbox_vbox |
du -shc $(find . -iname '*.jpg') | tail -n 1
find . -iname '*.jpg' -exec bash -c "du -h '{}' && convert '{}' -resample 72 -resize "1200x800" '{}' && du -h '{}'" ';'
variante:
find . -iname '*.jpg' -exec bash -c "du -h '{}' && convert '{}' -resample 72 -resize 1200x1200\> '{}' && du -h '{}'" ';'
bundle exec cap staging deploy