Skip to content

Instantly share code, notes, and snippets.

View mhucka's full-sized avatar

Michael Hucka mhucka

View GitHub Profile
/*
* File name : Library/KeyBindings/DefaultKeyBinding.dict
* Description : MacOSX global key binding personalizations
* Original author(s): Michael Hucka <[email protected]>
* Organization : California Institute of Technology
*
* Some bindings were collected from TextServices.
* Original (for emacs bindings) came off the net somewhere.
*
* See here for more documentation:
@mhucka
mhucka / gist:a5d3eeb07c6e3fb679d1c01761f8f8fe
Created April 13, 2023 00:28
My conventional commits tags
build: Changes that affect the build system or external dependencies
ci: Changes to CI configuration files and scripts
docs: Documentation only changes
feat: A new feature
fix: A bug fix
perf: A code change that improves performance
refact: A code change that neither fixes a bug nor adds a feature
style: Changes that do not affect the meaning of the code
test: Adding missing tests or correcting existing tests
@mhucka
mhucka / app.py
Last active September 6, 2022 23:55
Simple web server that echoes GET and POST content to stdout
'''
app.py: Simple web server that echoes GET and POST content to stdout
Usage
-----
1. Save this content into a file named "app.py"
2. Make sure you have Flask installed: "pip3 install flask"
3. Run the following command line: "flask run"
@mhucka
mhucka / gist:567e1030c3b1de8c3b98c7d82778a957
Created September 6, 2021 15:21
Code shown in the "Default – MathJax 3" tab of the section on "Loading MathJax" at https://facelessuser.github.io/pymdown-extensions/extensions/arithmatex/#loading-mathjax
window.MathJax = {
options: {
ignoreHtmlClass: 'tex2jax_ignore',
processHtmlClass: 'tex2jax_process',
renderActions: {
find: [10, function (doc) {
for (const node of document.querySelectorAll('script[type^="math/tex"]')) {
const display = !!node.type.match(/; *mode=display/);
const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], display);
const text = document.createTextNode('');
@mhucka
mhucka / gist:59e785a315d813d14cd0258b89a2fcac
Last active February 2, 2024 22:28
Stop the Adobe Creative Cloud app from auto-launching on login on macOS
#!/bin/bash
# =============================================================================
# @file GitHub gist
# @brief stop Adobe Creative Cloud app from auto-launching on login on macOS
# @author Michael Hucka <[email protected]>
# @created 2021-08-12
# @website https://gist.github.com/mhucka/59e785a315d813d14cd0258b89a2fcac
#
# I find Adobe Creative Cloud absolutely infuriating. It installs auto
# launchers that are not in the user's login app list, and the services are
Here's some text.
Here's an image reference.
![embedded image][img1]
The assets in a file would be placed at the end of the file.
[img1]:data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUgAAAA4CAYAAACfQWFGAAAKqWlDQ1BJQ0MgUHJvZmlsZQAASImVlgdUk8kWx+f70hstgICU0DtSpEsJPXTpYCMkIYQSQkJQsaEiKrgWRERAWcBVEAUXFZDFhgULi4CC3QVZBJR1sWBDzfuAR9x977z3zvufczO/3Ny5c2cyc84FgHyXKRCkwnIApPEzhWG+HrSY2DgabhhAgAAQL9BkskQCemhoIMJgbvy73vcj0YjumE/n+vff/6vk2RwRCwAoFOEEtoiVhvBpxNpYAmEmACgB4tddmSmY5iKEFYVIgQjXTDN3ltumOWGWu2diIsI8Ef4dADyZyRRyASBNIH5aFouL5CFP78uSz+bxEXZH2JWVxGQjnIOwWVpa+jQfR9go4S95uH/LmSDNyWRypTy7lxnhvXgiQSpz9f95HP9baaniuTV0ESMnCf3CptebPreU9AAp8xOCQ+aYx56taZqTxH6Rc8wSecbNMZvpFSCdmxocOMeJPB+GNE8mI2KOhelh0vwckXf4HDOF39cSp0TSpetyGNKc2UkR0XOcxYsKnmNRSnjA9xhPqV8oDpPWnCj0ke4xTfSXffEY0vjMpAg/6R6Z32vjiGKkNbA5Xt5SPz9SGiPI9JDmF6SGSuM5qb5SvygrXDo3E7ls3+eGSs8nmekfOseAB4IAE7AyOasypwv2TBesFvK4SZk0OvJiODQGn2VhRrO2tLYCYPr9zf69E7dn3hWkKv/dt2U9cl03SySSpu8+xkkAGpHzJGG++wyR9yFrAMD1DJZYmDXrQ09/YAARyAJFoAo0kftjBMyBNbADzsAdeAN/EAIiQCxYDlggCaQBI
After drag-copying from my main library to a group library, a 5-digit number shows up in the "Extra" field in the newly-copied entry in the group library
@mhucka
mhucka / Zotero discipline choices
Created January 27, 2021 17:07
List of disciplines from the Zotero group library interface at zotero.org
Humanities
African American Studies
American Studies
Art History" selected="selected
Classics and Classical Studies
Creative Writing
Digital Humanities
Film Studies
History
History of Science and Medicine
Hello
04883a9cc9b349f4f46451862180688e4dd1e37afb3042a5d10a2316eb442cd26339d1646e336042d69b1a36aaa204de35411e98e1b55e2300a3ab74357f6cc1b3;mythic-forge-test