Skip to content

Instantly share code, notes, and snippets.

View IAmSurajBobade's full-sized avatar
☮️
breath-in breath-out

Suraj Bobade IAmSurajBobade

☮️
breath-in breath-out
View GitHub Profile
@IAmSurajBobade
IAmSurajBobade / README
Last active August 5, 2023 20:42
python script to Execute multiple commands over SSH
Python script to perform multiple commands sequentially over SSH in a single connection
Known issue:
Execution of commands goes on one after another, even though one/many intermediate commands fails
(NOT recommended, if your commands and dependant on previous commands execution)
Kindly share your thoughts on this script.
Link to answer: https://stackoverflow.com/a/43071039/5243762
@IAmSurajBobade
IAmSurajBobade / service-status.go
Last active February 20, 2025 11:54
service-status.go is simple ui to check if listed microservices are up at the given time
package main
import (
"fmt"
"html/template"
"log"
"net/http"
"os"
"strings"
package main
import (
"encoding/csv"
"encoding/json"
"fmt"
"os"
"strings"
)
#!/bin/bash
# Check if exactly 2 arguments are provided
if [ $# -ne 2 ]; then
echo "Usage: $0 <input_directory> <output_directory>"
exit 1
fi
INPUT_DIR="$1"
OUTPUT_DIR="$2"
package main
import (
"flag"
"fmt"
"os"
"os/exec"
"strings"
"time"
)