Skip to content

Instantly share code, notes, and snippets.

@valueforvalue
valueforvalue / whsfaq.md
Last active April 28, 2026 17:34
Frequently asked inventory questions.

Inventory Management: Frequently Asked Questions

General


Q: Are part numbers important?

A: Yes. It is vital for Warehouse (WHS) to know the specific part number for every item used. Please ensure you are selecting the proper item number listed on the product.

Q: Are utility knives and blades still available?

A: No. DISH has replaced them with a Safety Box Cutter. WHS will provide a replacement if you have misplaced your knife or run out of blades.

@valueforvalue
valueforvalue / fun.py
Created April 28, 2026 17:24
Inside jokes from a tool we once used at Dish Network
PHRASE = ["I bet this inventory is inaccurate.", "Ever wonder what I'm actually doing with this data?", "They'll email you later with revisions!",
"You know this guy will miss a whole job in OFSC today.", "How many of these items will you find homes for today?", "What's a part number?",
"I put that into OFSC, I'm sure of it!", "Warehouse let me run out, again.", "Sure if you can talk them into giving me non-prod.",
"Oh you needed the serial number for that?", "I thought that came off my inventory automatically!", "What's a count?", "I had one, sold it, ya'll never sent me another!",
"Oh those, those are DOA.", "I'm out of...oh wait they were in a box I hadn't opened.", "Please don't send me open LNBFS!", "I need 27 cans of wasp spray!",
"Why?", "You have the ability to make the right decision.", "Whatever that looks like.", "You have two jobs.", "Why would an ISP...", "405-444-4011 --call for a good time",
"Why did I choose the red pill?!?!", "I have no memory of this place.", "I honestly don't remember.", "
@valueforvalue
valueforvalue / cleanpdfs.ps1
Last active April 7, 2026 20:30
Powershell snippet to Delete duplicates by filename NO WARNING
# 1. First, remove the browser-renamed copies (e.g., "File (1).pdf")
Get-ChildItem -Filter "*(*).pdf" -Recurse | ForEach-Object {
$originalName = $_.Name -replace "\s\(\d+\)", ""
if (Test-Path "$($_.DirectoryName)\$originalName") {
Remove-Item $_.FullName -Force
}
}
# 2. Then, remove any remaining exact name duplicates across different folders
Get-ChildItem -Filter *.pdf -Recurse | Group-Object Name | Where-Object {$_.Count -gt 1} | ForEach-Object {
@valueforvalue
valueforvalue / Dev Console
Created April 4, 2026 23:00
Delete all Amazon Cart and Saved for Later items
function deleteAllAmazonItems() {
// This query looks for Delete buttons in BOTH the active cart and saved items
// based on the specific selectors in your page source
var query = document.querySelectorAll("#sc-active-cart input[value=Delete], #sc-saved-cart input[value=Delete], input[data-action='delete-active']");
if (query.length > 0) {
console.log('Items remaining: ' + query.length);
query[0].click();
// Wait 1 second for Amazon to update the UI, then run again