Skip to content

Instantly share code, notes, and snippets.

View khaitranhq's full-sized avatar

Khai Tran khaitranhq

  • Saigon Technology
  • Da Nang, Viet Nam
View GitHub Profile
@travelhawk
travelhawk / README.md
Last active August 30, 2025 03:59
Use vagrant and ansible on Windows (WSL2)

Use vagrant and ansible on Windows (WSL2)

Making vagrant and ansible work together with virtualbox as a provider is not well documented across the documentations. Ansible's control node doesn't work on Windows. However, it works on WSL which make the installation of ansible and vagrant on WSL necessary and the access from WSL to virtualbox which is still running under the Windows host.

Requirements

  • Windows 10
  • Virtualbox
  • WSL2
@doncote
doncote / create_aws_params.sh
Last active December 21, 2023 03:53
Create multiple AWS SSM parameters from a json file
#!/bin/sh
jq -c '.[]' params.json | while read i; do
aws ssm put-parameter --cli-input-json $i
done
@lncan
lncan / x-ssh-docker
Last active October 20, 2022 04:16
SSH tunnel for Docker process
#!/usr/local/bin/zsh
function sdocker() {
E_RED='\033[0;31m'
E_GREEN='\033[0;32m'
E_YELLOW='\033[1;33m'
E_NORMAL='\033[0m'
function prinfo() {
echo "${E_GREEN}=i=${E_NORMAL} $*"
@SanderTheDragon
SanderTheDragon / postman-deb.sh
Last active October 21, 2025 20:04
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
#!/bin/sh
# SPDX-FileCopyrightText: 2017-2024 SanderTheDragon <[email protected]>
#
# SPDX-License-Identifier: MIT
arch=$(dpkg --print-architecture)
echo "Detected architecture: $arch"
case "$arch" in
@todgru
todgru / aws-ec2-redis-cli.md
Created June 12, 2014 23:01
AWS redis-cli on EC2