This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function (context, args, username){ | |
| username = context.caller; | |
| if (!args) return; | |
| const DONATION_TARGET = 'aperture' // money goes to | |
| const SHINY_TARGET = 'notarikon' // upgrades go to | |
| const ERROR_403 = "`DError 403``1 : Forbidden`\n\n`1You don't have permission to access this server`" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(context, args) {// t:#s.weyland.public | |
| let corp_list = "amal_robo.public,aon.public,archaic.public,bluebun.public,bunnybat_hut.public,context.public,core.public,cyberdine.public,empty_nest.public,etceteraco.public,futuretech.public,goodfellow.public,halperyon.public,kill_9_1.public,kill_bio.public,legion_bible.public,legion_intl.public,light.public,lowell_extermination.public,marco_polo.public,merrymoor_pharma.public,nation_of_wales.public,nogrub.public,nuutec.public,pica.public,protein_prevention.public,ros_13_update_checker.public,ros13.public,setec_gas.public,skimmerite.public,sn_w.public,soylentbean.public,subject_object.public,suborbital_airlines.public,tandoori.public,the_holy_checksum.public,turing_testing.public,tyrell.public,vacuum_rescue.public,weathernet.public,welsh_measles_info.public,weyland.public,world_pop.public".split(",") | |
| if (args && args.portal && !args.t) { | |
| return corp_list.join("\n") | |
| } | |
| if (!args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(context, args){// t:#s.weyland.members | |
| function getActiveT2() { | |
| let aa = "bunnybat_hut,cyberdine,setec_gas,soylentbean,suborbital_airlines,tandoori,tyrell,weyland".split(","), // known corp locations, without .public | |
| bb = "members,memberlogin,members_only,member_access,private,internal,priv,employees,intern,employee_login,emplogin".split(","), // known t2/t3 suffixes, e.g. memberz | |
| t2 = new Array() | |
| for (let first of aa) { | |
| for (let second of bb) { | |
| let domain = first + "." + second |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(context, args) | |
| { | |
| // swap and extend as needed | |
| const lockPriority = ['acct_nt','sn_w_glock','shfflr','sn_w_usac','l0ckjaw','l0ckbox','DATA_CHECK_V4','DATA_CHECK_V3','l0g_wr1t3r','magnara','CONSPEC','EZ40']; | |
| unloadKeys(); | |
| // sort locks to front | |
| let sortedLocks = #hs.sys.upgrades({filter:{type:"lock",loaded:true}}).sort(lockSort).map(a => a.i); | |
| let sortedArray = #hs.sys.upgrades({filter:{type:{"$ne":"lock"}}}).sort(genericSort).map(a => a.i); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(context, args) { | |
| const MIN_SLOTS_FREE = 16 | |
| let MIN_SNAX_PURCHASED = 10 | |
| const MAX_SNACK_COST = 25000 | |
| const decolor = val => val.replace(/`\w(.*?)`/g, '$1'); | |
| const input = decolor(#hs.sys.specs()); | |
| const regex = /slots:\s*(\d+)\/(\d+)/; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(context, args) // key:"iG1AmNA",str:"encryptedstring" | |
| { | |
| const HEADER = "\n`HAPERTURE SCIENCE :: DECRYPT LIBRARY`\n\n"; | |
| if (!args || !args.key || !args.str) return HEADER + `Error: Missing arguments - aperture.decrypt{key,str}\n` | |
| // Key List | |
| // Superceded in current gen by keygen | |
| const knownKeys = "vW8=JHZ,nmV/OoZ,zo+SDcY,lxKTRA9,RuU4GxP,3Vp22ee,G7Cway3,evM5YiI,Kl2vQM0,QOt5Q5E,d+OWxih,VdKCr=x,fHeh8SB,hbAy0bO,oosFtfe,p7lVZN2,DU9ak4c,DdCEq=8,KcDX6gE,IsNSiCD,y5C1a7=,L1RlVtf,WRpktD0,SvhjUmQ,dBOS=J4,nS2llSK,cO1CUuR,zcjt+dN,q1lwA3+,zsDhpTq,WcwNaD0,UBZl7NH,uoOdpB7,6buX2xO,gtZykzT,pBx4RGZ,4WmCwiZ,xT99WoF,x+POwgU,3nCzypz,bLPLUEH,6TQ2xwr,EDDkm8e,PXZYMUo,+8va+4p,x6f4lSx,H4pNHWY,DghICo0,KIHV18m,V/YCU7T,CFbpmZ=,r4uLNU6,0d/9Ir=,B7M0KnI,2iXs7XW,WKo9PbL,jb1wvUI,Ahw1omr,rWSJSZu,zyBlW3h,WZj0tb=,LvtBVEH,3Uot1kv".split(",") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(context, args) { | |
| var log = #ls.sys.access_log({count:100}); | |
| const stdlib = #fs.scripts.lib(); | |
| const security = [ | |
| ["NULLSEC", 'D'], | |
| ["LOWSEC", 'F'], | |
| ["MIDSEC", 'H'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(context, args) | |
| { | |
| if (!args || !args.lookup) | |
| return `\n\n\`HAPERTURE.SCIENCE :: DATA CHECK LORE\`\n\n` + | |
| "Please provide a question via `1lore { lookup:\"\" }`" | |
| const lookup = args.lookup.toString() | |
| const dc = new Map([ | |
| [ 'kn','fran_lee' ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(context, args) // {get:"characters"} | |
| { | |
| var lib = #fs.aperture.lib(); | |
| const load = "".split(" ") | |
| const HEADER = `\n\`HAPERTURE SCIENCE :: MAGNARA DICTIONARY\`\n\n` | |
| function getUsage() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function(context, args) | |
| { | |
| const HEADER = `\n\`HAPERTURE SCIENCE :: SYS KIT\`\n\n`; | |
| const COLUMNS = ['name','ready','cooldown','loaded']; | |
| const availableScripts = "sys.expose_balance,sys.expose_access_log,sys.expose_upgrade_log,sys.expose_upgrades,sys.xfer_upgrade_from,sys.xfer_gc_from,sys.write_log".split(",")//#hs.scripts.sys() | |
| const availableUpgrades = #hs.sys.upgrades({full:true}) | |
| const reload = (args && args.reload == true); |
NewerOlder