Skip to content

Instantly share code, notes, and snippets.

@smithart
smithart / weekelynote.md
Created March 8, 2025 03:26 — forked from gbrlb/weekelynote.md
Weekly Review - Worked This Week : Obsidian dataview to md table + admonition + copy button

2022-W08

  • File name must be in kkkk-'W'WW format, for example 2022-W08
  • Uncomment last line dv.paragraph(mdv); if you like to see the result inside a collapse ad-note
  • You could copy the table and delete the dataview to maintain the work today table, and the links inside the table will update, but the table will remain for future review.
  • To exclude a folder modifly dailynotes in:
let pages = dv.pages('-"dailynotes"')
@smithart
smithart / Birthday Callouts in Daily Notes.md
Created March 8, 2025 03:25 — forked from kmalcaba/Birthday Callouts in Daily Notes.md
Automatically insert birthday callouts for people's birthday in your daily notes in Obsidian

Birthday Callouts in Daily Notes

Description

Automatically insert birthday callouts for people's birthdays in your daily notes:

image

Edited 19/09/2022: Changed the alias part to use the updated structure (removed values)

@smithart
smithart / dailynote.md
Created March 8, 2025 03:17 — forked from gbrlb/dailynote.md
Daily Review - Worked Today : Obsidian dataview to md table + admonition + copy button

{{date}}

  • File name must be in yyyy-MM-dd format, for example 2022-02-23
  • Uncomment last line dv.paragraph(mdv); if you like to see the result inside a collapse ad-note
  • You could copy the table and delete the dataview to maintain the work today table, and the links inside the table will update, but the table will remain for future review.
  • To exclude a folder modifly dailynotes in:
const created_dv_rows = dv.pages('-"dailynotes"')
...
@smithart
smithart / argparse.bat
Created February 6, 2025 00:23 — forked from sgryjp/argparse.bat
Command line option (argument) parsing example for Windows batch file.
:: Command line option (argument) parsing example
::
:: Written by Suguru Yamamoto
:: <https://gist.github.com/sgryjp/045989b0f6f0089a24f257d74b8a60bd>
:: LICENSE: Public Domain
@echo off
setlocal enableextensions
:: Parse arguments
set _LEVEL=0
@smithart
smithart / ropp01.nss
Created June 1, 2024 15:27 — forked from ropp5pop/rp2401.nss
My main Config files for Nilesoft Shell. WIP after updates.
// Ropp's main config
// https://nilesoft.org/docs/functions/id
// Cheatsheet:
// Types: file|dir|drive|usb|dvd|fixed|vhd|removable|remote|back|desktop|namespace|computer|recyclebin|taskbar
// remove... mod etc
// multiple remove (find="view|sort|paste")
// all not equal to remove(where=this.name!="shit")
// type is file only remove (type="file" find="run as admin")
// modify( find = value [property = value [...] ])
//
@smithart
smithart / UniMapConfig.xml
Created March 28, 2024 16:24 — forked from joshieecs/UniMapConfig.xml
Sample UniMapConfig.xml that changes the top item in the Quick FT menu to Cancel, in order to prevent double-presses from fast traveling to Vault 76. UniMap mod: https://www.nexusmods.com/fallout76/mods/1534
<?xml version="1.0" encoding="UTF-8"?>
<UniMap Creator="Unikko" Site="https://www.nexusmods.com/fallout76/mods/1534" Ver="1">
<UniMapVersion>1.0.0-Beta10</UniMapVersion>
<MapBooks>
<!-- Map Book File(s) -->
<!-- Map Book filename with path relative to the directory containing UniMap.xml -->
<!-- If the Book number is "0", skip loading. -->
<MapBook Book="1">
@smithart
smithart / fixGitSymlinksOnWin.bat
Created December 21, 2023 03:54 — forked from Quazistax/fixGitSymlinksOnWin.bat
Batch script for converting Git symlink files to Windows file symlinks
@echo.
@echo For converting Git symlink files to Windows file symlinks.
@echo * Run in repository root as Administrator.
@echo * Handling of folder symlinks is not implemented.
@echo * Intended for windows versions Vista and above (Win 7,8)
@echo.
@echo Thanks to: http://stackoverflow.com/a/5930443/1031870
@echo v1.02 (c) 2015 Robert Benko (Quazistax), License: MIT
@echo.
@smithart
smithart / whiteboardCleaner.md
Created July 3, 2023 05:14 — forked from lelandbatey/whiteboardCleaner.md
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@smithart
smithart / LC_COLORS.md
Created June 29, 2023 02:45 — forked from thomd/LC_COLORS.md
LSCOLORS & LS_COLORS

alternatively use: http://geoff.greer.fm/lscolors/

LSCOLORS

The value of this variable describes what color to use for which attribute when colors are enabled with CLICOLOR. This string is a concatenation of pairs of the format fb, where f is the foreground color and b is the background color.

The color designators are as follows:

a black

# -*- coding: utf-8 -*-
# pylint: disable=consider-using-f-string,invalid-name,line-too-long,super-with-arguments
'''
Ranger color-scheme using `$LS_COLORS` / `dircolors`.
Originally based on: https://github.com/ranger/colorschemes/raw/a250fe866200940eb06d877a274333a2a54c34f3/ls_colors.py
Usage: copy this file to `~/.config/ranger/colorschemes'. The base color-scheme
used for non file system entries / the unfocused pane is `default`. To change it,