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
systemLog: | |
destination: file | |
path: /usr/local/var/log/mongod.log | |
logAppend: true | |
storage: | |
dbPath: /usr/local/var/mongodb | |
directoryPerDB: true | |
engine: wiredTiger | |
wiredTiger: | |
engineConfig: |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.mongodb.mongod</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/mongod</string> | |
<string>--config</string> |
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
-----BEGIN RSA PRIVATE KEY----- | |
MIIEpQIBAAKCAQEA7kgng7O2W2y6iRaQGsA8Ed3wQRSKNAi/M99gLdbh186UJJY6 | |
sOeKG//KfdHK65AVTtRwdiRLlzlykdvaSZVrd+8vUcU/MmI3Z/pUdfNWBQ83InnF | |
NvkV1w7N602Kn+UqSM8eZYDuULK8ZPa186w4C7nTV3S8BftZdLLM6VcLvuNaJmLJ | |
IDj3QYZ1vBM7zvBqwT8yh78A0Obqq2cgDV084lhaWNQjul32xBIy+0rSpQNnKMJz | |
7nT4oQ0sT6ksxJyyGIQXSzHvMCZX979E62ZC4i3A8/cnahfbcKIX+/m6geqngqen | |
CFeSZrwPGQOPWazvHS50E6kekoM9d4kWk3kqpQIDAQABAoIBAC/WMoChQpnmISjG | |
a9XDBAw+Ny6JlhlOLDyYurFZM2vk4B7cPhon0bU/TAKobImQGocB5TYCoV5RvSuF | |
LLSbF8EzNpe+9qoBx8fLHMu1N266mEIGmk4oAXd0VGjJ32usUSne0uZj1PREfcfz | |
M6Igz/uiqcgj+l9lD5d7EeJChGwky0mf6qE+R0q5y09xCMGAvblVJIZYXx+Uu2UQ |
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
#cloud-config | |
coreos: | |
etcd2: | |
discovery: https://discovery.etcd.io/f559f40b3c19071537ee82fac1318109 | |
advertise-client-urls: http://$private_ipv4:2379,http://$private_ipv4:4001 | |
initial-advertise-peer-urls: http://$private_ipv4:2380 | |
listen-client-urls: http://0.0.0.0:2379,http://0.0.0.0:4001 | |
listen-peer-urls: http://$private_ipv4:2380 | |
units: |
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
[Unit] | |
Description=consul | |
Requires=network-online.target | |
After=network-online.target | |
[Service] | |
ExecStart=/usr/local/bin/consul agent -bootstrap -bind 192.168.6.80 -client 192.168.6.80 -data-dir /var/consul -dc qa -log-level info -node consul -server -syslog -ui -ui-dir /var/consul/www | |
[Install] | |
WantedBy=multi-user.target |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "debian/jessie64" | |
config.vm.define "lb" do |lb| | |
lb.vm.hostname = "lb" | |
lb.vm.network "private_network", ip: "192.168.33.10" | |
lb.vm.provision "shell", inline: <<-SHELL |
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
[Unit] | |
Description=consul-template | |
Requires=network-online.target,consul | |
After=network-online.target,consul | |
[Service] | |
ExecStart=/usr/local/bin/consul-template -consul 192.168.6.80:8500 -template "/etc/consul.d/nginx.ctmpl:/etc/nginx/conf.d/nginx.conf:nginx -s reload" | |
[Install] | |
WantedBy=multi-user.target |
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
public class OAuthBase | |
{ | |
/// <summary> | |
/// Provides a predefined set of algorithms that are supported officially by the protocol | |
/// </summary> | |
public enum SignatureTypes | |
{ | |
HMACSHA1, | |
PLAINTEXT, |
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
public class oAuthTwitter : OAuthBase | |
{ | |
public enum Method { GET, POST }; | |
public const string REQUEST_TOKEN = "http://twitter.com/oauth/request_token"; | |
public const string AUTHORIZE = "http://twitter.com/oauth/authorize"; | |
public const string ACCESS_TOKEN = "http://twitter.com/oauth/access_token"; | |
public const string XAUTH_ACCESS_TOKEN = "https://api.twitter.com/oauth/access_token"; | |
private string _consumerKey = ""; | |
private string _consumerSecret = ""; |
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
openssl req -x509 -newkey rsa:4096 -keyout certificate.key -out certificate.crt -days 365 [-nodes] |
OlderNewer