Skip to content

Instantly share code, notes, and snippets.

View DavidPage-BAH's full-sized avatar
🎯
Focusing

David DavidPage-BAH

🎯
Focusing
View GitHub Profile
@swalkinshaw
swalkinshaw / tutorial.md
Last active January 5, 2026 14:33
Designing a GraphQL API
@suhussai
suhussai / boto3_cf_example.py
Last active January 11, 2020 22:58
boto3 cloud formation template body (TemplateBody) example using local yml file
import boto3, yaml, json
# file must in the same dir as script
template_file_location = 'example_cloud_formation.yml'
stack_name = 'test_cloud_formation'
# read entire file as yaml
with open(template_file_location, 'r') as content_file:
content = yaml.load(content_file)
@patriknw
patriknw / LoggingMailbox.scala
Last active January 5, 2023 08:12
Logs the mailbox size when exceeding the configured limit. Implemented in Scala and Java. Copy one of them to your project and define the configuration. This code is licensed under the Apache 2 license.
/**
* Copyright (C) 2009-2014 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.contrib.mailbox
import scala.concurrent.duration._
import java.util.concurrent.atomic.AtomicInteger
import java.util.concurrent.atomic.AtomicLong
import com.typesafe.config.Config
import akka.actor.{ ActorContext, ActorRef, ActorSystem, ExtendedActorSystem }
@aspyct
aspyct / signal.c
Last active February 23, 2026 18:10
Unix signal handling example in C, SIGINT, SIGALRM, SIGHUP...
/**
* More info?
* a.dotreppe@aspyct.org
* http://aspyct.org
*
* Hope it helps :)
*/
#include <stdio.h>
#include <stdlib.h>