Skip to content

Instantly share code, notes, and snippets.

@brianfoody
brianfoody / DeadLetterQueueStack.ts
Last active March 16, 2024 21:47
Dead Letter Queue example with CDK
import { Queue } from "@aws-cdk/aws-sqs";
import { App, Duration, Stack, StackProps } from "@aws-cdk/core";
import { Runtime, Code, Function } from "@aws-cdk/aws-lambda";
import { SqsEventSource } from "@aws-cdk/aws-lambda-event-sources";
class DeadLetterQueue extends Stack {
constructor(parent: App, name: string, props?: StackProps) {
super(parent, name, props);
@athalean
athalean / pathfinding.gd
Created March 9, 2017 09:15
Godot A* pathfinding
func grid_to_world(position):
# (0,8) is the offset to the middle of the tile
return map_to_world(position) + Vector2(0, 8)
func world_to_grid(position):
return world_to_map(position)
func get_tile_cost(pos):
# placeholder
return 1.0
@ericmagnuson
ericmagnuson / .htaccess
Last active March 29, 2021 01:00
Compiling and serving LESS on-the-fly with PHP & Apache
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule (.*\.min.css) less.php?min=yes&path=$1
RewriteRule (.*\.css) less.php?min=no&path=$1
</IfModule>
@fernandoaleman
fernandoaleman / Linux Static IP
Created March 23, 2012 16:20
How To Configure Static IP On CentOS 6
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static