Repositório para ajudar a resolver possíveis erros que acontecem durante o desenvolvimento
Melhor Terminal que achei para usar no windows e emular as funcionalidades que o linux tem !
<?php | |
function push_notification($index){ | |
$url = 'https://fcm.googleapis.com/fcm/send'; | |
$fields = array ( | |
"to" => "", | |
"priority" => "normal", | |
"collapse_key" => "Campaing News", |
#!/bin/bash | |
# https://www.shellhacks.com/ru/bash-test-if-file-exists/ | |
# https://habr.com/ru/company/ruvds/blog/325928/ | |
# http://qaru.site/questions/41427/how-to-check-if-a-file-contains-a-specific-string-using-bash | |
# http://blog.richim.org/2011/10/bash.html | |
# Check the script is being run by root | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" |