Skip to content

Instantly share code, notes, and snippets.

@BorisAnthony
BorisAnthony / mastodon.css
Last active December 23, 2022 14:39
CSS for Mastodon - 2022-12-23
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@200;300;400;600&display=swap');
body {
font-family: 'Source Sans Pro', sans-serif;
font-size: 12px;
font-weight: 400;
}
.getting-started__trends,

PostSpectacular Manifesto

Literacy

  • Learn by doing
    • Take away a sound understanding of new concepts learned at the end of each activity
    • Transform knowledge into intuition
    • Share your learnings
    • Experiment to avoid/overcome procrastination
  • Go further, Carpe noctem
/* -------------------------------
This is a custom CSS to override the styling on
https://nftbiker.xyz/follow
Use an extension like Stylish on Chrome or Firefox, create a new "style" and paste this in.
For me it only works if you set the "Applies to" URL to the full one including the wallet you are following.
WARNING: This actually hides a few little bits of functionality I never found useful.
These include:
- textfile input for following multiple wallets
@BorisAnthony
BorisAnthony / gist:f3b192cd0f0cd74f76550da9d6cf7507
Last active December 23, 2022 02:05
Twitter dot com - User CSS - Quiet!
/* Updated 2022-12-23 */
/* Set some base color variable here. Default is a deep red. */
:root {
--keycolor: #900;
--keycolor-active: #f00;
--keycolor-hover: #c00;
}
/*a[data-testid="AppTabBar_Explore_Link"],*/
a[aria-label="Bookmarks"],
@BorisAnthony
BorisAnthony / dm-toilet-paper.js
Created October 28, 2020 11:55 — forked from marco79cgn/dm-toilet-paper.js
iOS Widget, das die Anzahl an Klopapier Packungen in deiner nächsten dm Drogerie anzeigt (für die scriptable.app)
// dm Klopapier Widget
//
// Copyright (C) 2020 by marco79 <marco79cgn@gmail.com>
//
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
// IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
Jekyll::Hooks.register :documents, :pre_render do |doc|
# We want to catch all pages, posts, docs in collections
doc.content = doc.content.gsub(
/\=\=(.*)\=\=/i,
'<mark markdown="span">\1</mark>'
)
# setting the markdown="span" flag tells Kramdown to parse what's between the tags,
# otherwise it is ignored.
end
@BorisAnthony
BorisAnthony / jekyll-plugin-highlight.2.rb
Created July 28, 2020 07:35
A second attempt at a little Jekyll plugin to parse ==text== into <mark>text</mark>
Jekyll::Hooks.register :pages, :pre_render do |page|
page.content = page.content.gsub(
/\=\=(.*)\=\=/i,
'<mark>\1</mark>'
)
end
@BorisAnthony
BorisAnthony / jekyll-plugin-highlight.rb
Created July 27, 2020 12:38
A first attempt at a little Jekyll plugin to parse ==text== into <mark>text</mark>
class HighlightsGenerator < Jekyll::Generator
def generate(site)
all_docs = site.documents
# Converts Markdown-plus ==text== to <mark>text</mark>
all_docs.each do |current_note|
current_note.content = current_note.content.gsub(
/\=\=(.*)\=\=/i,
'<mark>\1</mark>'
a[data-testid="AppTabBar_Explore_Link"],
a[aria-label="Bookmarks"],
aside[aria-label="Who to follow"],
div[aria-label="Timeline: Trending now"],
#react-root > div > div > div > main > div > div.css-1dbjc4n.r-aqfbo4.r-1niwhzg.r-16y2uox > div > div.css-1dbjc4n.r-aqfbo4.r-1joea0r.r-zso239.r-1ovo9ad > div > div.css-1dbjc4n.r-1xcajam.r-ipm5af.r-1ovo9ad > div > div > div > div > div:nth-child(4){
display:none;
}
div[data-testid="sidebarColumn"] {
visibility: hidden;
}
@BorisAnthony
BorisAnthony / Scheduled updates for homebrew - README.md
Last active June 24, 2017 11:35 — forked from denvazh/README.md
Scheduled update for homebrew

Scheduled updates for homebrew

This two launchdaemon scripts provide scheduled updates and upgrade for homebrew packages.

It will run in the following way:

  • brew update every day at 12:10
  • brew upgrade every day at 12:20

How to install