Skip to content

Instantly share code, notes, and snippets.

Mark Essel victusfate

View GitHub Profile
@victusfate
victusfate / Config.ecf
Last active Mar 14, 2019
Empyrion Galactic Survival Config file 9.4 - CV weapons work on planet + space, Chainsaw extended range, chops through anything, higher damage, Very fast Mining 10x speeds, Overall weapon pass, Ludicrous Mode Epic Plasma Cannon, Auto fire pistols usable from the drone, sniper/t2 actually hurt, upped most weapon damage + accuracy, added auto fire…
View Config.ecf
# How it works:
# - rename to 'Config.ecf' to activate
# - change original values of parameters as desired
# - listed parameters will overwrite the game's internal original values
# - parameters not listed (commented out / removed) will cause the game to continue using the internal ORIGINAL values
VERSION: 4
# ==================== BLOCKS, DEVICES ==========================
View Fighter.json
{"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
@victusfate
victusfate / nearest.sql
Created Oct 9, 2018
mysql ellipsoidal query
View nearest.sql
select st_distance(
point(32.22174290, -110.92647900),
point(places.latitude, places.longitude)
) as distance, places.*
from places
order by distance asc
limit 50
@victusfate
victusfate / pathfinderEncounterGenerator.js
Created Sep 7, 2018
pathfinder playtest random encounter generator, to run node pathfinderEncounterGenerator <average_party_level> <party_size>
View pathfinderEncounterGenerator.js
const aMonstersByLevel = [
[
"Animated broom",
"Beetle, fire",
"Bloodseeker",
"Boar, pig",
"Cat, bobcat",
"Centipede (giant)",
"Dog, guard",
"Goblin warrior",
@victusfate
victusfate / pathfinder_2e_playtest_bestiary.js
Created Sep 7, 2018
pathfinder playtest bestiary in js
View pathfinder_2e_playtest_bestiary.js
const level_0 = [
"Animated broom",
"Beetle, fire",
"Bloodseeker",
"Boar, pig",
"Cat, bobcat",
"Centipede (giant)",
"Dog, guard",
"Goblin warrior",
"Halfling footpad",
@victusfate
victusfate / perturbLatLon.js
Last active May 1, 2018
perturb lat,lon by fixed radius, added example for php nerds
View perturbLatLon.js
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)
@victusfate
victusfate / multi.js
Last active Apr 20, 2018
AD&D 1e magic item stats reroller (sample)
View multi.js
function btw(start,val,end) {
return val >= start && val <= end;
}
function randomInteger(val) {
return Math.floor(Math.random()*val)+1;
}
function SwordExtraordinaryPower() {
return "Awesome";
@victusfate
victusfate / brokenScrollState.js
Last active Mar 29, 2018
roll20 loss of map scroll after closing a popout character
View brokenScrollState.js
{
"length": 0,
"prevObject": {
"0": {
"location": {
"href": "https://app.roll20.net/editor/",
"ancestorOrigins": {},
"origin": "https://app.roll20.net",
"protocol": "https:",
"host": "app.roll20.net",
@victusfate
victusfate / phpSetupMac.md
Created Nov 21, 2017
setup nginx + php 7.1 on mac os high sierra
View phpSetupMac.md

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

@victusfate
victusfate / cleanup.js
Created Oct 20, 2017
clean up your redis client connections! make a call to this whenever you create a new client
View cleanup.js
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();
You can’t perform that action at this time.