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 = () => {
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 / index.js
Created November 5, 2014 22:09
nicercast + ffmpeg
var express = require('express');
var http = require('http');
var spawn = require("child_process").spawn;
var icecast = require('icecast-stack');
var Throttle = require('throttle');
var ip = require('ip');
var ffmpeg = require('fluent-ffmpeg');
var Server = function(inStream, opts) {
var app = express();
@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"
}
@auchenberg
auchenberg / chrome-remote-inteface-edge.js
Last active November 11, 2018 09:58
Microsoft Edge Diagnostics + chrome-remote-inteface example
var launch = require('edge-diagnostics-launch')
var chrome = require('chrome-remote-interface')
var url = 'https://github.com/'
var options = {
chooseTab: function(tabs) {
var targetTab = tabs.filter(function(tab) {
return tab.url == url
})
"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"
},
@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 / 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!

{
"version": "0.1.0",
"configurations": [
{
"name": "Node",
"type": "node",
"request": "attach",
"protocol": "inspector",
"port": 9229
},
@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}"
},