Skip to content

Instantly share code, notes, and snippets.

@joshghent
joshghent / sqs_to_sns.py
Created January 14, 2020 10:29
A small script to push messages from SQS to SNS
# Usage
# $ python sqs_to_sns.py my-queue-name
import boto3
import sys
import queue
import threading
from datetime import datetime
import json
🏆 67,827 Karma Points
🌞 Completed 26 tasks today
📅 Completed 69 tasks this week
✅ Completed 48,166 tasks so far
⌛ Current streak is 214 days
☀️ Weather for January 19th 1970
Wind Speed: 2.6
Temp: 15.6
version: '3.7'
services:
dokku:
image: dokku/dokku:latest
hostname: dokku.ghent.cloud
environment:
- DOKKU_HOSTNAME=dokku.domain.cloud
- VIRTUAL_PORT=32087
- VIRTUAL_HOST=dokku.domain.cloud
function loadScript(src, done) {
var js = document.createElement('script');
js.src = src;
js.onload = function() {
done();
};
js.onerror = function() {
done(new Error('Failed to load script ' + src));
};
document.head.appendChild(js);
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap" rel="stylesheet">
@joshghent
joshghent / github-actions-scan.sh
Created April 15, 2025 09:25
Create a nice list of github action usage across your organisations repos
#!/bin/bash
# Creates a nice list of github action usage across your organisations repos
# Useful for making sure you are using pinned dependencies
# Idea from this blog post: https://alexwlchan.net/2025/github-actions-audit/
ORG="" # github org name to only search their repos, case sensitive
temp_file=$(mktemp)
for dir in */; do