Skip to content

Instantly share code, notes, and snippets.

View ac-schmitt's full-sized avatar

Alexander Schmitt ac-schmitt

View GitHub Profile
@ac-schmitt
ac-schmitt / MS-Teams-Mute.ahk
Last active January 27, 2021 13:49
My AutoHotKey script for a global keyboard shurtcut (Win+Y) to mute/unmute MS Teams
LWin & Y::
#HotkeyInterval 200
WinGet, active_id, ID, A
WinActivate, ahk_exe Teams.exe
Send ^+m
WinActivate, ahk_id %active_id%
return
@ac-schmitt
ac-schmitt / settings.json
Last active July 17, 2020 07:47
Windows Terminal settings incl. my Monokai scheme
// This file was initially generated by Windows Terminal 1.0.1811.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@ac-schmitt
ac-schmitt / .hyper.js
Created May 9, 2019 12:29
Hyper configuration
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@ac-schmitt
ac-schmitt / cc_counter.bas
Created October 27, 2018 13:43
CC-Mail counter for Outlook
Attribute VB_Name = "cc_counter"
Option Explicit
Sub cc_counter()
Dim ns As NameSpace
Dim myStore As Store
Dim rootFolder As MAPIFolder
Dim subFolder As MAPIFolder
Dim item As Object
@ac-schmitt
ac-schmitt / myagnoster.json
Created January 11, 2018 14:30
My Agnoster theme for pshazz (to use with my concfg monokai theme)
{
"comment": "
--------------------------
This theme requires this Consolas font patched for Powerline:
https://github.com/runsisi/consolas-font-for-powerline
You'll also have to enable it for console usage:
http://www.techrepublic.com/blog/windows-and-office/quick-tip-add-fonts-to-the-command-prompt/
--------------------------
",
"plugins": [ "git", "ssh", "z", "aliases" ],
@ac-schmitt
ac-schmitt / monokai-cmder.json
Created January 11, 2018 14:17
Monokai cmder Theme for concfg
{
"cursor_size": "small",
"font_face": "Source Code Pro",
"font_size": "0x16",
"popup_colors": "dark_magenta,white",
"dark_gray": "#7c7c7c",
"screen_colors": "gray,black",
"dark_green": "#74aa04",
"command_history_no_duplication": false,
"window_size": "120x40",
@ac-schmitt
ac-schmitt / rmemptydir.sh
Last active September 25, 2016 12:38
Recursive remove empty directories
#!/bin/sh
# Remove MacOS .DS_Store (otherwise directories are truely not empty)
find . -name '.DS_Store' -exec rm {} \;
# Finally, get rid of empty folders
find . -depth -type d -empty -exec rmdir {} \;
@ac-schmitt
ac-schmitt / fndbrknlns.sh
Last active September 24, 2016 18:24
Find broken symlinks
#!/bin/sh
find . -type l ! -exec test -r {} \; -print