1. Untuk memantau web apakah down atau tdk, bisa gunakan fasilitas gratis dari statuscake.com, jika down atau sdh up lagi akan di email dan SMS.
2. ini mencoba turning dibagian php nya.. semula 10, dicoba diubah ke 30. semoga web tidak down lagi
1. Untuk memantau web apakah down atau tdk, bisa gunakan fasilitas gratis dari statuscake.com, jika down atau sdh up lagi akan di email dan SMS.
2. ini mencoba turning dibagian php nya.. semula 10, dicoba diubah ke 30. semoga web tidak down lagi
# sudo yum -y update# cd /tmp# sudo curl -sS https://getcomposer.org/installer | php# mv composer.phar /usr/local/bin/composerif (parse_url($url, PHP_URL_QUERY))
if ($_GET)
I have an html saved in my database with a special tag string like [special_tag] and I want to display that html to my twig template at the same time replace the [special_tag] with any html elements.
Is this possible?
| |||
add a comment
|
Yes, you could use Twig's
replace filter:
| |||
I am currently working with youtube api v3. I am trying to retrieve
video ids from a particular playlist. I have search through the documentation but can’t find an example that references that or something similar. I am using this repo from GITHUB. How can I retrieve video ids from a given playlist id?
Here is a snippet but it only yields general information of the playlist:
| ||
Yes, you can !
With the YouTube API v3 with the ressource playlistItems.list
Use this parameters to get the video ID of a playlist :
https://www.googleapis.com/youtube/v3/playlistItems?part=contentDetails&playlistId=PL590L5WQmH8fJ54F369BLDSqIwcs-TCfs&key={YOUR_API_KEY}
The output :
Then you have the video IDs of the playlist.
I look up quickly the github you link into in your post, you would have something like this : ( /!\ I haven't tested this code/!)
| |||||||||||||||||
|
cd /tmp
curl -sS https://getcomposer.org/installer | php
/usr/local/bin/mv composer.phar /usr/local/bin/composer
composer globally.
raw:{{ var_html | replace(...) | raw }}– Crozin Apr 23 '14 at 9:18