Skip to content

Instantly share code, notes, and snippets.

@ratnakarreddyg
ratnakarreddyg / transfer_ssm_file.sh
Created May 6, 2025 05:58 — forked from lukeplausin/transfer_ssm_file.sh
Transfer a file to EC2 SSM instance without using S3 (SSM only)
# This script will explain how to transfer a file to EC2 using SSM ONLY!
# You will need to have permission to run SSM commands on the target machine and have sudo access as well
# Infos
INSTANCE_ID=i-1234567890
FILE_NAME=the_file.tar.gz
# Step 1: Run command on machine to install netcat and dump from port to filename
# < Start session
@ratnakarreddyg
ratnakarreddyg / OpenVPNWalkthrough-Part3.yaml
Created January 22, 2019 13:32
OpenVPNWalkthrough-Part3.yaml
AWSTemplateFormatVersion: '2010-09-09'
Description: OpenVPN Stack
Parameters:
OpenVPNPort:
Type: Number
Default: 1194
Description: OpenVPN UDP port
ClientIPCIDR:
@ratnakarreddyg
ratnakarreddyg / vpn-cloudformation-template.yaml
Created January 22, 2019 13:31 — forked from pbzona/vpn-cloudformation-template.yaml
Roll your own VPN with AWS CloudFormation - part three
# Credit to John Creecy
# Original can be found at https://gist.github.com/zugdud/b39eea02faa6926305f57fbde8d31b68
AWSTemplateFormatVersion: '2010-09-09'
Description: OpenVPN Stack
Parameters:
OpenVPNPort:
Type: Number
Default: 1194
pipeline {
// run on jenkins nodes tha has java 8 label
agent { label 'java8' }
// global env variables
environment {
EMAIL_RECIPIENTS = 'mahmoud.romeh@test.com'
}
stages {
stage('Build with unit testing') {
@ratnakarreddyg
ratnakarreddyg / bump-version.sh
Created October 29, 2018 10:22 — forked from mareksuscak/bump-version.sh
Bump version shell script.
#!/bin/bash
# Thanks goes to @pete-otaqui for the initial gist:
# https://gist.github.com/pete-otaqui/4188238
#
# Original version modified by Marek Suscak
#
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3" or even "1.2.3-beta+001.ab"