Skip to content

Instantly share code, notes, and snippets.

View d34dh0r53's full-sized avatar

Dave Wilde d34dh0r53

View GitHub Profile
@d34dh0r53
d34dh0r53 / infuse.py
Created October 1, 2015 18:18 — forked from Apsu/infuse.py
Destiny Item Infusion Calculator
#!/usr/bin/env python3
"""Destiny Item Infusion Calculator
Calculates infusion possibilities, showing costs and final light.
Usage:
infuse.py [-x] ITEM ITEM [ITEM ...]
Arguments:
@d34dh0r53
d34dh0r53 / swift-gc-notes.md
Created August 26, 2015 18:43
Swift Global Clustering Notes

As a prerequisite the deployment will need to have their VPN tunnels configured with all relevant VLANs, tunnels and routes ready to place on the host machines. I think that the host machine will also need to have ip_forward enabled:

echo 1 > /proc/sys/net/ipv4/ip_forward

br-repl

On any host that will be part of the mesh will need a br-repl bridge created with the host-local IPs on it. Any tunnels/VLANs/etc that need to be on the host belong in this bridge. An example I wrote for the [host networking chapter][1]

  • Replication provider br-repl:
Could not find a version that satisfies the requirement python-neutronclient<2.5.0,>=2.3.11 (from python-openstackclient) (from versions: 2.4.0.5.gca96a7c)
No matching distribution found for python-neutronclient<2.5.0,>=2.3.11 (from python-openstackclient)
@d34dh0r53
d34dh0r53 / ceph-docs.md
Last active August 29, 2015 14:26
Ceph client build notes

Ceph Client OSAD Notes

Notes on setting up an AIO running ceph-client roles from os-ansible-deployment

Note: this is against an existing ceph cluster running on the 172.16.200.0/24 network:

172.16.200.3    mon0
172.16.200.4    mon1
172.16.200.5    mon2

172.16.200.6 osd0

failed: [aio1_nova_api_metadata_container-318a9215] => (item={'index': 'https://pypi.python.org/simple', 'version': '33.3.0', 'name': 'beaver'}) => {"attempts": 5, "cmd": "/usr/local/bin/pip install -i https://pypi.python.org/simple beaver==33.3.0", "failed": true, "item": {"index": "https://pypi.python.org/simple", "name": "beaver", "version": "33.3.0"}}
msg: Task failed as maximum retries was encountered
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/root/beaver.retry
aio1 : ok=8 changed=0 unreachable=0 failed=1
aio1_cinder_api_container-4290b656 : ok=8 changed=0 unreachable=0 failed=1

Heka Notes

Configuration Files

[LogstreamerInput]
log_directory="/var/log/heka"
@d34dh0r53
d34dh0r53 / gist:4916180d417e44282c21
Created February 27, 2015 21:24
elasticsearch-curator.yml
---
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# Finish headless installation via `ssh [email protected]`
# See /boot/config.txt
sudo apt-get update && apt-get dist-upgrade
sudo raspi-config
# Add locale en.us-utf8 (but keep en.gb-utf8)
sudo dpkg-reconfigure locales
# Timezone
sudo dpkg-reconfigure tzdata
# Update firmware
{
"@source": "syslog://test1",
"@fields": {
"processid": "-",
"program": "test1",
"severity": "notice",
"facility": "local7"
},
"@timestamp": "2014-08-13T00:49:06.828074+00:00",
"@source_host": "logtesting",