I hereby claim:
- I am keeth on github.
- I am keeth (https://keybase.io/keeth) on keybase.
- I have a public key ASCgC0494QvYPRo5H-dPDtqY-Z6mIsW_Z8Hk9PhsfnWhQAo
To claim this, I am signing this object:
FROM python:3-slim | |
COPY build.sh /build.sh | |
RUN apt-get update -qqy && apt-get install -qqy curl netcat &&\ | |
curl https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-424.0.0-linux-arm.tar.gz -o google-cloud-cli.tar.gz &&\ | |
tar -xf google-cloud-cli.tar.gz &&\ | |
rm google-cloud-cli.tar.gz &&\ | |
/google-cloud-sdk/install.sh --quiet --usage-reporting=false --screen-reader=false --command-completion=false --path-update=false &&\ | |
/build.sh &&\ | |
apt-get clean |
#!/bin/bash | |
apt update | |
apt install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null | |
apt update | |
apt install -y docker-ce | |
usermod -aG docker ubuntu |
import { JSDOM } from 'jsdom'; | |
import fetch from "node-fetch"; | |
export type WhitewaterConditions = { | |
weather: string; | |
overnightSnowCm: number; | |
baseTempDegC: number; | |
} | |
const WEB_URL = 'https://skiwhitewater.com/conditions/'; |
const { createClient } = require("redis"); | |
const fetch = require("node-fetch"); | |
const REQUESTS_LIMIT = 1; | |
const TTL = 60; // seconds | |
const client = createClient({ | |
url: process.env.REDIS_URL, | |
}); |
#!/bin/bash | |
# homebew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
# essential cli | |
brew install\ | |
bash\ | |
python\ | |
go\ |
/* | |
https://twitter.com/xinganwang/status/1189266788237885443 | |
github/fetch: TypeError: Network request failed | |
Chrome: TypeError: Failed to fetch | |
Firefox: TypeError: NetworkError when attempting to fetch resource. | |
Safari: TypeError: The Internet connection appears to be offline. | |
*/ | |
const isNetworkError = e => |
import threading | |
import time | |
import logging | |
logging.basicConfig(level=logging.INFO, format='[%(levelname)s %(asctime)s %(name)s] %(message)s') | |
logger = logging.getLogger('pingmon') | |
logger.setLevel(logging.INFO) | |
import boto3 |
I hereby claim:
To claim this, I am signing this object:
#cloud-config | |
write_files: | |
- | |
content: | | |
[mysqld] | |
max_heap_table_size=64M | |
tmp_table_size=64M | |
join_buffer_size=64M | |
innodb_doublewrite=OFF | |
innodb_buffer_pool_size=242M |
container_commands: | |
01_build: | |
command: "PATH=$NODE_HOME/bin:$PATH $NODE_HOME/bin/npm run build" |