I hereby claim:
- I am ravaelles on github.
- I am ravaelles (https://keybase.io/ravaelles) on keybase.
- I have a public key ASAoe_F65zu8GJCNYbJC6xsw04OmYkFhhR4_Nt6xzAzIWwo
To claim this, I am signing this object:
private static Unit getMineralFieldToGather(Unit worker) { | |
// Get nearest base for this unit | |
Unit base = Select.ourBases().nearestTo(worker.getPosition()); | |
if (base == null) { | |
return null; | |
} | |
// Get minerals near to our main base and sort them from closest to most distant one | |
List<Unit> minerals = (List<Unit>) Select.minerals().inRadius(12, base.getPosition()).listUnits(); |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
# Default route for Laravel projects | |
root /var/www/html/public; | |
# Add index.php to the list if you are using PHP | |
index index.html index.htm index.php; |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
# SSL configuration | |
# | |
# listen 443 ssl default_server; | |
# listen [::]:443 ssl default_server; | |
# | |
# Note: You should disable gzip for SSL traffic. |
[program:laravel-worker] | |
process_name=%(program_name)s_%(process_num)02d | |
command=php /var/www/html/artisan queue:work database --sleep=3 --tries=3 | |
autostart=true | |
autorestart=true | |
user=ubuntu | |
numprocs=10 | |
redirect_stderr=true | |
stdout_logfile=/var/www/html/worker.log |
<?php | |
namespace Jenssegers\Mongodb\Auth; | |
use DateTime; | |
use DateTimeZone; | |
use Illuminate\Auth\Passwords\DatabaseTokenRepository as BaseDatabaseTokenRepository; | |
use MongoDB\BSON\UTCDateTime; | |
class DatabaseTokenRepository extends BaseDatabaseTokenRepository { |
#!/bin/bash | |
###################################################### | |
### README ########################################### | |
###################################################### | |
### | |
### One-line Laravel Homestead MongoDB driver PHP installer. | |
### | |
### What it does: | |
### - installs some MongoDB PHP driver dependencies |
<html> | |
<head> | |
<!-- development version, includes helpful console warnings --> | |
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> | |
</head> | |
<body> |
I hereby claim:
To claim this, I am signing this object:
# Ensure to get this file: https://tinyurl.com/genericlocal | |
# And that it's placed in: /etc/nginx/sites-enabled/generic.local | |
# Also make sure to have the certificate files! See generic.local at the end. | |
# | |
# Example usage: ./newdomain.sh cool /projects/MyProject | |
# | |
# After that you should be able to visit https://cool.local | |
cp /etc/nginx/sites-enabled/generic.local /etc/nginx/sites-enabled/$1.local | |
sed -i "s/PROJECT/$1/g" /etc/nginx/sites-enabled/$1.local |
#!/bin/bash | |
###################################################### | |
### README ########################################### | |
###################################################### | |
### | |
### One-line server install script for Ubuntu. | |
### Installs Nginx + PHP5.6 + MongoDB for PHP driver. | |
### | |
### Removes previous Apache, PHP, nginx installations. |