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
<div id="game"> | |
<div id="road"> | |
<div id="cloud"></div> | |
<div id="hero"></div> | |
</div> | |
<div id="hud"> |
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
type RequestConfig = RequestInit & { | |
baseURL?: string; | |
timeout?: number; | |
params?: Record<string, string>; | |
signal?: AbortSignal; | |
}; | |
type InterceptorFn = (config: RequestConfig) => RequestConfig | Promise<RequestConfig>; | |
class FetchWrapper { |
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
const http = require('node:http'); | |
const { IncomingForm } = require('formidable'); | |
const { promises: fs, constants: fsConstants } = require('node:fs'); | |
const path = require('node:path'); | |
const os = require('node:os'); | |
const { parseArgs } = require('node:util'); | |
const options = { | |
port: { type: 'string', short: 'p', default: process.env.PORT || '8080' }, | |
'upload-dir': { type: 'string', short: 'd', default: process.env.UPLOAD_DIR || process.cwd() }, |
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
FROM node:20-alpine as build-stage | |
ARG HTTP_PROXY | |
ARG HTTPS_PROXY | |
ENV HTTP_PROXY=$HTTP_PROXY | |
ENV HTTPS_PROXY=$HTTPS_PROXY | |
WORKDIR /usr/src/app | |
COPY . . | |
RUN npm -g install pnpm@latest && pnpm config set registry=https://registry.npmmirror.com && pnpm install && npm run build |
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
FROM debian | |
RUN <<EOT bash | |
set -eux | |
to_install=( | |
vim | |
) | |
apt-get update | |
failing_command # set -e exit with non-zero status | |
apt-get install -y "\${to_install[@]}" | |
EOT |
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 | |
trap cleanup EXIT | |
# green="\e[1;32m" | |
# red="\e[1;31m" | |
# reset="\e[0m" | |
green=$(tput setaf 64); | |
red=$(tput setaf 124); | |
reset=$(tput sgr0); |
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
FROM adminer:4.8.0 | |
# WATCH OUT WHEN UPGRADING, THE SED BELOW MIGHT STOP WORKING | |
USER root | |
RUN apk add autoconf gcc g++ make libffi-dev openssl-dev | |
RUN pecl install mongodb | |
RUN echo "extension=mongodb.so" > /usr/local/etc/php/conf.d/docker-php-ext-mongodb.ini | |
# MongoDB allows connections without password. | |
# But that doesn't fly with Adminer which prints 'Database does not support password.' for such case. |
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/bash | |
# ~/.local/etc/colors | |
# Wed Jan 21 19:04:30 PST 2015 [email protected] | |
# Colorized output using tput(1). This script falls back to using ANSI escape | |
# codes if tput(1) is unavailable. All color names have been sourced from | |
# http://www.december.com/html/spec/colorhex.html | |
# shellcheck disable=SC2034 |
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
version: '3' | |
services: | |
db: | |
image: postgres:13 | |
environment: | |
POSTGRES_PASSWORD: sentry | |
POSTGRES_USER: sentry | |
POSTGRES_DB: sentry | |
networks: | |
- sentry-network |
NewerOlder