Skip to content

Instantly share code, notes, and snippets.

View pmoranga's full-sized avatar

Pmoranga pmoranga

View GitHub Profile
@elafargue
elafargue / A Hypriot K8S install.md
Last active March 16, 2025 22:38 — forked from aaronkjones/k8s-pi.md
K8s (v1.10.5) on Hypriot (July 2018)
@rickhaffey
rickhaffey / docker_cheatsheet.sh
Created April 26, 2018 15:19
docker cheatsheet
# pass through AWS credentials to docker container
# and provide OpenSSL with indication of SSL Certs location
# (based on https://gist.githubusercontent.com/cameck/9ce71ba3e447444bf7f799d92c46c171/raw/4f15f5a5073843a17a38c27bbe10e99747015d60/start.sh)
AWS_ACCESS_KEY_ID=$(aws --profile default configure get aws_access_key_id)
AWS_SECRET_ACCESS_KEY=$(aws --profile default configure get aws_secret_access_key)
docker run -it \
-e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
@exekias
exekias / filebeat-autodiscover-kubernetes.yml
Last active March 3, 2023 22:15
Example of autodiscover usage in filebeat-kubernetes.yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: filebeat-config
namespace: kube-system
labels:
k8s-app: filebeat
kubernetes.io/cluster-service: "true"
data:
@ChrisMcKee
ChrisMcKee / installpackerterraform.sh
Last active October 2, 2024 15:59
hashicorp terraform packer
#!/bin/bash
cd /tmp
sudo apt-get install --assume-yes jq > /dev/null
terraform_url="https://releases.hashicorp.com/terraform/$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | jq -r -M '.current_version')/terraform_$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform | jq -r -M '.current_version')_linux_amd64.zip"
packer_url="https://releases.hashicorp.com/packer/$(curl -s https://checkpoint-api.hashicorp.com/v1/check/packer | jq -r -M '.current_version')/packer_$(curl -s https://checkpoint-api.hashicorp.com/v1/check/packer | jq -r -M '.current_version')_linux_amd64.zip"
@tzapu
tzapu / docker-compose.yml
Last active September 26, 2022 05:13
docker compose file for local server, plex, transmission, sonarr, radarr, ombi, netdata, nextcloud
version: '2.1'
services:
transmission:
container_name: transmission
image: dperson/transmission
restart: unless-stopped
depends_on:
- plex
network_mode: host
environment:
@brandond
brandond / function.py
Last active February 6, 2023 21:09
Python script to auto-tag AWS EBS Snapshots and Volumes using AMI and Instance tags
import copy
import logging
import os
import boto3
logging.basicConfig(level=os.environ.get('LOG_LEVEL', 'INFO'))
ec2 = boto3.client('ec2')
logger = logging.getLogger(__name__)
@enygma
enygma / gist:a448090fdd955ef5b54c30db926175f8
Created October 13, 2016 14:29
Soundtracks to get shit done.
Interstellar - S.T.A.Y (movie)
Transistor (video game)
Destiny Soundtrack (video game)
Bastion (video game)
FTL Faster Than Light (video game)
Ori and the Blind Forest - Soundtrack (video game)
JOURNEY OST (video game)
Deus Ex (video game)
Shadow of the Colossus - Soundtrack (video game)
Undertale Soundtrack (video game)
@valeryan
valeryan / .dockerignore
Last active January 4, 2025 23:06
Using docker-compose to run a mineos server
minecraft
@leonardofed
leonardofed / README.md
Last active June 5, 2025 20:43
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.