Skip to content

Instantly share code, notes, and snippets.

View larsvilhuber's full-sized avatar

Lars Vilhuber larsvilhuber

View GitHub Profile
library(tidyverse)
library(ggdist)
library(patchwork)


# Single distributions ----------------------------------------------------

# Regular ggplot way
p1 <- ggplot() +
GEOID10 GEOID10_2
0102200 0102200
0101700 0102200
0102300 0102200
0102600 0102200
0102703 0102200
0102100 0102200
1203301 0102200
1211300 0102200
1209100 0102200
@danielgindi
danielgindi / delete_bitbucket_lfs_files.js
Last active February 24, 2024 01:44
Bulk delete Bitbucket LFS files
(() => {
// Run this in Chrome's console, while in Bitbucket's website and logged in
const csrftoken = document.cookie.match(/\bcsrftoken=(.*?)(?:;| |$)/)[1];
const repoName = window.__initial_state__.section.repository.currentRepository.full_name;
const expiry = 1000 * 60 * 60; // Delete only files older than an hour
let page = 1;
function iterateNext() {
fetch(`https://bitbucket.org/${repoName}/admin/lfs/file-management/?iframe=true&spa=0&page=${page}`, {