Skip to content

Instantly share code, notes, and snippets.

View digitaltim-de's full-sized avatar
🖐️
Wenn Sie einen High Level Projekt haben schreiben Sie mir: info@digitaltim.de

Digitaltim | Burhan digitaltim-de

🖐️
Wenn Sie einen High Level Projekt haben schreiben Sie mir: info@digitaltim.de
View GitHub Profile
<?php
declare(strict_types=1);
namespace App\Service;
use Fiber;
class PHPAsyncRequests
{
private array $requests = [];
test
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);
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();
@digitaltim-de
digitaltim-de / install.sh without mysql
Created July 16, 2019 11:15
Installs LAMP with PHP 5.6 on Ubuntu 16.04
#!/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