Skip to content

Instantly share code, notes, and snippets.

View redeux's full-sized avatar
🐝

Phil Sautter redeux

🐝
View GitHub Profile
@redeux
redeux / download_bucket.js
Last active February 27, 2023 16:45
Download all the files in an S3 bucket
import {
S3Client,
paginateListObjectsV2,
GetObjectCommand,
} from '@aws-sdk/client-s3';
import { createWriteStream } from 'node:fs';
import { mkdir } from 'node:fs/promises';
const createDirectory = async (newPath, existingPath) => {
try {
@redeux
redeux / main.tf
Created December 2, 2020 16:31
Terraform Progressive Apply
locals {
kubeconfig_file = "${path.module}/kubeconfig"
}
provider "local" {}
# provider "kubernetes" {
# config_path = local.kubeconfig_file
# }
@redeux
redeux / theme_toggler.html
Last active November 22, 2020 20:59
Simple theme toggler
<html lang="en">
<head>
<style type="text/css">
body {
background-color: #000;
color: #fff;
}
body.light {
background-color: #fff;
@redeux
redeux / intensify.sh
Created April 23, 2020 21:57 — forked from alisdair/intensify.sh
intensifies Slack emoji creator
#!/bin/bash
# Generate a `:something-intensifies:` Slack emoji, given a reasonable image
# input. I recommend grabbing an emoji from https://emojipedia.org/
set -euo pipefail
# Number of frames of shaking
count=10
# Max pixels to move while shaking
@redeux
redeux / README-Template.md
Created November 2, 2017 00:46 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@redeux
redeux / API.md
Created November 1, 2017 01:43 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method: