Skip to content

Instantly share code, notes, and snippets.

View TheRemote's full-sized avatar

James A. Chambers TheRemote

View GitHub Profile
@TheRemote
TheRemote / CoreKeeperFishing.ps1
Created March 2, 2025 15:52
Core Keeper Fishing Bot
# https://jamesachambers.com/making-a-core-keeper-fishing-bot-using-ai-grok-3/
# Define the MouseSimulator class to handle mouse events
Add-Type -TypeDefinition @"
using System;
using System.Runtime.InteropServices;
public class MouseSimulator {
[DllImport("user32.dll", SetLastError = true)]
public static extern void mouse_event(uint dwFlags, uint dx, uint dy, uint dwData, IntPtr dwExtraInfo);
@TheRemote
TheRemote / measurepi.sh
Last active November 29, 2024 12:31
Measure Raspberry Pi CPU / GPU / Core / SD clock speeds and check whether you are undervolted
#!/bin/bash
# This bash script outputs the status of your Pi and checks whether you are being throttled for undervoltage and gives you your temperature
# Article and discussion at https://jamesachambers.com/measure-raspberry-pi-undervoltage-true-clock-speeds/
# Author James A Chambers 6-6-17
# Output current configuration
vcgencmd get_config int | egrep "(arm|core|gpu|sdram)_freq|over_volt"
# Measure clock speeds
for src in arm core h264 isp v3d; do echo -e "$src:\t$(vcgencmd measure_clock $src)"; done