Skip to content

Instantly share code, notes, and snippets.

@martinoj2009
martinoj2009 / monitor.ps1
Created February 13, 2023 11:22
PowerShell script to monitor endpoints.
param(
[string]$Location = $PSScriptRoot,
[string]$ServersFile = "$Location\servers.txt",
[int]$PingCount = 1,
[switch]$Forever,
[int]$SleepSeconds = 5
)
begin {
if($false -eq (Test-Path $ServersFile))
{
"ignition": {
"config": {},
"timeouts": {},
"version": "2.1.0"
},
"networkd": {},
"passwd": {
"users": [
{

Keybase proof

I hereby claim:

  • I am martinoj2009 on github.
  • I am majones (https://keybase.io/majones) on keybase.
  • I have a public key ASC7BxCfWqgw7Mq7VhYpUr318OOdJLMIvBcOB_3fCngjowo

To claim this, I am signing this object:

using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
@martinoj2009
martinoj2009 / BingRewardsSearchBot
Last active March 7, 2023 23:29
Bing Rewards Search Bot
Imports Microsoft.VisualBasic
Public Class BingSearchBot
Public myArray As Array
Public i As Integer
Public numberOfSearches As Integer
Public timeout As Integer
Public Declare Function GetInputState Lib "user32" () As Long
Declare Sub Sleep Lib "kernel32.dll" (ByVal Milliseconds As Integer)