Skip to content

Instantly share code, notes, and snippets.

@auchenberg
auchenberg / index.js
Created March 31, 2024 23:25
Script to delete all Google Photos from console (2024)
const maxCount = 500;
const counterSelector = '.rtExYb';
const checkboxSelector = '.ckGgle[aria-checked=false]';
const photoDivSelector = ".yDSiEe.uGCjIb.zcLWac.eejsDc.TWmIyd";
const deleteButtonSelector = 'button[aria-label="Delete"]';
const confirmationButtonSelector = '#yDmH0d > div.VfPpkd-Sx9Kwc.cC1eCc.UDxLd.PzCPDd.V639qd.bvQPzd.oEOLpc.A9Uzve.VfPpkd-Sx9Kwc-OWXEXe-FNFY6c > div.VfPpkd-wzTsW.O4g5Md.iWO5td > div > div.VfPpkd-cnG4Wd.m5OsGf > div > div.VfPpkd-T0kwCb.IdSMxc > button.VfPpkd-LgbsSe.VfPpkd-LgbsSe-OWXEXe-k8QpJ.nCP5yc.AjY5Oe.LQeN7.kDryjd';
async function deleteGooglePhotos() {
// Retrieves the current count of selected photos
const getCount = () => {
"scripts": {
"start": "node index.js",
"start_azure_debug": "if [[ ${APPSVC_TUNNEL_PORT} != \"\" ]]; then node --inspect=0.0.0.0:$APPSVC_TUNNEL_PORT index.js; else npm run start; fi",
"test": "echo \"Error: no test specified\" && exit 1"
},
window.onwheel = function (e) {
e.preventDefault();
if (e.ctrlKey) {
// Your zoom/scale factor
scale -= e.deltaY * 0.01;
} else {
// Your trackpad X and Y positions
posX -= e.deltaX * 2;
posY -= e.deltaY * 2;
@auchenberg
auchenberg / readme.md
Created August 22, 2017 01:49
Repairing a Corrupted Mac OSX ExFAT Partition

Repairing a Corrupted Mac OSX ExFAT Partition

  1. Run diskutil list to identify list
  2. Run ps -ax | grep <disk> to kill all processes accessing the disk
  3. Run sudo fsck_exfat -d <disk> to repair the volumen.

Vola!

@auchenberg
auchenberg / launch.json
Created June 14, 2017 21:02
VS Code Angular cli debug config
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome with ng serve",
"url": "http://localhost:4200/#",
"webRoot": "${workspaceRoot}"
},
@auchenberg
auchenberg / launch.json
Created April 8, 2017 19:23
VS Code + iOS Web Debugging
{
"version": "0.2.0",
"configurations": [
{
"name": "iOS Web",
"type": "chrome",
"request": "attach",
"port:": 9000,
"url": "https://kenenth.io/*",
"webRoot": "${workspaceRoot}/src"
@auchenberg
auchenberg / readme.md
Last active April 4, 2017 20:50
Webpack logging in DevTools

Webpack logging in DevTools

This project aims to enable webpack logging to be surfaced in browser DevTools, through a simple extension for Webpack and/or https://github.com/webpack/webpack-dev-server

Use-cases

  1. As a developer I can see my Webpack logs and errors in the DevTools console together with the rest of my logs.

Value prop

Central place for logs and errors regardless if they are client-side, server-side or coming from the build system.

@auchenberg
auchenberg / launch.json
Created March 10, 2017 18:20
VS Code Node inspector launch
{
"configurations": [
{
"name": "Node",
"type": "node",
"request": "launch",
"protocol": "inspector",
"program": "${workspaceRoot}/server.js"
},
]
@auchenberg
auchenberg / launch.json
Last active January 29, 2019 15:10
VSCode + React debug config
{
"version": "0.2.0",
"configurations": [
{
"name": "Chrome",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000",
"webRoot": "${workspaceRoot}/src"
}
{
"version": "0.1.0",
"configurations": [
{
"name": "Node",
"type": "node",
"request": "attach",
"protocol": "inspector",
"port": 9229
},