Skip to content

Instantly share code, notes, and snippets.

View trumant's full-sized avatar

Travis Truman trumant

View GitHub Profile
- name: apt-mirror
scm: git
src: http://github.com/Logan2211/ansible-apt-mirror
version: master
auto eth0
iface eth0 inet manual
auto eth0.40
iface eth0.40 inet static
address 10.240.0.11
netmask 255.255.252.0
vlan-raw-device eth0
gateway 10.240.0.1
dns-nameserver 8.8.8.8
@cloudnull
cloudnull / openstack-ansible-git-clone-mirror.sh
Created April 28, 2016 17:24
Build a mirror of all of the git repositories that the OpenStack Ansible requires from within the ROOT project.
#!/usr/bin/env bash
set -ve
CLONE_TARGET="${CLONE_TARGET:-/var/www/repo/openstackgit}"
# Clone a git repository / Update git repository.
function git_clone {
repo="$1"
dest="$2"
@upa
upa / LICENSE
Last active August 23, 2022 16:42
Ansible Module for Linux Bridge and VLAN
MIT License
Copyright (c) 2021 Ryo Nakamura
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@ewa
ewa / pgp-merge-drv
Created April 24, 2012 15:10
Git merge driver to decrypt (and re-encrypt) files before merging.
#!/bin/bash
# WARNING: This creates and manipulates clear text copies of the
# encrypted files. It tries to clean up afterwards, but lots can go
# wrong. If you are seriously worried about the secrecy of the files,
# don't trust this!
ANCESTOR=$1
MINE=$2
OTHER=$3
@taf2
taf2 / goliath_secure_streaming.rb
Created July 12, 2011 03:59
A node.js proxy for decrypting encrypted files on the fly by first requesting authorization and then using the retrieved decryption key to decode a remote file while serving it to the client...
#
# securely stream call audio files to the end user
# we store the audio files on s3, it makes storage less expensive and easier to manage
# the cost is when users fetch these files because we need to decrypt them we'll be streaming them
# through this server to decrypt, given their decryption key.
#
# ruby secure_call_stream.rb -e prod -sv
#
require 'goliath'
require 'em-http'