Skip to content

Instantly share code, notes, and snippets.

Mark Essel victusfate

Block or report user

Report or block victusfate

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@victusfate
victusfate / Config.ecf
Created Jun 4, 2019
customized experimental alpha 10 branch config file with internal error
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: 6
# ==================== BLOCKS, DEVICES ==========================
@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

You can’t perform that action at this time.