Code Monkey home page Code Monkey logo

microsoft-rewards-bot's Introduction

Ever since the takedown of the original GitHub repository, this image has been migrated over to use the GitLab one. But it seems to me that the GitLab one is not as updated and has multiple open issues.

create and publish docker image Docker image size GitHub code size in bytes

microsoft-rewards-bot

farshadz1997/Microsoft-Rewards-bot but dockerized.

docker-cli

docker run --rm -it \
  --shm-size 4g \
  -v "$PWD"/accounts.json:/app/accounts.json \
  ghcr.io/haq/microsoft-rewards-bot

recommended usage

compose.yml

services:

  rewards-home:
    image: ghcr.io/haq/microsoft-rewards-bot
    container_name: rewards_home
    shm_size: 4gb
    volumes:
     - ./accounts.json:/app/accounts.json
    restart: no

  rewards-vpn:
    image: ghcr.io/haq/microsoft-rewards-bot
    container_name: rewards_vpn
    network_mode: service:wireguard
    shm_size: 4gb
    depends_on:
      - wireguard
    volumes:
     - ./accounts.json:/app/accounts.json
    restart: no

  wireguard:
    image: lscr.io/linuxserver/wireguard
    container_name: wireguard
    cap_add:
      - NET_ADMIN
      - SYS_MODULE
    sysctls:
      - net.ipv4.conf.all.src_valid_mark=1
      - net.ipv4.ip_forward=1
      - net.ipv6.conf.all.disable_ipv6=1
    volumes:
      - ./wg0.conf:/config/wg0.conf
    restart: unless-stopped

accounts.json

[
  {
    "username": "[email protected]",
    "password": "password-1"
  },
  {
    "username": "[email protected]",
    "password": "password-2"
  },
  {
    "username": "[email protected]",
    "password": "password-3"
  }
]

wg0.conf

[Interface]
PrivateKey =
Address =
DNS =

[Peer]
PublicKey =
PresharedKey =
AllowedIPs = 0.0.0.0/0
PersistentKeepalive = 25
Endpoint =

crontab

  • It is recommended that you randomize the time each script is run.
  • Also take note of how long the script takes to run. There should be no overlap.
0 4 * * * docker start rewards_home
0 5 * * * docker start rewards_vpn

microsoft-rewards-bot's People

Contributors

alceasan avatar haq avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.