Skip to content

Instantly share code, notes, and snippets.

Avatar
🤘

Tobias Schneck toschneck

🤘
View GitHub Profile
@toschneck
toschneck / grafana-custom-explore.md
Last active Nov 24, 2021
pefromance-metrics-explore.md
View grafana-custom-explore.md

Grafana

Alerts history

sum(ALERTS_FOR_STATE) by (alertname)

Loki

etcd too long response

{namespace="kube-system"} |~ "took too long .* to execute"
View keybase.md

Keybase proof

I hereby claim:

  • I am toschneck on github.
  • I am toschneck (https://keybase.io/toschneck) on keybase.
  • I have a public key whose fingerprint is 8488 0A3F 1D08 9725 2CA5 1735 F3A9 BE68 73C4 2574

To claim this, I am signing this object:

View tmp
https://medium.com/@tbeach/resize-an-encrypted-partition-without-breaking-your-linux-system-6ef475619745
View remove-hwe16.sh
dpkg --get-selections | grep 16.04 | awk '{print $1}' | xargs apt remove -y
View gist:d702abce1c783d08cd9d53a6a2a5ac39
# add this to your bash env
# Set git user and signing key
function git-set-user() {
if [ "$#" -lt "1" ]
then
echo "Missing required arguments" >&2
echo "Usage: $0 EMAIL [PATH_TO_GIT_REPO]" >&2
exit 65
@toschneck
toschneck / install_docker_bash_completions.sh
Last active Oct 19, 2021
Install Docker and Docker-Compose bash completion
View install_docker_bash_completions.sh
#!/usr/bin/env bash
set -e
echo "install docker bash completion"
curl -L https://raw.githubusercontent.com/docker/docker/v$(docker version --format '{{.Server.Version}}')/contrib/completion/bash/docker -o /etc/bash_completion.d/docker
echo "install docker-compose bash completion"
curl -L https://raw.githubusercontent.com/docker/compose/$(docker-compose version --short)/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose
echo ".... done!"
@toschneck
toschneck / sakuli_requirements.md
Last active Aug 29, 2015
Sakuli Requirements
View sakuli_requirements.md

Sakuli-Client (test execution worker)

  • OS: Windows or Linux (Ubuntu Desktop 14.04 LTS, OpenSUSE 13.2).
    • if virtualized: Hypervisor guest additions for best performance
  • RAM: 3GB+
  • Firewall: Port 9999 (Sahi Proxy), Port 4730 (Gearman Queue)
  • a user account with sudo/admin rights (only for the installation)
  • any screen locking mechanisms should be disabled
  • Sakuli needs a reliable and predictable desktop environment: make sure that there are no pop-up windows of services or applications
  • Sakuli versions including v0.4.* need Java JRE 7; all newer versions are based on Java JRE 8 (recommended)
  • Test account - it is recommend to use a separate account for the test execution: