Created
December 26, 2024 15:06
-
-
Save honoki/c4ec03e362cd355e186e4d313f0c79e7 to your computer and use it in GitHub Desktop.
Some Espanso config replacements I found useful while hacking (https://espanso.org/)
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
# see https://espanso.org/ for more info | |
matches: | |
# base64 encode whatever's on your clipboard | |
- trigger: ":be" | |
replace: "{{output}}" | |
vars: | |
- name: "clipb" | |
type: "clipboard" | |
- name: output | |
type: shell | |
params: | |
shell: wsl | |
cmd: "echo {{clipb}} | base64 -w0" | |
# base64 decode whatever's on your clipboard | |
- trigger: ":bd" | |
replace: "{{output}}" | |
vars: | |
- name: "clipb" | |
type: "clipboard" | |
- name: output | |
type: shell | |
params: | |
shell: wsl | |
cmd: "echo {{clipb}} | base64 -di" | |
# pretty print JSON on clipboard using jq | |
- trigger: ":jq" | |
replace: "{{output}}" | |
vars: | |
- name: "clipb" | |
type: "clipboard" | |
- name: output | |
type: shell | |
params: | |
shell: wsl | |
cmd: "echo '{{clipb}}' | jq" | |
# insert Hackvertor base64 and urlencode tags | |
- trigger: ":baseurl" | |
replace: "<@urlencode><@base64>$|$<@/base64><@/urlencode>" | |
# markdown code block | |
- trigger: ":cc" | |
replace: | | |
``` | |
$|$ | |
``` | |
# markdown inline code | |
- trigger: ":ic" | |
replace: "`$|$`" | |
# markdown javascript block | |
- trigger: ":js" | |
replace: | | |
```javascript | |
$|$ | |
``` | |
# markdown http block | |
- trigger: ":http" | |
replace: | | |
```http | |
$|$ | |
``` | |
# markdown link | |
- trigger: ":li" | |
replace: "[$|$]()" | |
# path to wordlists | |
- trigger: ":wl" | |
replace: "wordlists/SecLists/Discovery/Web-Content/" | |
# random wilson server URL (https://github.com/honoki/wilson-cloud-respwnder) | |
- trigger: ":wilson" | |
replace: "https://{{random}}.your-domain.tld/" | |
vars: | |
- name: random | |
type: shell | |
params: | |
shell: wsl | |
cmd: "cat /dev/urandom | tr -cd 'a-z0-9' | head -c 8" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment