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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: sleep | |
spec: | |
containers: | |
- name: sleep | |
image: busybox:latest | |
# Just spin & wait forever | |
command: [ "/bin/sh", "-c", "--" ] |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "debian/buster64" | |
config.vm.hostname = "docker-host" | |
config.vm.define "docker-host" | |
config.vagrant.plugins = ['vagrant-vbguest'] | |
config.vm.provider "virtualbox" do |vb| |
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/sh | |
# flush and delete all existing rules and chains | |
iptables -t filter -F | |
iptables -t nat -F | |
iptables -t mangle -F | |
iptables -F | |
iptables -t filter -X | |
iptables -t nat -X | |
iptables -t mangle -X |
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 | |
CMD="${1:-ls -l /}" | |
BOXES="${2:-centos/8 generic/ubuntu1804}" | |
PROVIDER="${3:-virtualbox}" | |
LOG="$PWD/commands.log" | |
: > "$LOG" | |
TMPDIR="/tmp/$RANDOM.$$" |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Config Github Settings | |
github_username = "fideloper" | |
github_repo = "Vaprobash" | |
github_branch = "1.4.0" | |
github_url = "https://raw.githubusercontent.com/#{github_username}/#{github_repo}/#{github_branch}" | |
# Because this:https://developer.github.com/changes/2014-12-08-removing-authorizations-token/ |
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
# Linux Interface Bonding on Wireless Link (OpenWrt / LEDE) | |
# Attention: This was not tested yet. | |
# Important: WLAN Interfaces must be AP - STA, it does not work in ad-hoc - infraestructure mode. | |
# This "Adds" two interfaces in to one. In this sample we are using Wireless Interfaces | |
# Should be equally configured on both ends, even the hash function for the distribution of data packets | |
# Intallation of required packages: |
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
testwithcapture.go | |
// testWithCapturedZapOutput runs a test and captures zap.L() outputs | |
func testWithCapturedZapOutput(testToRun func(t *testing.T), t *testing.T) string { | |
var buffer bytes.Buffer | |
origLogger := zap.L() | |
defer func() { | |
zap.L().Sync() | |
zap.ReplaceGlobals(origLogger) |
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 bash | |
# | |
# this script is a helpful wrapper for Helm CLI, when using TLS enabled Tiller | |
# See https://github.com/helm/helm/blob/master/docs/tiller_ssl.md | |
# | |
# Copyright (C) 2019 Anastas Dancha (aka @anapsix) | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# any later version. |
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
pulsesink for Pulseaudio output | |
alsasink for ALSA output | |
osssink and oss4sink for OSS/OSSv4 output | |
jackaudiosink for JACK output |
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
gst-launch-1.0 videotestsrc ! videoconvert ! autovideosink |