Skip to content

Instantly share code, notes, and snippets.

View aolney's full-sized avatar

Andrew M Olney aolney

View GitHub Profile
@aolney
aolney / notebook-lm-uncheck-all-sources.js
Created October 27, 2026 19:29
Bookmarklet to uncheck all sources in notebooklm
javascript:(function(){
document.querySelectorAll('input[type="checkbox"][aria-label*="source"], .mat-mdc-checkbox input, [role="checkbox"]').forEach(checkbox => {
if (checkbox.checked || checkbox.getAttribute('aria-checked') === 'true') {
checkbox.click();
}
});
console.log("Attempted to deselect all visible sources.");
})();
@aolney
aolney / google-search-ai-to-clipboard-markdown.js
Last active October 10, 2026 15:51
CHROME bookmarklet to copy google search ai chat MARKDOWN (multi turn) to clipboard, to paste into another LLM
javascript: (async function () {
const chunks = [];
chunks.push(
"The text below is our prior chat context. Read through it so you know where we left off, and let me know when you're ready to proceed.",
);
const buttons = Array.from(
document.querySelectorAll('button[aria-label^="Copy"]'),
).filter((btn) => {
const label = btn.getAttribute("aria-label") || "";
return !label.startsWith("Copy code");
@aolney
aolney / google-search-ai-to-clipboard.js
Last active October 10, 2026 15:52
Bookmarklet to copy google search ai chat (multi turn) to clipboard, to paste into another LLM
javascript:(function() {
let chunks = [];
chunks.push("The text below is our prior chat context. Read through it so you know where we left off, and let me know when you're ready to proceed.");
const startPhrase = "AI Mode Conversation";
let startFlag = 0;
const stopPhrase = "AI can make mistakes";
const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT, {
acceptNode: function(node) {
@aolney
aolney / discord_open_in_app.js
Last active September 27, 2026 17:31
discord open link in app
javascript:(function(){
var url=window.location.href;
if(url.includes('discord.com/login?redirect_to=')){
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const encodedPath = urlParams.get('redirect_to');
const path = decodeURI(encodedPath);
var newUrl='discord://discordapp.com'+path;
console.log(newUrl);
window.location.href=newUrl;
@aolney
aolney / gbeta_plotheight.css
Created July 22, 2026 17:17
Google finance beta increase plot height
/* Force the outer container to 500px */
.LpEgVb.LO3Qbb {
height: 500px !important;
}
@aolney
aolney / login.html
Created February 18, 2021 18:08
Autologin for JupyterHub by query string
{% extends "page.html" %}
{% if announcement_login %}
{% set announcement = announcement_login %}
{% endif %}
{% block login_widget %}
{% endblock %}
{% block main %}
@aolney
aolney / spacy.sh
Created September 29, 2019 15:45
Spacy docker launcher
#!/bin/bash
sudo docker run --restart always -p 8001:80 aolney/spacyapi:en_v2
@aolney
aolney / allennlp.sh
Created September 29, 2019 15:44
AllenNLP demo docker launcher with custom model file
#!/bin/bash
mkdir -p $HOME/.allennlp
sudo docker run --restart always -p 8000:8000 -v $HOME/.allennlp:/root/.allennlp allennlp/demo --demo-dir /stage/allennlp/demo --models-file /root/.allennlp/custom_models.json
@aolney
aolney / pd-midi.sh
Created August 19, 2019 17:22
Launch a virtual midi keyboard with pure data and connect them
#!/bin/bash
vkeybd &
puredata -alsamidi -mididev 1 &
aconnectgui &
#!/bin/bash
echo "Do not run as root; abort if you did"
#install vncviewer
sudo apt -y install apt-utils tigervnc-viewer
#install mono and fsharp
sudo apt install -y apt-transport-https dirmngr gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF