Skip to content

Instantly share code, notes, and snippets.

@dsetzer
dsetzer / README.md
Created January 26, 2023 20:50 — forked from fahadysf/README.md
A multiprocess task broker which accepts and provides status reports for tasks using JSON REST API calls.

Multiprocess Task Broker with REST API

This gist shows and example or an asynchronous multiprocess task broker which can take job requests and report on running jobs via a minimal REST API.

Adapted from https://gist.github.com/nitaku/10d0662536f37a087e1b

All of the caveats from the original author still apply.

@dsetzer
dsetzer / Sandbox_script2_13.js
Created June 4, 2019 08:51
Sandbox_script ver2.13 by Ruzli #7111, If you liked my sandbox and want say big thanks, or want support my team, you can make donation to our team here - [1GUU7UZLAWUAA58bx9zuJiTM7eLGUoK6wi ] also join my discord server: https://discord.gg/5R2YvY
var config = {
//******************COMMON****************** */
PASTE_CASE: { label: "Paste", type: "text", value: "Paste raw text [see F12]" },
cb_globals: {
label: "Sandbox", type: "radio", value: "sandbox_mode", options: {
sandbox_mode: { label: "Sandbox Mode (if you set it to true will trigger below configuration to be used)", type: "noop", value: "" },
SETUP: { label: "Configuration Launch Case", type: "number", value: 0 },
merged: { label: "Run both in sandbox and configuration launch", type: "noop", value: "" },
}

Node Starter

Get Started

Run from a new project folder:

curl https://gist.githubusercontent.com/eezing/6aa3b59137260916ea7fdd4040faa72a/raw/node-starter.sh | sh
const baseBet = 1
const baseTarget = 1.30
const betMultiplier = 5
const stopGameAfterLoss = 2 /* Trigger will lead to drop/stop script */
const dropInsteadOfStopScript = true /* stop script or drop losses and continue play */
const changeSeed = 3 /* How much losses obtain, and then change seed to decrease chance of big streak, 0 to disable */
const lossTarget = 1.1
const lossRepeatTimes = 3
let lossCount = 0
/**
* purzi's Martingale bot V0.1
*/
const baseBet = 200 // how many satoshis to bet initially
const target = 2.75 // target multiplier
const betMultiplier = 1.7 // what to multiply the bet size by when we lose a wager
const maxBet = 200000 // Maximum bet in satoshis
var bet