This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// This would go in $sublime_dir/Packages/User/GitGutter.sublime-settings | |
{ | |
"live_mode": false, | |
"focus_change_mode": false | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Listed generated on 2021-08-07 at 3:45am EST | |
curl -s -X GET -H "Content-Type: application/json" \ | |
-H "Authorization: Bearer ${DIGITALOCEAN_ACCESS_TOKEN}" \ | |
"https://api.digitalocean.com/v2/images?page=1&per_page=100&type=distribution" \ | |
| jq '.images[].slug' | sort | |
"centos-7-x64" | |
"centos-8-x64" | |
"centos-stream-8-x64" | |
"debian-10-x64" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Ansible role test shim. | |
# | |
# Taken from this gist by Jeff Geerling on September 9th 2023: | |
# https://gist.github.com/geerlingguy/73ef1e5ee45d8694570f334be385e181 | |
# | |
# Usage: [OPTIONS] ./tests/test.sh | |
# - distro: a supported Docker distro version (default = "ubuntu2204") | |
# - playbook: a playbook in the tests directory (default = "test.yml") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: help | |
help: | |
@printf "%s\n" "Useful targets:" | |
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m make %-15s\033[0m %s\n", $$1, $$2}' | |
.PHONY: db-reset | |
db-reset: ## Reset the database | |
docker-compose exec web flask db reset --with-testdb | |
.PHONY: routes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 0 * * * root /usr/local/bin/sendy-backup > /dev/null 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Create the file inc-file-names anywhere on your dev box | |
touch inc-file-names | |
# 2. Make it executable | |
chmod +x inc-file-names | |
# 3. Copy the script below into the file you just created | |
# 4. Move it onto your system path | |
sudo mv inc-file-names /usr/local/bin |