Skip to content

Instantly share code, notes, and snippets.

View m-sterling's full-sized avatar
💻
Workin' girl ✌🏻

Morgan Sterling m-sterling

💻
Workin' girl ✌🏻
View GitHub Profile
@m-sterling
m-sterling / basic_hack.js
Created May 16, 2025 15:57
Morgan's Bitburner scripts
// for direct use with spreader.js
// source: https://github.com/bitburner-official/bitburner-scripts/blob/master/basic_hack.js
/** @param {NS} ns */
export async function main(ns) {
const hostname = ns.self().server
while (true) {
if (ns.getServerSecurityLevel(hostname) > ns.getServerMinSecurityLevel(hostname)) {
await ns.weaken(hostname);
} else if (ns.getServerMoneyAvailable(hostname) < ns.getServerMaxMoney(hostname)) {
@m-sterling
m-sterling / markov.py
Last active November 17, 2024 21:03
Basic Markov chain using your Discord messages
# Basic Markov chain
#
#
# Prerequisites:
#
# - Discord data package
# - extract data package (specifically `messages/`) and
# run the following command in this `messages/` directory:
# $ for i in *; do mv $i/messages.json $i.json && rm -rf $i/; done
@m-sterling
m-sterling / keybase.md
Created July 1, 2023 03:58
Keybase proof

Keybase proof

I hereby claim:

  • I am m-sterling on github.
  • I am msterling (https://keybase.io/msterling) on keybase.
  • I have a public key ASDpqfhcZC-RLfPWzktk-GlnidKNt3lOkmoJ0xvX0xR84Ao

To claim this, I am signing this object:

@m-sterling
m-sterling / why_must_we_feed_him.js
Last active October 14, 2024 02:30
Password Game Paul auto-feeder
/* [Written by Morgan Rose Sterling on 30 June 2023]
*
* If you're like me, you're probably busy playing Neal Agarwal's new game "Password Game" - https://neal.fun/password-game/
* If you're *also* like me, you probably don't like having to constantly tab back every 30-40 seconds to feed that
* gods-forsaken chicken. This also prevents you from tabling the game while you take a brain break or do things IRL. In
* spite of this, I've created a script that automatically feeds the little shit that is Paul. In my opinion, this script
* ruins the spirit of the game, but when life happens, life happens.
*
* Throw this script into your JS console and never worry about that pesky chicken again! If you want to switch back to
* hard mode and feed him yourself, just type `clearInterval(feedingLoop)` in the console.