Skip to content

Instantly share code, notes, and snippets.

View trumant's full-sized avatar

Travis Truman trumant

View GitHub Profile
@trumant
trumant / missing_files_script_directions.md
Last active August 21, 2019 01:24
Find missing files directions
  1. Download the file here
  2. Create a file on your Desktop named search_files.txt. Each line of the file should be a single filename. Example:
file_one.jpg
file_two.jpg
file_three.jpg
  1. Open Terminal.app
  2. Run the following commands in Terminal, pressing Return after each one:
  3. bash
@trumant
trumant / find_missing.sh
Created August 21, 2019 01:07
Missing files script for Niamh
#!/usr/bin/env bash
while IFS= read -r f; do
if [ $(find "$2" -name "$f") ]; then
continue
else
printf "\033[1;31m$f not found\e[0m\n"
fi
done < "$1"
@trumant
trumant / br-mgmt.cfg
Created July 26, 2016 19:45
Sample OpenStack-Ansible /etc/network/interfaces.d/br-mgmt.cfg
# OpenStack Management network bridge
auto br-mgmt
iface br-mgmt inet static
bridge_stp off
bridge_waitport 0
bridge_fd 0
bridge_ports eth0
address MANAGEMENT_NETWORK_IP
netmask 255.255.255.0
gateway 192.168.1.1
@trumant
trumant / user_variables.yml
Created July 26, 2016 19:52
OpenStack-Ansible OVS sample user_variables.yml
# Ensure the openvswitch kernel module is loaded
openstack_host_specific_kernel_modules:
- name: "openvswitch"
pattern: "CONFIG_OPENVSWITCH="
group: "network_hosts"
### Neutron specific config
neutron_plugin_type: ml2.ovs
neutron_ml2_drivers_type: "flat,vlan"
@trumant
trumant / dump-local-packages.yml
Created March 16, 2016 15:59
Playbook for dumping the value of local_packages
---
- name: Build repo packages var
hosts: localhost
gather_facts: false
pre_tasks:
- name: Load local packages
debug:
msg: "Loading Packages"
with_py_pkgs: "{{ pkg_locations }}"
register: local_packages
@trumant
trumant / exif.rb
Created February 26, 2017 22:08
Exif processing with Ruby
#!/usr/bin/env ruby
require "mini_exiftool_vendored"
require 'mini_exiftool'
images_directory = ARGV[0]
puts "Processing images in directory: #{images_directory}"
images_list = Dir.entries(images_directory).reject{ |d| d.start_with?(".") }.reject {|d| !d.end_with?("jpg") }.sort
@trumant
trumant / keybase.md
Created February 20, 2017 22:38
keybase proof

Keybase proof

I hereby claim:

  • I am trumant on github.
  • I am trumant (https://keybase.io/trumant) on keybase.
  • I have a public key ASBgYzpQl2ymLBpg5zNwlsRksI9n_koUvGo0MBLXeCzaVwo

To claim this, I am signing this object:

@trumant
trumant / gist:82bf9a63c73fb6694d15356b7d64c6ed
Created November 8, 2016 21:24
os_gnocchi pip install failure
TASK: os_gnocchi : Install pip packages (1 retries left).Result was: {
"attempts": 5,
"cmd": "/openstack/venvs/gnocchi-untagged/bin/pip2 install -U --constraint /opt/developer-pip-constraints.txt --constraint http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt --no-binary libvirt-python gnocchi[mysql file swift ceph] keystonemiddleware gnocchiclient python-memcached pycrypto",
"failed": true,
"invocation": {
"module_args": {
"chdir": null,
"editable": true,
"executable": null,
"extra_args": "--constraint /opt/developer-pip-constraints.txt --constraint http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt --no-binary libvirt-python",
@trumant
trumant / overrides.yml
Created August 25, 2016 15:05
nova conf overrides
---
nova_nova_conf_overrides:
DEFAULT:
vcpu_pin_set: {{ nova_compute_pin_set }}
@trumant
trumant / user_variables.yml
Last active August 18, 2016 18:18
user_variables.yml example for Ceilometer config_overrides
ceilometer_ceilometer_conf_overrides:
database:
metering_time_to_live: 300
event_time_to_live: 300