Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
building Cloud Native Thermostat 🔥 🥶

Mario Vejlupek elmariofredo

💭
building Cloud Native Thermostat 🔥 🥶
View GitHub Profile
View dnsutils.yaml
apiVersion: v1
kind: Pod
metadata:
name: dnsutils
namespace: default
spec:
containers:
- name: dnsutils
image: gcr.io/kubernetes-e2e-test-images/dnsutils:1.3
command:
@elmariofredo
elmariofredo / dr
Last active Nov 7, 2019
Docker run simplifyed
View dr
#!/bin/bash
WORK_DIR=$(docker image inspect $1 --format='{{.Config.WorkingDir}}')
if [ -z "$WORK_DIR" ]
then
WORK_DIR=/workdir
fi
docker run -it --rm -v $PWD:$WORK_DIR --entrypoint sh "$1"
View HOWTO.md
  1. Observability -> Collect all data to be able to observe all events market/users/profit.
  2. Focus -> Give everybody some timeframe (min 1h) to focus on specific thing, don't switch focus unless really necessary thus create perfect task queues with priorities.
  3. Ownership -> Give e2e ownership dev/test/ops/appsupport.
  4. Human -> Always remember that humans are great for their errors because our creativity is based on it.
  5. Re(spect/ward) -> Respect and Reward work.
View .ansible.cfg
# cat ~/.ansible.cfg
[defaults]
stdout_callback = debug
retry_files_enabled = False
@elmariofredo
elmariofredo / supaclone
Created Nov 29, 2017
Cloning github/gitlab/copanyhub in consistent way
View supaclone
#!/usr/bin/env python
import sys, subprocess, os
try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
rawRepoUrl = sys.argv[1]
@elmariofredo
elmariofredo / measure.sh
Last active Oct 4, 2017
Simple http throughput test using curl
View measure.sh
#!/bin/bash
URL=$1
NAME=${URL:7}
echo "Press [CTRL+C] to stop..."
while :
do
echo $(date +%s) $(curl --max-time 10 -w "%{time_connect} %{time_starttransfer} %{time_total} %{http_code}" -o NUL -s "${URL}") | tee -a ${NAME}.log.txt
View docker-compose.yml
version: "3"
services:
web:
image: nginx
View conventional-recommended-bump.js
@elmariofredo
elmariofredo / git-no-verify
Last active Feb 22, 2017
Auto add no verify to git push and commit
View git-no-verify
#!/bin/bash
if [[ $@ == *"push"* || $@ == *"commit"* ]];
then
$HOME/.nix-profile/bin/git $@ --no-verify
else
$HOME/.nix-profile/bin/git $@
fi
@elmariofredo
elmariofredo / css_regression_testing.md
Created Dec 13, 2016 — forked from cvrebert/css_regression_testing.md
Survey of screenshot-based CSS testing tools
View css_regression_testing.md

Currently considering https://github.com/webdriverio/webdrivercss


Core Goals:

  • Can test in up-to-date versions of all major browsers
  • Can test on up-to-date versions of all major OSes
  • Can test in IE9 (because Bootstrap v4 will support IE9+)
  • Don't want to have to setup/maintain our own cluster of VMs running all the necessary OSes (and all the versions of Windows)
  • Workflow for management of reference/baseline/norm screenshots