Follow the instructions here:
https://pypi.org/project/boto3-stubs/#pycharm
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>HNSW Graph Visualization</title> | |
<script src="https://d3js.org/d3.v7.min.js"></script> | |
<style> | |
.link { | |
stroke: #999; | |
stroke-opacity: 0.6; |
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
dnf install -y docker git | |
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker} | |
mkdir -p $DOCKER_CONFIG/cli-plugins | |
curl -SL https://github.com/docker/compose/releases/download/v2.24.7/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose | |
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose | |
systemctl start docker |
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
var API_PREFIX = '/api/v1'; | |
var stats = []; | |
var TEST_CDN = ''; | |
function recordStat(url, cdnName, statName, timeInMillis) { | |
stats.push({ | |
"name": statName, | |
"cdn": cdnName, | |
"timeTakenMillis": timeInMillis | |
}); |
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 -e | |
rm -rf node_modules | |
npm init -y | |
npm install mongodb --production | |
echo "before: $(du -sh node_modules)" | |
rm -rf node_modules/@aws-sdk | |
rm -rf node_modules/@aws-crypto |
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 | |
# Map input values from the GitHub Actions workflow to shell variables | |
MONGODB_VERSION="6.0" | |
MONGODB_REPLICA_SET="test-rs" | |
MONGODB_PORT="27017" | |
MONGO_CMD="mongosh" # for earlier versions use "mongo" | |
if [ -z "$MONGODB_VERSION" ]; then | |
echo "" |
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
# Ref: https://gallery.ecr.aws/lambda/provided | |
# + https://docs.aws.amazon.com/lambda/latest/dg/runtimes-images.html | |
# + https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/ | |
FROM public.ecr.aws/lambda/provided:al2 | |
COPY bootstrap.sh ${LAMBDA_RUNTIME_DIR}/bootstrap | |
COPY function.sh ${LAMBDA_TASK_ROOT} | |
# Ref https://www.mongodb.com/docs/v6.0/tutorial/install-mongodb-on-amazon/ | |
SHELL ["/bin/bash", "-c"] |
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 com.thing; | |
import com.google.common.io.Files; | |
import org.apache.spark.sql.Dataset; | |
import org.apache.spark.sql.Row; | |
import org.apache.spark.sql.SparkSession; | |
import lombok.extern.slf4j.Slf4j; | |
import java.awt.*; | |
import java.io.File; |
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
# Switch to privileged user 'root' | |
sudo su | |
# Install Docker + git, enabling the docker process to start on boot | |
yum install -y docker git | |
systemctl enable --now docker | |
# Install Docker-Compose | |
curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/bin/docker-compose | |
chmod +x /usr/bin/docker-compose |
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
docker run --rm -it --platform linux/amd64 -w /bingos --entrypoint make -v /Users/lthompson/IdeaProjects/BingOS:/bingos -v /Users/lthompson/IdeaProjects/micos:/micos jett59/bingos-build "MICOS_PATH=/micos" | |
cp /Users/lthompson/IdeaProjects/BingOS/grubimage.iso ./micos.iso | |
qemu-system-x86_64 -cdrom "$(pwd)/micos.iso" |
NewerOlder