This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install -y apache2 | |
sudo ufw allow in "Apache Full" | |
sudo apt install -y php5.6 libapache2-mod-php5.6 php5.6-curl php5.6-gd php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-xmlrpc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Noty = require('noty'); | |
function api_login_check(response) { | |
// If we become a Acces Token back - Login Correct | |
if (response.data.access_token.length===0) { | |
localStorage.setItem('acces_token', response.data.access_token); | |
window.location.href = '../html/dashboard.html'; | |
} else { | |
new Noty({text: 'Some notification text'}).show(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var msg = ''; | |
json_body.forEach(function(match) { | |
console.log(match); | |
var msg += '1. Mac: '+match.team1_score+' : '+match.team2_score+' - GOTV: '+match.ip+':'+match.gotv_port+'\n'; | |
}); | |
console.log(msg); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace App\Service; | |
use Fiber; | |
class PHPAsyncRequests | |
{ | |
private array $requests = []; |