Replace 6dc76f8e2cb1 with target container to sniff
docker run -it --rm --net container:6dc76f8e2cb1 nicolaka/netshoot tcpdump -s0 -qA
Replace 6dc76f8e2cb1 with target container to sniff
docker run -it --rm --net container:6dc76f8e2cb1 nicolaka/netshoot tcpdump -s0 -qA
avrdude -v -e -c avrisp -P COM14 -p ATmega32u4 -b 19200 -U lfuse:w:0x5E:m -U hfuse:w:0x99:m -U efuse:w:0xC3:m
avrdude -v -e -c avrisp -P COM14 -p ATmega32u4 -b 19200 -U flash:w:bootloader_atmega32u4_1.0.0.hex
avrdude -v -D -c avrisp -P COM14 -p ATmega32u4 -b 19200 -U flash:w:crkbd_rev1_oprietop.hex
| #!/usr/bin/bash | |
| # This script is meant to be used with the Arch Linux ISO under a network connection. | |
| set -e | |
| set -u | |
| LUKS_PASS=luks_pass | |
| DISK=sda | |
| TIMEZONE=Europe/Madrid | |
| PACKAGES="base linux linux-firmware mkinitcpio lvm2 grub efibootmgr intel-ucode dhcpcd openssh inetutils docker zsh vim tmux git atop mc" |
| # One liner | |
| wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com | |
| # Explained | |
| wget \ | |
| --recursive \ # Download the whole site. | |
| --page-requisites \ # Get all assets/elements (CSS/JS/images). | |
| --adjust-extension \ # Save files with .html on the end. | |
| --span-hosts \ # Include necessary assets from offsite as well. | |
| --convert-links \ # Update links to still work in the static version. |
| package main | |
| import ( | |
| "net/http" | |
| "net/url" | |
| "fmt" | |
| "os" | |
| "log" | |
| "time" | |
| "encoding/json" |
| #!/usr/bin/bash | |
| # Used inside a centos:8 container: | |
| # docker run -it --rm -v $(pwd):/mnt -w /mnt centos:8 bash | |
| set -e | |
| set -x | |
| # Fix locales | |
| dnf install -y glibc-langpack-en | |
| # Install dev tools | |
| dnf group install -y "Development Tools" |
| FROM node:current-alpine as builder | |
| RUN apk add --no-cache build-base python git && \ | |
| git clone https://github.com/butlerx/wetty /usr/src/app | |
| WORKDIR /usr/src/app | |
| RUN yarn && \ | |
| yarn build && \ | |
| yarn install --production --ignore-scripts --prefer-offline |
for t in `sqlite3 grafana.db ".tables"`; do echo -n "$t "; echo "select count(*) from $t" | sqlite3 grafana.db ;done
echo 'delete from dashboard_version; vacuum;' | sqlite3 grafana.db
echo 'delete from user_auth_token; vacuum;' | sqlite3 grafana.db
echo 'delete from annotation; vacuum;' | sqlite3 grafana.db
| #!/bin/bash | |
| # https://docs.influxdata.com/kapacitor/v1.5/working/api/ | |
| KAPACITOR_URL=${KAPACITOR_URL-http://localhost:9092} | |
| read -r -d '' MLIST <<'EOF' | |
| container_cpu_usage_seconds_total | |
| container_fs_limit_bytes | |
| container_fs_reads_bytes_total | |
| container_fs_reads_total |
| #!/bin/sh | |
| JENKINS_ROOT=https://jenkins | |
| JENKINS_USER=xxxxx | |
| JENKINS_PASS=xxxxx | |
| PROXY=proxy:8080 | |
| SCRIPT=$(cat <<'EOF' | |
| args=''' | |
| hostname | |
| id |