Skip to content

Instantly share code, notes, and snippets.

@danielwrobert
danielwrobert / gh-comms-export.sh
Last active May 4, 2025 07:29
GitHub CLI data-fetching queries. These can be used to upload as context into an AI tool (Claude, ChatGPT, etc.) for summary details, questions, etc.
#!/bin/bash
YELLOW=$'\e[1;33m'
GREEN=$'\e[1;32m'
NOCOLOR=$'\e[0m'
read -r -p "Please enter the type of content you wish to export - pullRequest|issue|discussion (default = pullRequest): " type
type=${type:-pullRequest}
read -r -p "Please enter the repository owner: " owner
owner=${owner:-${owner}}
@BRAVO68WEB
BRAVO68WEB / bat2sh.sh
Created November 27, 2019 03:43
Simple converter from batch (.bat) files to shell script (.sh)
#!/usr/bin/env bash
#
# Converts Windows batch script to Linux shell script
#
# Invocation:
# ./bat2sh script.bat
#
OUTFILE=${2:-${1%%.bat}.sh}