Skip to content

Instantly share code, notes, and snippets.

View czottmann's full-sized avatar
💭
Don't be a dick.

Carlo Zottmann czottmann

💭
Don't be a dick.
View GitHub Profile
@czottmann
czottmann / filter-list.txt
Last active September 3, 2022 18:44
Example uBlock Origin filters for hiding reaction videos on youtube.com
# YT grid view
www.youtube.com##ytd-rich-item-renderer:has(yt-formatted-string[aria-label*=" REACTION "])
www.youtube.com##ytd-rich-item-renderer:has(yt-formatted-string[aria-label*=" Reaction "])
www.youtube.com##ytd-rich-item-renderer:has(yt-formatted-string[aria-label*=" REACTS "])
www.youtube.com##ytd-rich-item-renderer:has(yt-formatted-string[aria-label*=" Reacts "])
# YT list/results view
www.youtube.com##ytd-video-renderer:has(yt-formatted-string[aria-label*=" REACTION "])
www.youtube.com##ytd-video-renderer:has(yt-formatted-string[aria-label*=" Reaction "])
www.youtube.com##ytd-video-renderer:has(yt-formatted-string[aria-label*=" REACTS "])
@czottmann
czottmann / . ̸island ̸StoreUsingComponent1.tsx
Last active December 15, 2023 20:41
Deno + Statery example
/** @jsx h */
import { h } from "preact";
import { incrementCount, state } from "../stores/whatever_store.ts";
export default function StoreUsingComponent1() {
const { counter } = state();
return (
<p>
<button onClick={incrementCount}>

Keybase proof

I hereby claim:

  • I am czottmann on github.
  • I am czottmann (https://keybase.io/czottmann) on keybase.
  • I have a public key whose fingerprint is 6C4E E45B 6197 65C0 9412 910C 76EE B33E 1BD3 A059

To claim this, I am signing this object:

@czottmann
czottmann / install.sh
Last active March 5, 2017 12:12
[WIP] Provisioning my Mac after installing a new drive & setting up Sierra
# Install Xcode command line tools
xcode-select --install
# Install & set up homebrew
ruby ./install-homebrew.rb \
&& brew doctor \
&& brew update \
&& brew cleanup \
&& brew install caskroom/cask/brew-cask \
@czottmann
czottmann / ghost-json-export-to-markdown.rb
Created January 30, 2017 18:10
Ghost export (JSON) to Markdown files (while dropping a lot of metadata)
#!/Users/carlo/.rubies/ruby-2.3.3/bin/ruby
require 'json'
require 'ostruct'
json_content = File.open('ghost.2017-01-27.json', 'r').read
nodes = JSON.parse(json_content)
posts = nodes['db'][0]['data']['posts']
figures_pattern = /<figure>\s*\!\[(.+)\]\((.+)\)\s*<figcaption>.+<\/figcaption>\s*<\/figure>/
Verifying that "czottmann.id" is my Blockstack ID. https://onename.com/czottmann
Verifying that "czottmann.id" is my Blockstack ID. https://onename.com/czottmann
Verifying that "czottmann.id" is my Blockstack ID. https://onename.com/czottmann
@czottmann
czottmann / untitled
Last active April 5, 2016 09:13
Ticket template.txt
h3. Issue description
h3. Steps to reproduce the issue
#
#
#
@czottmann
czottmann / untitled
Created April 5, 2016 09:07
Ticket template.txt
h3. Issue description
h3. Steps to reproduce the issue
#
#
#