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
| global.__NEGATIVE_INFINITY = json_parse(@'{"neginf":"@@-infinity$$"}').neginf; | |
| /// @description Stringify JSON | |
| /// @argument {Any} val | |
| /// @argument {Bool} prettify | |
| function json_stringify_fixed(val,prettify=false,firstrun=false) { | |
| static array = function(val,prettify,indent=0) { | |
| var ind = ""; |
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
| const net = require('net'); | |
| const rl = require('readline-sync'); | |
| const axios = require('axios').default; | |
| (async()=>{ | |
| const ip_data = await axios.get('https://hook.redshirt.dev/service/ip'); | |
| const {ip, port} = ip_data.data; | |
| const client = net.createConnection({host:ip,port:port}); |
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
| // needed this for work, hopefully someoen else can find use for it | |
| function to_php(obj,result_str="",stack=[]) { | |
| if (typeof(obj) != 'object') { | |
| var item = ""; | |
| item += stack[0]; | |
| for (var i=1;i<stack.length;i++) { | |
| item += `[${stack[i]}]` | |
| } | |
| item += '='; | |
| item += obj; |