$ influx
CREATE DATABASE foo
FROM yandex/clickhouse-server:${CLICKHOUSE_VERSION:-latest} | |
USER root | |
ARG UBUNTU_NAME=focal | |
ARG UBUNTU_VERSION=20.04 | |
RUN echo "Begin ODBC install" && \ | |
#MySQL repo | |
wget -qO- "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xa4a9406876fcbd3c456770c88c718d3b5072e1f5" | apt-key add - && \ | |
echo "deb http://repo.mysql.com/apt/ubuntu/ ${UBUNTU_NAME} mysql-8.0" >/etc/apt/sources.list.d/mysql-oracle.list && \ |
FROM ubuntu:18.04 | |
RUN apt-get update -y | |
RUN apt-get install wget -y | |
RUN wget https://github.com/fullstorydev/grpcurl/releases/download/v1.1.0/grpcurl_1.1.0_linux_x86_64.tar.gz | |
RUN tar -xvzf grpcurl_1.1.0_linux_x86_64.tar.gz | |
RUN chmod +x grpcurl | |
RUN mv grpcurl /usr/local/bin/grpcurl |
SELECT table, | |
formatReadableSize(sum(bytes)) as size, | |
min(min_date) as min_date, | |
max(max_date) as max_date | |
FROM system.parts | |
WHERE active | |
GROUP BY table |
#!/usr/bin/env python3 | |
# This script is designed to do one thing and one thing only. It will find each | |
# of the FlateDecode streams in a PDF document using a regular expression, | |
# unzip them, and print out the unzipped data. You can do the same in any | |
# programming language you choose. | |
# | |
# This is NOT a generic PDF decoder, if you need a generic PDF decoder, please | |
# take a look at pdf-parser by Didier Stevens, which is included in Kali linux. | |
# https://tools.kali.org/forensics/pdf-parser. | |
# |
# List all available versions | |
$ pyenv versions | |
system | |
# Install Python3 on machine as full binary | |
$ pyenv install 3.5.2 | |
# Create virtualenv out of 3.5.2 | |
$ pyenv virtualenv 3.5.2 developer | |
$ pyenv activate developer |
// Async/Await requirements: Latest Chrome/FF browser or Babel: https://babeljs.io/docs/plugins/transform-async-to-generator/ | |
// Fetch requirements: Latest Chrome/FF browser or Github fetch polyfill: https://github.com/github/fetch | |
// async function | |
async function fetchAsync () { | |
// await response of fetch call | |
let response = await fetch('https://api.github.com'); | |
// only proceed once promise is resolved | |
let data = await response.json(); | |
// only proceed once second promise is resolved |