Skip to content

Instantly share code, notes, and snippets.

View arifb's full-sized avatar

Arif Bandali arifb

View GitHub Profile
@arifb
arifb / start_ssh_tunnel.ps1
Created June 4, 2024 17:33
ssh tunnel powershell
$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"
@arifb
arifb / start_ssh_tunnel.sh
Created June 4, 2024 17:31
tunnel mac/linux
#!/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
@arifb
arifb / github_issues_export.rb
Created April 4, 2024 18:26
github issues export
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