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
@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 April 7, 2025 12:40
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