Skip to content

Instantly share code, notes, and snippets.

View jhogendorn's full-sized avatar

Joshua Hogendorn jhogendorn

View GitHub Profile
@benkehoe
benkehoe / aws-profile-for-bashrc.sh
Last active April 4, 2025 17:16
AWS_PROFILE env var management
# MIT No Attribution
#
# Copyright 2022 Ben Kehoe
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to use, copy, modify,
# merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so.
#
@lancethomps
lancethomps / close_notifications_applescript.js
Last active April 27, 2025 01:40
AppleScript to close all notifications on macOS Big Sur, Monterey, Ventura, Sonoma, and Sequoia
function run(input, parameters) {
const appNames = [];
const skipAppNames = [];
const verbose = true;
const scriptName = 'close_notifications_applescript';
const CLEAR_ALL_ACTION = 'Clear All';
const CLEAR_ALL_ACTION_TOP = 'Clear';
const CLOSE_ACTION = 'Close';
@yaserahmady
yaserahmady / snippet.js
Created May 17, 2021 14:19
"On this day" feature for Obsidian DataviewJS
let dates = {
today: new Date(),
activeFile: new Date(app.workspace.getActiveFile().name.substring(0, 10)),
};
let dateToCompare = dates.today;
let openFileDateFormatted = formatDate(dates.activeFile);
let pages = dv.pages('"Journal"').where(onThisDay);
let columns = ["File"];
@romanhaa
romanhaa / run.sh
Last active June 14, 2024 12:43
macOS settings
# https://macos-defaults.com/
# https://www.defaults-write.com
# reset with: defaults delete -g <FEATURE>
# dock
# position
defaults write com.apple.dock "orientation" -string "right"
# icon size
defaults write com.apple.dock "tilesize" -int "36"