Skip to content

Instantly share code, notes, and snippets.

View YarGnawh's full-sized avatar

Ray Hwang YarGnawh

View GitHub Profile
@YarGnawh
YarGnawh / lamp.sh
Last active June 15, 2018 17:22
Initialization script for CodeAnywhere container
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes --force-yes -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install language-pack-en-base
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install python-software-properties
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install software-properties-common
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install bzip2 build-essential apt-transport-https
# Install node
@YarGnawh
YarGnawh / poke.sh
Created March 29, 2025 15:50
why touch when you can poke
#!/bin/bash
# poke - enhanced touch command that creates directories if needed
# Usage: poke file_path
# Installation: Create `poke` file in `/usr/local/bin` and `chmod +x`
if [ $# -eq 0 ]; then
echo "Usage: poke <file_path>"
exit 1
fi
@YarGnawh
YarGnawh / get_changeset_diff.sh
Last active August 6, 2025 14:23
Azure DevOps TFVC Changeset Diff Generator
#!/bin/bash
# Azure DevOps TFVC Changeset Diff Generator
#
# A bash script that generates unified diff patches from Azure DevOps TFVC (Team Foundation Version Control) changesets. This tool solves the common problem of extracting readable diffs from TFVC changesets, which Azure DevOps doesn't provide natively through # its API.
#
# Features
#
# - Fetches all files modified in a specific TFVC changeset
# - Retrieves both current and previous versions of each file