Skip to content

Instantly share code, notes, and snippets.

View ahmedgenina's full-sized avatar

Ahmed Genina ahmedgenina

View GitHub Profile
#!/bin/bash
# License: GNU GPLv3
set -e
# Define the PID file
PID_FILE="/tmp/private_gpt.pid"
# Function to check if the script is already running
@ahmedgenina
ahmedgenina / scp_demo.py
Created January 26, 2020 20:07 — forked from mlafeldt/scp_demo.py
[Python] paramiko examples
#!/usr/bin/env python
import sys, paramiko
if len(sys.argv) < 5:
print "args missing"
sys.exit(1)
hostname = sys.argv[1]
password = sys.argv[2]
@ahmedgenina
ahmedgenina / Dockerfile
Created March 10, 2018 22:03 — forked from yefim/Dockerrun.aws.json
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
# Example Dockerfile
FROM hello-world