Skip to content

Instantly share code, notes, and snippets.

View alaestor's full-sized avatar

Alaestor Weissman alaestor

  • 43,-81
  • 05:19 (UTC -04:00)
View GitHub Profile
@alaestor
alaestor / daily.js
Created February 2, 2025 17:00
Obsidian daily-note navigation buttons
function mkBtnMeta(id, icon, cmd) {
return `\`\`\`\`meta-bind-button
label: ""
icon: ${icon}
hidden: true
class: ""
tooltip: ""
id: ${id}
style: primary
actions:
@alaestor
alaestor / userconfirmation.py
Created February 3, 2025 21:58
User confirmation with a message and optional default
def userConfirmation(msg: str = 'Confirm', default: bool|None = None) -> bool:
prompt = f"{msg} ({'y/n' if default is None else 'Y/n' if default else 'y/N'}): "
while True:
user_input = input(prompt).strip().lower()
if user_input in ['y', 'yes']:
return True
elif user_input in ['n', 'no']:
return False
elif default is not None:
return default
@alaestor
alaestor / 900_annoyances.css
Last active March 24, 2025 20:01
CSS theme that hides most of Discord's nonsense
/**
* @name 900 Annoyances
* @author Alaestor Weissman
* @version 0.5.0
* @description Removes junk I don't like
*/
[id = "cash-app-pay-container" ] ,
/* DM pane */
h2:has( [aria-label = "Start An Activity" ] ) ,
h2:has( [aria-label = "Start An Activity" ] ) ~ div,
@alaestor
alaestor / 100_darknacho.css
Created March 24, 2025 20:05
My css theme for discord.
/**
* @name 100 darknacho
* @author Alaestor Weissman
* @version 0.1.0
* @description Dark Orange Colorscheme with a pixel nacho
*/
.theme-light,
.theme-dark {
--background-primary: rgb(17, 17, 17);