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
| $LOCAL_PORT = 8088 | |
| $REMOTE_HOST = "ip.address.of.server" | |
| $REMOTE_PORT = 8088 | |
| $SSH_KEY = "~/.ssh/yourprivatekey" | |
| $SSH_USER = "admin" | |
| $JUMP_HOST = "jump.host.server.ip" | |
| # Check if the port is already forwarded | |
| $netstatOutput = netstat -aon | Select-String ":$LOCAL_PORT.*LISTENING" |
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
| #!/bin/bash | |
| LOCAL_PORT=8088 | |
| REMOTE_HOST="ip.address.of.server" | |
| REMOTE_PORT=8088 | |
| SSH_KEY="~/.ssh/yourprivatekey" | |
| SSH_USER="admin" | |
| JUMP_HOST="jump.host.server.ip" | |
| # Check if the port is already forwarded |
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
| require 'http' | |
| require 'csv' | |
| require 'json' | |
| # Replace 'your_username' and 'your_repo' with your GitHub username and repository name | |
| username = 'your_username' | |
| repo = 'your_repo' | |
| token = 'your_github_access_token' # Highly recommended for authenticated requests | |
| # GitHub API URL for fetching issues from a repository |