Skip to content

Instantly share code, notes, and snippets.

View smcnally's full-sized avatar

Steve McNally smcnally

View GitHub Profile
@smcnally
smcnally / dp2-AoVW-config.lua
Created October 15, 2022 01:31
devilspie2 config examples
-- Set stickiness by **application**
-- Terminal available on all workspaces
if (get_application_name() == "Terminal") then
stick_window();
end
-- Set stickiness and size by **window**
if (string.match(get_window_name(), "Pomodoro Logger")) then
stick_window();
set_window_size (850, 600);
@smcnally
smcnally / gist:9e839e3cb532702b47c7878b5cb2c461
Created December 30, 2020 21:42
Frase - WordPress integration
# Frase <-> WordPress integration
It works and it's clean. Some minor UX tweaks and availing of more WP API functionality would improve the process.
### Passwords are shown in the clear on Frase's Integration and Publish screens:
* minor UX issue w typing password in the clear
* more-than-minor to UX / expectations / familiar patterns
* Frase requests the password with each Frase -> WP publish event
@smcnally
smcnally / es-updates-plugin-errors.txt
Last active December 10, 2020 22:23
elasticsearch updates and plugin issues
Even with minor updates, elasticsearch often fails.
tl;dr: removing and re-installing plugins resolves the issue
> sudo /usr/share/elasticsearch/bin/elasticsearch-plugin remove ingest-attachment
> sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment
(ingest-attachment is the lone es plugin I'm currently running)
@smcnally
smcnally / gist:1647f8f055749627df9c9abf3eac790f
Created April 2, 2020 03:06
looping through all properties, through lists of properties I filter, and generally less Insane ways to do what I did here
https://github.com/smcnally/GP-IQ/commit/53afcc3a3f6dfe118e83c9feadf586c6de88991a#r38218311
let scoreLabel = props.scoreLabel;
let successImg = props.successImg;
let bio = props.bio;
// ad naseum
if (scoreLabel) {
scoreLabel = <p className="result-answer" dangerouslySetInnerHTML={{__html: props.scoreLabel}} />;
} else {