Skip to content

Instantly share code, notes, and snippets.

@paulbrodner
paulbrodner / select-all-google-photos.js
Last active June 25, 2025 14:26
select all google photos if you want to delete them in bulk!
// minimize the view and run in console
document.querySelectorAll('div[aria-label*="Select all photos"]').forEach(div => {
// Only click if not already selected (check for common selection indicators)
const isSelected = div.getAttribute('aria-checked') === 'true' ||
div.classList.contains('selected') ||
div.classList.contains('active') ||
div.classList.contains('checked');
if (!isSelected) {
div.click();
#!/bin/bash
#==============================================================================
# Claude Code Quick Start Setup Script
#==============================================================================
#
# DESCRIPTION:
# This script automates the setup of Claude Code on macOS, including all
# required dependencies and configuration. It installs Homebrew, Node.js,
# AWS CLI, Claude Code, and configures AWS SSO integration.
  1. always use plan mode (shift-tab) first
  2. always generate a CLAUDE.md file (like cursor rules)
    • call /init (this will generate the file)
    • make sure is up-to-date
  3. commit often and use git as a checkpoint
    • yes, claude IDE has a "Restore Checpoint" feature and it will go to that point in time
    • but I use git on Claude Code (this doesn't have "Restore" feature)
      • i often git commit if everything looks good
      • or discard it!
    • NEED TO TRY: seem this can interact with git (maybe we can instruct to commit after each feature is added)
# 🚀 Refined "Delete First, Code Last" Rules - Practical Edition
> **Core Philosophy: Question every line of code. Prefer simplicity over cleverness, but don't sacrifice clarity for brevity.**
## 🎯 **The Golden Question**
Before writing any code: **"What's the simplest way to solve this that I can still understand in 6 months?"**
---
## 🏆 **6 Practical Principles** (Guidelines, Not Laws)

TA Architect

  • is
    • the highest testing technical authority on test automation side
    • a senior test role with a wide strategic scope
    • an influencer among engineers, a good ambasador to the business
    • is a leader (not a manager with other responsabilities)
    • someone who build business casess around how implementing automation will benefit the customer and improve business process

Key Accountabilities

#!/usr/bin/python3
import requests, string
def login(char):
response = requests.post(
"http://natas15.natas.labs.overthewire.org/index.php",
auth=("natas15", "AwWj0w5cvxrZiONgZ9J5stNVkmxdk39J"),
headers={
"Content-Type": "application/x-www-form-urlencoded",
# based on https://docs.docker.com/engine/install/ubuntu/
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce
# call this as:
apiVersion: v1
kind: Template
metadata:
creationTimestamp: null
name: test
objects:
- apiVersion: v1
kind: Pod
metadata:
annotations:
apiVersion: v1
kind: DeploymentConfig
metadata:
name: hello-world-app
spec:
replicas: 1
selector:
deploymentconfig: hello-world-app
strategy:
type: Recreate