Skip to content

Instantly share code, notes, and snippets.

View drhayes's full-sized avatar
🐱

David Hayes drhayes

🐱
View GitHub Profile
I'm proving something for https://drhayes.proven.lol.
Here it is: proven853dc3
@drhayes
drhayes / change-background.sh
Last active January 31, 2022 15:35
Script to change the background to a random file in my backgrounds directory.
#! /usr/bin/env zsh
DISPLAY=:0 feh --recursive --randomize --bg-fill ~/Pictures/backgrounds/* &> /dev/null
@drhayes
drhayes / fetch-simple-desktop.sh
Last active January 31, 2022 15:35
Automatically download the latest Simple Desktop to a backgrounds-stage directory.
#! /usr/bin/env bash
pushd ~/Dropbox/Pictures/backgrounds-stage
http --print b https://feeds.feedburner.com/simpledesktops | tq 'item description' --text | tq 'img' --attr src --squash | head -1 | wget --no-clobber --input-file=-
@drhayes
drhayes / .editorconfig
Created July 16, 2021 16:05
My personal root .editorconfig.
root = true
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
[*.{js,py}]
charset = utf-8
@drhayes
drhayes / squiggly-line.svg
Created July 15, 2021 20:42
A neato, animated squiggly line that could repeat horizontally.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@drhayes
drhayes / markdown.json
Created June 14, 2021 15:27
My current custom markdown snippets for Visual Studio Code.
{
"Manual excerpt split": {
"prefix": "more",
"body": [
"<!--more-->"
],
"description": "A properly formatted content summary split which I can never remember."
},
"New note template": {
"prefix": "newnote",
@drhayes
drhayes / lua.json
Created June 14, 2021 15:26
My current custom lua snippets for Visual Studio Code.
{
// Place your snippets for lua here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@drhayes
drhayes / javascript.json
Created June 14, 2021 15:25
My current custom JavaScript snippets for Visual Studio Code.
{
"Print to console": {
"prefix": "clog",
"body": [
"console.log($1);$0"
],
"description": "Console log"
},
"CommonJS require": {
"prefix": "creq",
@drhayes
drhayes / work-nerds-code-of-conduct.md
Last active May 26, 2021 22:03
The Code of Conduct for the Discord server Work Nerds

Welcome to the Work Nerds community!

In order to foster a welcoming and inclusive environment for everyone, we ask all members to read and agree to our Code of Conduct when joining. This Code of Conduct is a living document and will be updated from time to time as necessary. The current version can always be found at https://drhay.es/work-nerds-coc. All changes will be announced in the #announcements channel of our Discord server as they are made. Agreeing to the Code of Conduct implies that you will monitor these changes and revoke your agreement if and when you no longer agree.

Our Pledge

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible

const { exec } = require('child_process');
const verbData = {
chore: {
label: 'Chores',
renderOrder: 4,
},
feat: {
label: 'New Features',
renderOrder: 0,