Skip to content

Instantly share code, notes, and snippets.

@aaratha
aaratha / config.org
Last active May 1, 2026 23:35
A few package configs that make emacs look nice

Pretty Emacs Configs

Introduction

The following are a few package configs I use to make emacs look nice. This is not a drop-in solution. You will have to integrate my configs into your own setup manually.

I used the Emacs-Kick config as a starter template and made loads of edits manually and with LLMs for some custom functions. It works well for me, but of course be careful copying and pasting.

Enjoy!

@steviecoaster
steviecoaster / Explaination.md
Last active October 9, 2025 18:40
Use a module from another machine with Implicit remoting

Implicit Remoting explained

Implicit remoting allows you to load a module from a remote session and execute it "locally". What you are actually doing is running a proxy command. The actual function executes on the remote session, and the data is returned to you locally.

This approach does have the same caveats as running a command directly via Invoke-Command in that it is deserialized and rehydrated, losing any available methods on the object.

This is still a hugely useful trick, and I highly recommend using a prefix so you know in your code when something is running on the remote system. For example Get-ADComputer may become Get-RemoteADComputer. You can specify whatever prefix you want, just make it

@paultheman
paultheman / mac_keyremapping.md
Last active May 5, 2026 09:56
Guide on how to remap Keyboard keys on macOS

Guide on how to remap Keyboard keys on macOS

Update 17.10.2024: macOS 15 no longer requires root privileges for hidutil, you need to add hidutil and Terminal to 'Input Monitoring' in Settings/Privacy & Security tab.

Update 13.04.2024: On macOS 14.2 hidutil requires root privileges.

If you have a mac with an INT (ISO) keyboard you might want to change the ± key to ~. During my research I found that the information on this topic is not at all centralized. I prefer this option because it does not involve installing new software.

With macOS 10.12 Sierra Apple introduced hidutil as a tool to remap keyboard keys. See TN2450.

@mskorzhinskiy
mskorzhinskiy / org-attach-id-human-readable.el
Created January 23, 2023 07:09
My take on generating human-readable attach id's for org-attach
(use-package ffap)
(defun sanitze-string (str)
"Returns a string which contains only a-zA-Z0-9 with single dashes
replacing all other characters in-between them.
Some parts were copied and adapted from org-hugo-slug
from https://github.com/kaushalmodi/ox-hugo (GPLv3)."
(let* (;; Remove "<FOO>..</FOO>" HTML tags if present.
(str (replace-regexp-in-string "<\\(?1:[a-z]+\\)[^>]*>.*</\\1>" "" str))
@wisq
wisq / quicklook.scpt
Created October 21, 2022 02:21
MacOS "Quick Look" from the command line, with full editing capability, unlike `qlmanage -p`
on run argv
if (count of argv) = 1 then
set p to (item 1 of argv) as text
else
log "(development mode)"
set p to "/tmp/test.png"
end if
# Reveal the file in Finder.
# If QuickLook is already open, this will change it to the new file.
@RaRaRatchet
RaRaRatchet / Get-SCCMCollectionsInFolder.ps1
Last active March 9, 2026 18:11
[Get All DeviceCollections in a Folder ] Get Folder Details and get Collections in a Folder #powershell #ConfigurationManager #SCCM
Function Get-SCCMCollectionsInFolder
{
<#
.SYNOPSIS
Returns all the collections located in the specified folder ID.
.DESCRIPTION
Connects to the specified site server and retrieves the details of the specified folder as output that in term can be used for other functions.
This function is usable for Device or User collections any other items will need different WMI queries and these would be best added to a seperate function.
.EXAMPLE
@A6GibKm
A6GibKm / mu4e.md
Last active November 15, 2025 16:32
Read your emails with mu4e

Connecting emacs and Protonmail Bridge

This guide will cover the basics on how to integrate emacs with protonmail-bridge using

Configuring mbsync

@enpassant
enpassant / vimwiki2html.md
Last active December 9, 2025 23:02
Convert VimWiki to HTML (markdown, mediawiki)

With this wiki2html.sh bash script and pandoc program, you can convert markdown to html.

Usage: In the vim list section of the .vimrcfile, include options:

let g:vimwiki_list = [{'path': ‘your_wiki_place',
  \ 'path_html': ‘wiki_html_location’,
  \ 'syntax': 'markdown',
 \ 'ext': '.md',
@kalinchernev
kalinchernev / rotate-screen.sh
Last active August 22, 2024 03:48 — forked from rubo77/rotate-screen.sh
Bind to a key to rotate the screen of a convertible laptop
#!/bin/bash
# This script rotates the screen and touchscreen input 90 degrees each time it is called,
# also disables the touchpad, and enables the virtual keyboard accordingly
# by Ruben Barkow: https://gist.github.com/rubo77/daa262e0229f6e398766
#### configuration
# find your Touchscreen and Touchpad device with `xinput`
TouchscreenDevice='Wacom ISDv4 E6 Finger touch'
TouchpadDevice='SynPS/2 Synaptics TouchPad'