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
- name: apt-mirror | |
scm: git | |
src: http://github.com/Logan2211/ansible-apt-mirror | |
version: master |
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
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 |
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 | |
set -ve | |
CLONE_TARGET="${CLONE_TARGET:-/var/www/repo/openstackgit}" | |
# Clone a git repository / Update git repository. | |
function git_clone { | |
repo="$1" | |
dest="$2" |
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
# | |
# 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' |
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 | |
# 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 |
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
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: |