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 | |
FLAGS="" | |
SOURCE="docker.io/library" | |
DEST="docker.io/brandond" | |
IMAGE="busybox" | |
TAG="1.32.0-uclibc" | |
docker buildx imagetools inspect ${SOURCE}/${IMAGE}:${TAG} --raw | \ | |
jq -r '.manifests[] | (.digest + " " + .platform.architecture)' | \ |
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 | |
# This script assumes a couple things: | |
# * you have a copy of kubernetes/kubernetes checked out to $GOPATH/src/github.com/kubernetes/kubernetes | |
# * you have a copy of k3s-io/k3s checked out to $GOPATH/src/github.com/k3s-io/k3s | |
# * the repos listed above have an origin named ${USER} (your login) that points to your personal fork of that repo | |
# * the repos listed above have an origin named k3s-io that points to the k3s-io fork of that repo | |
# * the kubernetes repo has an origin that points at the kubernetes upstream (doesn't matter what it's called) | |
set -euxo pipefail |
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 python | |
import logging | |
import requests | |
import click | |
import itertools | |
from dateutil.parser import isoparse | |
from datetime import datetime, timezone | |
from time import time |
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
#include "esphome/core/component.h" | |
#include "esphome/components/light/addressable_light.h" | |
namespace esphome { | |
namespace panel { | |
static const char *TAG = "panel.light"; | |
class AddressablePanel; | |
class PanelLightOutput; |
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
# 37 ms | |
# GPIO2 log now at 76923 bps | |
LOG: ets Jan 8 2013, rst cause: 1, boot mode:(3,7) | |
# 108 ms | |
LOG: ... jump to run user1 @ 1000 | |
# 155 ms: | |
LOG: OS SDK ver: 1.4.2 |
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
esphomeyaml: | |
name: fixture{{ID}} | |
platform: ESP8266 | |
board: esp01_1m | |
arduino_version: 2.4.2 | |
esphomelib_version: dev | |
board_flash_mode: dout | |
build_path: esp8266 | |
on_boot: | |
if: |
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 __future__ import print_function, division | |
import gzip | |
import io | |
import logging | |
import sys | |
import tempfile | |
import zlib | |
import boto3 | |
import click |
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
import copy | |
import logging | |
import os | |
import boto3 | |
logging.basicConfig(level=os.environ.get('LOG_LEVEL', 'INFO')) | |
ec2 = boto3.client('ec2') | |
logger = logging.getLogger(__name__) |
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 python | |
from __future__ import print_function | |
import sys | |
import socket | |
import requests | |
import datetime | |
from OpenSSL import SSL, 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
# Follows the squid format in default: | |
# logformat squid %ts.%03tu %6tr %>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt | |
# http://www.squid-cache.org/Doc/config/logformat/ | |
SQUID4 %{NUMBER:timestamp:float}\s+%{NUMBER:response_time:int} %{IPORHOST:src_ip} %{NOTSPACE:squid_request_status}/%{NUMBER:http_status_code:int} %{NUMBER:transfer_size:int} %{NOTSPACE:http_method} (%{URIPROTO:url_scheme}://)?(?<url_host>\S+?)(:%{INT:url_port})?(/%{NOTSPACE:url_path})?\s+%{NOTSPACE:client_identity}\s+%{NOTSPACE:peer_code}/%{NOTSPACE:peerhost}\s+%{NOTSPACE:content_type} |