Skip to content

Instantly share code, notes, and snippets.

@shaunidiot
shaunidiot / genesis_public_key
Last active February 8, 2018 13:44
genesis_public_key
04faa21e8ffdb19fecbea02ae24e8cb8956650f3a4b2507935d1d28f613f5d9966fba743d39db8cafd5e35c6c54638500521b74027bb67299af5040d4e881a171d
let Crypto = require('crypto');
let Random = require('random-js');
Random = new Random(Random.engines.browserCrypto);
let Functions = require('../config/functions.js');
module.exports = class MinesManager {
constructor(SocketID, BombCount, DepositAmount, Rank = 0) {
this._SocketID = SocketID;
@shaunidiot
shaunidiot / random.md
Created October 10, 2017 07:32 — forked from joepie91/random.md
Secure random values (in Node.js)

Not all random values are created equal - for security-related code, you need a specific kind of random value.

A summary of this article, if you don't want to read the entire thing:

  • Don't use Math.random(). There are extremely few cases where Math.random() is the right answer. Don't use it, unless you've read this entire article, and determined that it's necessary for your case.
  • Don't use crypto.getRandomBytes directly. While it's a CSPRNG, it's easy to bias the result when 'transforming' it, such that the output becomes more predictable.
  • If you want to generate random tokens or API keys: Use uuid, specifically the uuid.v4() method. Avoid node-uuid - it's not the same package, and doesn't produce reliably secure random values.
  • If you want to generate random numbers in a range: Use random-number-csprng.

You should seriously consider reading the entire article, though - it's

Steam Bot Swarm

Application for managing many steam bots networked across multiple servers with an express api. Uses redis for all IPC/RPC. Each server must start a "cluster" which can start/stop any number of bots. A central main server running the "swarm" discovers/communicates with all clusters and bots through RPC. You can have any number of clusters and bots but only 1 swarm.

Controlling Bots

Once the swarm starts and cluster is up, you must first create the bot, then start it.

/createBot

Create bot with login credentials and set steam profile.

params

@shaunidiot
shaunidiot / test.js
Created September 25, 2017 08:37 — forked from igeligel/test.js
const SteamUser = require('steam-user');
const SteamTotp = require('steam-totp');
const SteamCommunity = require('steamcommunity');
const TradeOfferManager = require('steam-tradeoffer-manager');
class SteamBot {
constructor(options, clientOptions = {}, communityOptions = {}, managerOptions = {}) {
this.options = options;
this.client = new SteamUser(clientOptions);
// by: throw_away_stacy on reddit
// and yes I do birthday parties too
const WebSocket = require('websocket').w3cwebsocket;
const users = require('./users.json');
const Q = require('q');
const superagent = require('superagent');
const _ = require('highland');
const getPixels = require('get-pixels');
@shaunidiot
shaunidiot / Sublime Text 3 Build 3103 License Key - CRACK
Created August 28, 2016 06:53
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
clear
engine_no_focus_sleep "0"
snd_mute_losefocus "0"
cl_loadout_colorweaponnames "1"
voice_mixer_volume "0.700000"
// For AWP. Don't need to QQ after shoot. Press once will do
//alias +knife slot3
//alias -knife lastinv
// bind q +knife
@shaunidiot
shaunidiot / PokéPie
Last active August 29, 2015 14:21 — forked from need12648430/PokéPie
import java.util.Map;
import java.util.Comparator;
import java.util.Collections;
int index = 0;
// sprite sheet
PImage pokemon;
// current pokemon sprite
PImage current;
// current pie chart