- AWS Lambda now supports AWS Fault Injection Service (FIS) actions
- Announcing AWS AppSync Events: serverless WebSocket APIs to power real-time web and mobile experiences at any scale
- Improving security and performance with additional DNS resource record types in Amazon Route 53
- AWS CodeBuild now supports retrying builds automatically
- Amazon Virtual Private Cloud launches new security group sharing features
- [Peek inside your AWS CloudFormation Deplo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stage 0 | |
# Installs dependencies and builds the application | |
# Artifacts will be copied to the final image | |
FROM debian:12-slim AS build | |
ARG PYTHON_VERSION="3.13" | |
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin | |
ENV UV_COMPILE_BYTECODE="1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /tmp | |
java -Xmx5g -jar /opt/sonatype/nexus/lib/support/nexus-orient-console.jar | |
CONNECT PLOCAL:/nexus-data/db/component admin admin | |
REBUILD INDEX * | |
REPAIR DATABASE --fix-graph | |
REPAIR DATABASE --fix-links | |
REPAIR DATABASE --fix-ridbags | |
REPAIR DATABASE --fix-bonsai | |
DISCONNECT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package glob_test | |
import ( | |
"fmt" | |
"regexp" | |
"strings" | |
"testing" | |
"github.com/google/go-containerregistry/pkg/name" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
if ! crane version >/dev/null; then echo "Must install crane."; exit 1; fi | |
if ! cosign version >/dev/null; then echo "Must install cosign."; exit 1; fi | |
GHCR_ROOT_NAMESPACE="${GHCR_ROOT_NAMESPACE:-}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
sort_zset_cols.py | |
Copyright 2013 Josiah Carlson | |
Released into the public domain. | |
''' | |
''' | |
Let's imagine that there are 3 restaurants with price, score, distance info | |
being: |
How to test if Dataloader is working correctly, we are going to turn on server logging in order to see how many queries are being made to our db. If Dataloader is setup correctly, we should only see one hit on our db perrequest, even if duplicate data is being requested. Here's how to enable logging on postgresql. Note - This is the Mac way to enable logging.
-
subl /usr/local/var/postgres/postgresql.conf
-
around line 434
log_statement = 'all'
uncomment and set to alllog_statement = 'all'
-
then
brew service restart postgresql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (c) 2018 Marcelo Novaes | |
# License - MIT | |
# Enable AptX and AAC codecs on bluetooth connections on macOS | |
sudo defaults write bluetoothaudiod "Enable AptX codec" -bool true | |
sudo defaults write bluetoothaudiod "Enable AAC code" -bool true | |
# Reads set values, should return something like: | |
# { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
export CLUSTER_NAME=${CLUSTER_NAME:-example.cluster.k8s.local} | |
export KUBERNETES_VERSION=${KUBERNETES_VERSION:-https://storage.googleapis.com/kubernetes-release/release/v1.9.0/} | |
export AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION:-us-west-2} | |
# Get all available AZs | |
export AWS_AVAILABILITY_ZONES="$(aws ec2 describe-availability-zones --query 'AvailabilityZones[].ZoneName' --output text | awk -v OFS="," '$1=$1')" | |
# Create a unique s3 bucket name, or use an existing S3_BUCKET environment variable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Variables | |
USER="admin" | |
PASS="password" | |
# Assert Root User | |
SCRIPTUSER=`whoami` | |
if [ "$SCRIPTUSER" != "root" ] | |
then |
NewerOlder