Skip to content

Instantly share code, notes, and snippets.

@senttor
senttor / nginx.conf
Created December 11, 2020 06:42 — forked from jrom/nginx.conf
nginx hack for multiple conditions
if ($request_uri = /) {
set $test A;
}
if ($host ~* teambox.com) {
set $test "${test}B";
}
if ($http_cookie !~* "auth_token") {
set $test "${test}C";
<ul class="links-list">
<li><a href="https://php.net" target="_blank">Офіційна документація PHP</a> </li>
<li><a href="https://www.youtube.com/channel/UCpOIUW62tnJTtpWFABxWZ8g">Codecourse</a></li>
<li><a href="https://www.youtube.com/playlist?list=PLfdtiltiRHWF0RicJb20da8nECQ1jFvla" >PHP OOP</a></li>
<li><a href="https://www.youtube.com/playlist?list=PLfdtiltiRHWHCuQl1HY1jHpD8Zxatjmjr">PHP Best Practices</a></li>
<li><a href="https://www.php-fig.org/psr" target="_blank">PHP Standards Recommendations</a></li>
<li><a href="https://phptestquestions.com" target="_blank">Online PHP test</a></li>
<li><a href="https://phptherightway.com" target="_blank">Php the right way</a></li>
<li><a href="http://www.phpthewrongway.com" target="_blank">Php the wrong way</a></li>
/ul>
@senttor
senttor / all_php.md
Last active October 22, 2019 08:28
all features php shortly

🎉 💯 ::: tip This is a tip ::: ::: danger STOP Danger zone, do not proceed :::

start
animals = ['elephant', 'lion', 'tiger', "giraffe"]
animals += ["monkey", 'dog']
animals.append("dino")
animals[6] = 'dinosaur'
['elephant', 'lion', 'tiger', 'giraffe', 'monkey', 'dog', 'dinosaur']

Symfony

routes
/**
* @Route("/lucky/number/{max}", name="app_lucky_number")
*/
 /**