Skip to content

Instantly share code, notes, and snippets.

View serpro69's full-sized avatar
🍵
breaking things when they work, so I can fix them later

Særgeir serpro69

🍵
breaking things when they work, so I can fix them later
View GitHub Profile

🔰 A beginners guide to create custom cmdline

showcase

Ever wanted to know how noice creates the cmdline or wanted your own one?

No one? Guess it's just me 🥲.

Anyway, this post is a simple tutorial for creating a basic cmdline in neovim.

@scottTomaszewski
scottTomaszewski / filtering_dv.js
Created October 2, 2023 01:27
This DataviewJS View helps to add filtering functionality to a Dataview Table in Obsidian.
/*
This DataviewJS View helps to add functionality to a Dataview Table.
THIS IS A BETA RELEASE - there are bugs and its not feature-complete
Version: v0.6.0
Given a Dataview Query, this view will
- Execute the query
- Extract the headers/columns of the result
- Render filters to adjust the Dataview table results
- Render the table results, filtering and re-rendering on filter changes
@serpro69
serpro69 / dataview-query.js
Created December 31, 2022 10:24
Obsidian Dataview - display text from header section
let pages = dv.pages('#daylog');
// Loop through pages
for (let p of pages) {
let noteText = await dv.io.load(p.file.path);
// define headers to look for
const headers = ["🧭 Personal", "💻 Work"];
headers.map((header) => {
@AnubisNekhet
AnubisNekhet / !Description.md
Last active October 13, 2024 00:19
Capacities-like index card callout

This Snippet has been moved

Please use this snippet instead.

2022

Daily Journaling

const dayInMonth = moment().format("D");
const currentMonth = moment().format("M");
var i = 1;
while (currentMonth > i) {
    var entries = entriesSum(i);
    var max = daysInMonth(i);
    var perc = entries + "/" + max;
@Signynt
Signynt / Example Lecture Note.md
Last active April 23, 2022 10:55
Notes for Hub with Dataview queries
title allDay startTime endTime date
Pathologie Vorlesung
false
29700
35100
2022-04-05

[!info]+

  • type:: Vorlesung
@Signynt
Signynt / primary-cards.css
Last active December 26, 2024 00:59
Minimal Cards snippet with tweaks for Primary theme
/* Cards snippet for Obsidian
author: @kepano
Support my work:
https://github.com/sponsors/kepano
modified by @signynt for the Primary theme */
:root {
--cards-min-width:180px;
--cards-max-width:1fr;
--cards-mobile-width:120px;
@ScottKillen
ScottKillen / print.css
Last active June 13, 2025 09:29
PDF export stylesheet for obsidian
/* Obsidian snippet to style output of pdf exports
*/
@media print {
/* set your preferred fonts here.
*/
:root {
--body-font-family: "Newsreader Text", TimesNewRoman, "Times New Roman", Times, Baskerville, Georgia, serif;
@SwitHak
SwitHak / 20211210-TLP-WHITE_LOG4J.md
Last active August 16, 2025 16:12
BlueTeam CheatSheet * Log4Shell* | Last updated: 2021-12-20 2238 UTC

Security Advisories / Bulletins / vendors Responses linked to Log4Shell (CVE-2021-44228)

Errors, typos, something to say ?

  • If you want to add a link, comment or send it to me
  • Feel free to report any mistake directly below in the comment or in DM on Twitter @SwitHak

Other great resources

  • Royce Williams list sorted by vendors responses Royce List
  • Very detailed list NCSC-NL
  • The list maintained by U.S. Cybersecurity and Infrastructure Security Agency: CISA List
@kepano
kepano / obsidian-web-clipper.js
Last active September 2, 2025 05:35
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/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */