Skip to content

Instantly share code, notes, and snippets.

View kwypchlo's full-sized avatar

Karol Wypchło kwypchlo

  • Protocol Labs
  • Poland, Warsaw
  • 09:23 (UTC +01:00)
View GitHub Profile
@kwypchlo
kwypchlo / nginx.md
Last active March 31, 2020 10:01
nginx
#! /usr/bin/env bash
rm -rf logs
mkdir logs
all_log_files=""
for server in "germany" "helsinki" "us-east" "us-west";
do
scp -rpq user@${server}.siasky.net:skynet-webportal/docker/data/nginx/logs logs/${server}
for file in logs/${server}/*.gz; do gunzip -d ${file}; done