Skip to content

Instantly share code, notes, and snippets.

View alexjurkiewicz's full-sized avatar

Alex Jurkiewicz alexjurkiewicz

View GitHub Profile
locals {
name = "pr15755"
}
variable aws_region {
type = string
default = "ap-southeast-2"
}
provider aws {
region = var.aws_region
@alexjurkiewicz
alexjurkiewicz / cloudformation.yaml
Last active March 21, 2019 19:16
Verdaccio CloudFormation template
# Instructions:
# 1. Check all "TODO" comments and make changes if required for your environment
# 2. Provide values for all required parameters and any optional parameters desired
AWSTemplateFormatVersion: '2010-09-09'
Description: Verdaccio - NPM cache / private registry
Parameters:
# REQUIRED PARAMETERS
Ami:
Type: AWS::EC2::Image::Id
$ nice make -j8 debug
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C rltiles all ARCH=x86_64-apple-darwin18.2.0 NO_PKGCONFIG=Yes TILES=
* If you experience any problems building Crawl, please take a second look
* at INSTALL.txt: the solution to your problem just might be in there!
LINK crawl
Undefined symbols for architecture x86_64:
"branch_data_json()", referenced from:
parse_args(int, char**, bool) in initfile.o
ld: symbol(s) not found for architecture x86_64
diff --git a/crawl-ref/source/decks.cc b/crawl-ref/source/decks.cc
index 9ce7809490..e233410440 100644
--- a/crawl-ref/source/decks.cc
+++ b/crawl-ref/source/decks.cc
@@ -283,10 +283,11 @@ int deck_cards(deck_type deck)
: you.props[deck_name(deck)].get_int();
}
-bool gift_cards()
+void gift_cards()
server {
server_name crawl.project357.org;
listen 80;
if ($server_port = '80') {
rewrite ^(.*)$ https://crawl.project357.org$1;
}
listen 172.30.0.178:443 ssl http2 deferred;
ssl_certificate /etc/letsencrypt/live/crawl.project357.org/fullchain.pem;
@alexjurkiewicz
alexjurkiewicz / crontab
Created June 18, 2018 22:42
CPO ttyrec offload logic
# Compress old ttyrecs
0 17 * * * root find /opt/dgl-chroot/var/ttyrec/ -type f -mtime +1 -not -name '*.gz' -not -name '*.xz' -exec nice -n 19 xz -1 {} \;
# Upload old ttyrecs
0 18 * * * root aws s3 sync --exclude '*' --include '*.xz' --include '*.gz' /space/ttyrec/ s3://dcss-cpo-ttyrecs/
# Delete old ttyrecs
0 19 * * * root find /space/ttyrec -type f -mtime +7 -delete
@alexjurkiewicz
alexjurkiewicz / subnet.cf.yaml
Created February 21, 2018 00:12
Cloudformation vs Terraform
resources:
app_subnet_1:
Type: "AWS::EC2::Subnet"
Properties:
AvailabilityZone: !Select: [ 0, !Ref subnet_azs ]
CidrBlock: !Select: [ 0, !Ref subnet_cidrs ]
Tags:
- Key: environment
Value: !Ref workspace
- Key: division
#!/usr/bin/env python3
"""Calculate DCSS spell usage from morgues."""
import subprocess
import collections
total_dacts = collections.Counter()
def find_morgue_files(d):