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 python3 | |
| # Simple python script to manage my Cloudflare Email routes via API | |
| # API Documentation: https://developers.cloudflare.com/api/operations/email-routing-routing-rules-list-routing-rules | |
| import requests | |
| import sys | |
| CF_API_TOKEN = "YOUR_CF_API_TOKEN" | |
| CF_ACCOUNT_ID = "YOUR_CF_ACCOUNT_ID" |
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
| --- | |
| ignore: | |
| - .git | |
| - .gitignore | |
| - README.md | |
| - install | |
| - install.ignore.yaml |
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
| Simple python script for remotely backup Fortigates using SSH. | |
| The public key must be previously configured in your fortigate. | |
| ``` | |
| config system admin | |
| edit admin | |
| set ssh-public-key1 "ssh-rsa your-key" | |
| end | |
| end | |
| ``` |
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
| /** | |
| * Return your IPv4 or IPv6 address | |
| */ | |
| addEventListener('fetch', event => { | |
| event.respondWith(handleRequest(event.request)) | |
| }) | |
| /** | |
| * Respond to the request |
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
| if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
| source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
| fi | |
| export TERM="xterm-256color" | |
| ZSH_THEME="powerlevel10k/powerlevel10k" | |
| POWERLEVEL9K_MODE="nerdfont-complete" | |
| DISABLE_UNTRACKED_FILES_DIRTY="true" |