Skip to content

Instantly share code, notes, and snippets.

@cannibalox
cannibalox / fetch-movie-data.EXCEL.yaml
Last active March 31, 2024 23:46
fetch movie info from omdb/tmdb based on a list of movies (title in colB, year in colC, as formatted by Letterboxd exports)
name: fetch-movie-data
description: >-
fetch movie info from omdb/tmdb based on a list of movies (title in colB, year
in colC, as formatted by Letterboxd exports)
host: EXCEL
api_set: {}
script:
content: |
// fetch movie metadata from a list of movies
// titles must be in colB, year in colC, similar to letterboxd csv exports
@cannibalox
cannibalox / custom.js.md
Last active March 16, 2022 23:48
logseq table resizer - custom.js / custom.css

DEPRECATED GIST: go here instead: https://github.com/cannibalox/logseq-custom-files

snippets for logseq (copy - paste to custom.js / custom.css)

  • query table view : add handles on the table headers to resize column width (not persistent)
  • replace namespace prefixes eg [[prefix/page/test]] becomes [[../test]]
@cannibalox
cannibalox / GH - is fork ahead.js
Last active January 17, 2022 12:09 — forked from scawp/UserScript.js
A UserScript to see which Github forks are ahead and other info
// ==UserScript==
// @name Github is Fork Ahead
// @version 0.1
// @description Shows how far ahead/behind a fork is from upstream when viewing fork page on github
// @match https://github.com/*/*/network/members
// ==/UserScript==
async function fetchLastCommit(partial_url) {
const response = await fetch('https://api.github.com/repos/' + partial_url + '/commits?page=1&per_page=1')
const commitJson = await response.json();
@cannibalox
cannibalox / Diigo_bigger_pic.user.js
Last active February 10, 2024 17:08
diigo - display images in better resolution in bookmarks view
// ==UserScript==
// @name Diigo bigger pic
// @namespace https://gist.github.com/cannibalox
// @updateURL https://gist.github.com/cannibalox/3498f6b678bf3dc0c6f5e5425557f102
// @version 0.2
// @description load bigger images
// @author _Ph
// @match *://*.diigo.com/*
// @icon https://www.google.com/s2/favicons?domain=diigo.com
// @grant unsafeWindow
@cannibalox
cannibalox / ls-twitter-embed.user.js
Last active February 16, 2024 05:46
[userscript] logseq twitter embed
// ==UserScript==
// @name ls-twitter-embed
// @namespace https://gist.github.com/cannibalox/e75fe2f2ecc0de08a13025a559e166cd
// @version 0.1
// @description fetch tweets from url
// @author ported to logseq from louis kirsch's dynalist userscript
// @match https://logseq.com/*
// @grant GM.xmlHttpRequest
// @run-at document-end
// @require http://code.jquery.com/jquery-3.4.1.min.js
@cannibalox
cannibalox / logseq_convert-ls-to-lsc.sh
Last active May 16, 2021 01:06
convert logseq 0.0.20 to LS-Canary
# convert logseq to LS-Canary v20210516
for file in *.md **/*.md **/**/*.md
do
# filepath=""$file""
# file_name=$(basename "$file")
echo "PROCESSING....... "$file"..."
# queryb='#+BEGIN_QUERY'
# querye='#+END_QUERY'
# ls properties
sed -i '/^:heading:/d;
@cannibalox
cannibalox / logseq-columns.css
Created January 31, 2021 02:25
custom columns/cards view for Logseq.com
/* SETTINGS: adjust width of the page and cards below*/
:root {
--main-container-width : 1800px;
--mod-cards-width: 252px;
}
/* ============================= */
/* ==== columns view layout ==== */
/* ====================-======== */
@cannibalox
cannibalox / melody96-phi-iso.kbd.json
Last active May 15, 2021 23:49
melody96-phi-iso
[
{
"name": "melody96-phi-iso"
},
[
{
"y": 0.5,
"c": "#ea0b0b"
},
"Esc",