- https://www.linuxtrainingacademy.com/systemd-cheat-sheet/
- https://www.linux.com/training-tutorials/understanding-and-using-systemd/
- https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units
- https://www.digitalocean.com/community/tutorials/systemd-essentials-working-with-services-units-and-the-journal
- https://www.youtube.com/watch?v=ZUX9Fx8Rwzg&index=9&list=PLCq0ZVVxGP0Y-xlum2pnhqwsrIf61J6Ka
- https://www.youtube.com/watch?v=AtEqbYTLHfs
This file contains hidden or 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
| aws acm us-east-1 list-certificates --query CertificateSummaryList[].[CertificateArn,DomainName] \ | |
| --output text | grep example.com | cut -f1 |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -e | |
| set -u | |
| set -o pipefail | |
| show_help() { | |
| cat << EOF | |
| Usage: $(basename "$0") <options> | |
| -h, --help Display help |
Do I want to die on this hill?
- Pass: This is morally good and if not handled has long term consequences
- Fail: This if self serving
Am I including everyone?
- Pass: My ego is not driving this conversation
- Fail: The people in this conversation will only tell me I'm right and not push back
This file contains hidden or 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
| # This helps run a globally installed poetry with specific versions of python. | |
| # When run from inside a poetry project the correct version is automatically | |
| # picked up from pyproject.toml. | |
| # Outside of a project (e.g. `poetry new`) a specific version can be chosen by | |
| # setting a `PYTHON` env variable. | |
| # e.g.: | |
| # | |
| # PYTHON=3.7 poetry new someproject |
This file contains hidden or 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
| private rule Macho | |
| { | |
| meta: | |
| description = "private rule to match Mach-O binaries (copied from Apple's XProtect)" | |
| condition: | |
| uint32(0) == 0xfeedface or uint32(0) == 0xcefaedfe or uint32(0) == 0xfeedfacf or uint32(0) == 0xcffaedfe or uint32(0) == 0xcafebabe or uint32(0) == 0xbebafeca | |
| } | |
| rule ZoomDaemon | |
| { |
This file contains hidden or 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
| import asyncio | |
| from typing import AsyncGenerator, Dict | |
| from fastapi import FastAPI | |
| from nats.aio.client import Client as NATS | |
| from nats.aio.client import Msg | |
| from starlette.requests import Request | |
| from starlette.responses import StreamingResponse | |
| app = FastAPI() |
This file contains hidden or 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
| " ### Configure which-key.nvim/mappings ### | |
| " quickly navigate quickfix entries | |
| nnoremap <C-n> :cnext<CR> | |
| nnoremap <C-p> :cprevious<CR> | |
| nnoremap <C-e> :lua require("telescope").extensions.file_browser.file_browser(require("telescope.themes").get_ivy())<CR> | |
| lua << EOF | |
| local wk = require("which-key") |
OlderNewer