Skip to content

Instantly share code, notes, and snippets.

View MrBretticus's full-sized avatar

Brett Errington MrBretticus

View GitHub Profile
@noelbundick
noelbundick / LICENSE
Last active May 24, 2024 09:10
Exclude WSL installations from Windows Defender realtime protection
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@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}`, {
import concurrent.futures
import os
import re
from timeit import timeit
import requests
URLS = 'urls'
@anthonygore
anthonygore / Counter.vue
Last active June 9, 2021 05:50
Vue Composition API + RxJS counter
<template>
<div>
<input v-model="input" type="number" />
<h1>{{ output }}</h1>
</div>
</template>
<script>
import { ref, watch, onUnmounted } from 'vue';
import { timer, Subject } from 'rxjs';