Skip to content

Instantly share code, notes, and snippets.

@kepano
kepano / obsidian-web-clipper.js
Last active March 3, 2026 23:21
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@tomtclai
tomtclai / userContent.css
Last active May 5, 2023 21:07
use with firefox for dark mode, also hiding the blue line on top of active tab - see http://kb.mozillazine.org/Profile_folder#Folders for the folder location
/*! =============
@name ShadowFox
@description A universal dark theme for Firefox 57+
@version 1.6.0
@lastUpdated October 7, 2018
@author overdodactyl
@homepageURL https://overdodactyl.github.io/ShadowFox/
@sourceCode https://github.com/overdodactyl/ShadowFox
@supportURL https://github.com/overdodactyl/ShadowFox/issues
@subreddit https://www.reddit.com/r/ShadowFoxCSS/
@gmolveau
gmolveau / firefox_dark_background.md
Last active January 12, 2026 11:48
Firefox dark background / theme for new tab and loading screen

Firefox Dark Background

  • How to change the background on Firefox to a dark one on new tab / loading screen ?

Procedure

  • Type about:config in the URL bar
  • Search toolkit.legacyUserProfileCustomizations.stylesheets and double-click the field to set it to true
  • Type about:support in the URL bar
  • Look for Profile folder field and click on the open button next to it.
@azuryst
azuryst / css_sticky_fixed_footer.css
Created September 21, 2018 18:43
CSS Sticky Fixed Footer #CSS #footer #fixed
"""
Delete all saved posts / comments on your reddit account with PRAW.
See: https://lewery.ca/automation/delete-all-saved-reddit-links
Needs Python 3+ and Praw 5.3.0
"""
import argparse
import praw
@evanharmon
evanharmon / javascript.snippets
Last active September 25, 2018 21:47
nvim javascript snippets file
###############################################################################
# GENERAL
###############################################################################
extends jsx
snippet jsdoc "jsdoc comment" b
/**
* ${1:A JSDoc comment should begin with a slash and 2 asterisks}
* ${2:Inline tags should be enclosed in braces like \{@code this\}}
* ${3:@desc Block tags should always start on their own line}
*/
@uupaa
uupaa / image.resize.in.github.flavored.markdown.md
Last active March 7, 2026 04:23
image resize in github flavored markdown.

Image source

https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png

Try resize it!

  • ![](https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png | width=100)
@deanishe
deanishe / workflow-build.py
Last active September 30, 2025 07:34
Build Alfred Workflows into .alfredworkflow (zip) files
#!/usr/bin/python
# encoding: utf-8
#
# Copyright (c) 2013 deanishe@deanishe.net.
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2013-11-01
#
@patriciogonzalezvivo
patriciogonzalezvivo / PythonSetup.md
Created October 7, 2014 23:17
How to install Python correctly on Mac OSX

Install Homebrew

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

Add PATH to ~/.bash_profile and ~/.zshrc

export PATH=/usr/local/bin:$PATH
#!/bin/bash
# assign env var, if set
HB="${HOMEBREW_PREFIX:=/usr/local}"
find -L "${HB}/opt" -name 'INSTALL_RECEIPT.json' -maxdepth 2 -print > /tmp/homebrew-installed.txt
printf '' > /tmp/homebrew-installed-w-options.txt
NAME=''