Skip to content

Instantly share code, notes, and snippets.

@janjaali
janjaali / aws-cli-sqs.md
Last active October 14, 2025 20:30
Little cheatsheet for AWS CLI SQS commands

Create a FIFO queue

aws --endpoint http://localhost:9324 sqs create-queue --queue-name queue-name.fifo --attributes FifoQueue=true,MessageRetentionPeriod=1209600,ContentBasedDeduplication=false
  • MessageRetentionPeriod is set to 1209600 seconds which equals to 14 days

Send a message (file) to queue

@janjaali
janjaali / release.md
Last active September 5, 2020 20:02
Release notes

✨ Feature

  • Feature I

🐛 Bugfixes

  • Bugfix I

⚠ Deprecated

@janjaali
janjaali / Utils.ps1
Last active July 31, 2019 20:52
Some little helpers
# Creates zip-archives for each directory in the current path
Get-ChildItem . | ForEach-Object {
if ($_.PSIsContainer) {
$dirName = $_.Name
$zipName = "$dirName`.zip"
echo "Compress $dirName"
Compress-Archive -Path $dirName\* -DestinationPath $zipName
}
}
package de.example.filters
import javax.inject.Inject
import akka.stream.Materializer
import play.api.mvc._
import sun.misc.BASE64Decoder
import scala.concurrent.{ExecutionContext, Future}