Skip to content

Instantly share code, notes, and snippets.

View deathwebo's full-sized avatar

Erick M deathwebo

  • Somewhere Far Beyond
View GitHub Profile
@jzwiep
jzwiep / docker_compose_assume_iam_role.sh
Created July 27, 2018 18:21
Assume a specific IAM role with a container via docker-compose
#!/bin/bash
# Assume the role using locally configured AWS credentials, then pass the assumed role to the container via environment
# variables!
ASSUMED_ROLE=$(aws sts assume-role \
--role-arn "arn:aws:iam::000000000000:role/our-role-to-assume" \
--role-session-name "session_name" \
--output text)
@gene1wood
gene1wood / all_aws_managed_policies.json
Last active April 4, 2024 18:11
A list of all AWS managed policies and they're policy documents as well as a short script to generate the list
This file has been truncated, but you can view the full file.
{
"APIGatewayServiceRolePolicy": {
"Arn": "arn:aws:iam::aws:policy/aws-service-role/APIGatewayServiceRolePolicy",
"AttachmentCount": 0,
"CreateDate": "2019-10-22T18:22:01+00:00",
"DefaultVersionId": "v6",
"Document": {
"Statement": [
{
"Action": [
@risyasin
risyasin / deluged.service
Created March 7, 2015 01:20
Systemd Unit file as service for Deluge Daemon
[Unit]
Description=Deluge daemon
[Service]
Type=forking
ExecStart=/usr/bin/python /usr/bin/deluged --port=58846 --config=/root/.config/deluge
[Install]
WantedBy=multi-user.target
@jbgo
jbgo / free-space-on-boot-disk.md
Last active April 19, 2023 20:47
Free up space on /boot disk (ubuntu)

Free disk space when /boot is full (Ubuntu)

TL;DR

dpkg -l linux-image*
uname -r
sudo apt-get remove linux-image-2.6.32-{21,37,38,39,40,41,42,43,44}-server
sudo apt-get autoremove
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active April 19, 2024 11:00
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: