installed php 7.1 with phpbrew
see https://github.com/phpbrew/phpbrew for installation
install php 7.1 custom stuff
phpbrew install 7.1 +cli +fpm +json +curl +mbstring +mysql +opcache +readline +xml
I needed to run php-fpm with phpbrew
{"version":"1.0.1","hasCrew":1,"isSetDefaultCrewSkillValues":0,"isUseStrictRules":1,"shipName":"Fighter X","shipConcept":"Light tough fighter","tierId":"2","frameId":"fighter","powerCoreIds":["pulse-gray"],"thrustersId":"t10","armourId":"mk-8","computerId":"basic-computer","crewQuartersId":"none","defensiveCountermeasuresId":"none","driftEngineId":"signal-basic","expansionBayIds":[],"antiHackingSystemsId":"none","antiPersonnelWeaponId":"none","hasBiometricLocks":false,"computerCountermeasures":{"alarm":false,"fakeShell":false,"feedback":false,"firewall":false,"lockout":false,"shockGridId":"none","wipe":false},"hasSelfDestructSystem":0,"hasDataNet":0,"hasHiveJoining":0,"sensorsId":"budget-short-range","shieldsId":"medium-200","shieldsByPosition":{"forward":50,"aft":50,"port":50,"starboard":50},"weaponMounts":{"forward":[{"weaponId":"coilgun","weight":"light","templateWeight":"light","isFromTemplate":true,"canBeLinked":false,"isLinked":false},{"weaponId":"tactical-nuclear-missile-launcher","weight":"light","tem |
select st_distance( | |
point(32.22174290, -110.92647900), | |
point(places.latitude, places.longitude) | |
) as distance, places.* | |
from places | |
order by distance asc | |
limit 50 |
const aMonstersByLevel = [ | |
[ | |
"Animated broom", | |
"Beetle, fire", | |
"Bloodseeker", | |
"Boar, pig", | |
"Cat, bobcat", | |
"Centipede (giant)", | |
"Dog, guard", | |
"Goblin warrior", |
const level_0 = [ | |
"Animated broom", | |
"Beetle, fire", | |
"Bloodseeker", | |
"Boar, pig", | |
"Cat, bobcat", | |
"Centipede (giant)", | |
"Dog, guard", | |
"Goblin warrior", | |
"Halfling footpad", |
const geolib = require('geolib') | |
// https://gis.stackexchange.com/questions/25877/generating-random-locations-nearby | |
const perturbedLatLon = (lat,lon,deltaM) => { | |
const r = deltaM/111300 // = 100 meters | |
const y0 = lat | |
const x0 = lon | |
const u = Math.random() | |
const v = Math.random() | |
const w = r * Math.sqrt(u) |
function btw(start,val,end) { | |
return val >= start && val <= end; | |
} | |
function randomInteger(val) { | |
return Math.floor(Math.random()*val)+1; | |
} | |
function SwordExtraordinaryPower() { | |
return "Awesome"; |
{ | |
"length": 0, | |
"prevObject": { | |
"0": { | |
"location": { | |
"href": "https://app.roll20.net/editor/", | |
"ancestorOrigins": {}, | |
"origin": "https://app.roll20.net", | |
"protocol": "https:", | |
"host": "app.roll20.net", |
installed php 7.1 with phpbrew
see https://github.com/phpbrew/phpbrew for installation
install php 7.1 custom stuff
phpbrew install 7.1 +cli +fpm +json +curl +mbstring +mysql +opcache +readline +xml
I needed to run php-fpm with phpbrew
const cleanupClientOnProcessEnd = (options) => { | |
const sAction = 'cache.cleanupClientOnProcessEnd'; | |
const name = options.name; | |
let client = options.client; | |
const killDelayTime = 500; | |
const killClient = (sType) => { | |
// console.info({action: `${name}.${sAction}.${sType}.client.quit` }); | |
client.quit(); | |
FROM rocketchat/rocket.chat | |
# needs a mongoinstance - defaults to container linking with alias 'db' | |
ENV MONGO_URL=mongodb://<user>:<pass>@<your mongo instance url> \ | |
HOME=/tmp \ | |
PORT=3000 \ | |
ROOT_URL=http://localhost:3000 \ | |
Accounts_AvatarStorePath=/app/uploads | |
EXPOSE 3000 |