Skip to content

Instantly share code, notes, and snippets.

View DanielBodnar's full-sized avatar

Daniel Bodnar DanielBodnar

  • BitBuilder.io
  • Denton, Tx
  • 12:26 (UTC -06:00)
View GitHub Profile
@DanielBodnar
DanielBodnar / iptables-bad-save.conf
Created February 5, 2016 15:45
Rancher's bad iptables-save
# Generated by iptables-save v1.4.7 on Fri Feb 5 03:38:03 2016
*mangle
:PREROUTING ACCEPT [2677699:382708357]
:INPUT ACCEPT [2642907:360435547]
:FORWARD ACCEPT [34582:22257518]
:OUTPUT ACCEPT [1415284:5834808616]
:POSTROUTING ACCEPT [1449866:5857066134]
COMMIT
# Completed on Fri Feb 5 03:38:03 2016
# Generated by iptables-save v1.4.7 on Fri Feb 5 03:38:03 2016
@DanielBodnar
DanielBodnar / rancher-ops
Created February 27, 2016 01:29
cloud-configs
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD2rb0ceAqPl7cPEqYXYd9jXIo2va5qw+S/B8h2Ch79RWdKR+YYBWngmcujbLFRw5TWSIB/nqZVgcJnfy4hv/eNuvidVjLEvQeSCefc9iYcPwvbJb4CXb8YpB2ZQsDjeJSLk3l2bv4TTNQ8kBumnUFQFWyqkDZxxvnqQ1lJwkTVXfWZrchCw0mrSR58FH1srius4pPN0UqeqSKjXSg8Bqj+0p7Hs/Mkn6t5osLujKVJFTqAARWITQvC19wktb8E50xNZrmV35sxsZigDq/zfoUY0JyowT7ZDFPlwxVvztgVjNiTCys5aqUEcSvAa/YHvcqRAYoubHoMaasrEkEVBOYl db502j@att.com
rancher:
services:
rancher-agent1:
image: rancher/agent
command: http://rancher.bitbuilder.io:8080/v1/scripts/0DF7937D75B35BFBAA95:1454252400000:j1gUKZlsEx0A33kT4qRxE0BAfM
privileged: true
@DanielBodnar
DanielBodnar / esnextbin.md
Last active July 24, 2016 04:27
esnextbin sketch

Keybase proof

I hereby claim:

  • I am danielbodnar on github.
  • I am danielbodnar (https://keybase.io/danielbodnar) on keybase.
  • I have a public key ASD-ZPgkczqVmVtX9QiAeug-WckC3zGSrFaLC-UzUzDA0Qo

To claim this, I am signing this object:

@DanielBodnar
DanielBodnar / 00-cloud-config.yml
Created September 14, 2018 22:12 — forked from janeczku/00-cloud-config.yml
Annotated RancherOS Cloud-init configuration snippets
#cloud-config
# Set the hostname for this machine (takes precedence over hostname assigned by DHCP lease).
hostname: myhost
# Authorize SSH keys for the `rancher` sudoer user
ssh_authorized_keys:
- ssh-rsa AAA...ZZZ example1@rancher
@DanielBodnar
DanielBodnar / clone-all-github-repos.sh
Last active October 5, 2018 14:42 — forked from caniszczyk/clone-all-twitter-github-repos.sh
Clone all repos from a GitHub organization
curl -s https://api.github.com/orgs/pspusa/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
@DanielBodnar
DanielBodnar / vzdump-hook-script.pl
Created October 18, 2018 20:10
Perl script that uploads backup files to cloud storage using rclone, removes backups older then 1 week.
#!/usr/bin/perl -w
# example hook script for vzdump (--script option)
use strict;
print "HOOK: " . join (' ', @ARGV) . "\n";
my $phase = shift;
@DanielBodnar
DanielBodnar / loading.html
Last active March 21, 2019 05:23
HTML: Simple Maintenance Page
<!doctype html>
<head>
<title>Perspectives: Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 40px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
@DanielBodnar
DanielBodnar / README.md
Last active October 27, 2018 06:36 — forked from cocoastorm/README.md
rexray/s3fs Docker Plugin Install with Minio

Getting Started

Make sure Docker is installed!

Get your Minio endpoint url, accesskey, and secretkey ready!

Install Docker Plugin

docker plugin install rexray/s3fs \
@DanielBodnar
DanielBodnar / wg-config.sh
Last active September 29, 2019 18:20 — forked from insom/wg-config.bash
#!/bin/bash
hosts=("office" "pve" "pve2" "pve3" "therealdaniel")
wg_addrs=("172.28.0.1" "172.28.0.51" "172.28.0.52" "172.28.0.53" "172.28.0.75")
vxlan_addrs=("172.27.0.1" "172.27.0.51" "172.27.0.51" "172.27.0.52" "172.27.0.53" "172.27.0.75")
modprobe ipv6
modprobe udp_tunnel
modprobe ip6_udp_tunnel