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
10:39 < major> well, it goes something like this: ssh-keygen -f | |
servers_CA;ssh-keygen -f users_CA | |
10:40 < major> after that: ssh-keygen -s <CA_file> -I <description> -n | |
<principals> <pubkey_file> | |
10:40 < major> for users | |
10:40 < major> and: ssh-keygen -s <CA_file> -I <description> -h -n <hostnamess> | |
<pubkey file> | |
10:40 < major> for signing host pubkeys | |
10:41 < major> you can add a @ca-authority in your authorized keys to trust all | |
signed keys by that CA |
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
# a config.ru, for use with every rack-compatible webserver. | |
# SSL needs to be handled outside this, though. | |
# if puppet is not in your RUBYLIB: | |
# $LOAD_PATH.unshift('/opt/puppet/lib') | |
$0 = "master" | |
# if you want debugging: | |
# ARGV << "--debug" |
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
--- | |
:vsphere: | |
server: '<server IP>' | |
username: 'root' | |
password: '<password>' | |
:redis: | |
server: 'dns.pool.domain.com' | |
:graphite: |
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
# Ensure PacketFilter is running | |
service { 'pfctl': | |
ensure => 'running', | |
provider => base, | |
restart => 'pfctl -d && pfctl -F all && pfctl -f /etc/pf.conf && pfctl -e', | |
start => 'pfctl -f /etc/pf.conf && pfctl -e', | |
status => "echo \"pfctl -s info 2>/dev/null | grep Status | [ $(awk '{print \$2}') == Enabled ]\" | bash", | |
stop => 'pfctl -d', | |
} |
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=Errbot | |
After=network.target | |
[Service] | |
Type=forking | |
User=errbot | |
Environment="CONFIGFILE=/etc/errbot/config.py" | |
ExecStart=/usr/local/bin/errbot --daemon --config $CONFIGFILE | |
ExecStop=/bin/kill -SIGINT $MAINPID |
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
# this simulates how a puppet agent will connect | |
openssl s_client -host puppet -port 8140 -cert /path/to/ssl/certs/node.domain.com.pem -key /path/to/ssl/private_keys/node.domain.com.pem -CAfile /path/to/ssl/certs/ca.pem | |
# outputs: | |
CONNECTED(00000004) | |
depth=1 /CN=Puppet CA: master.domain.com | |
verify return:1 | |
depth=0 /CN=macbook.local | |
verify return:1 |
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
## | |
# This module requires Metasploit: http://metasploit.com/download | |
# Current source: https://github.com/rapid7/metasploit-framework | |
## | |
require 'msf/core' | |
class Metasploit4 < Msf::Exploit::Remote |
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
using UnityEngine; | |
/** | |
* Singleton-esque inter-Scene GameObject loader. | |
* | |
* Ever wanted a singleton or global sort of GameObject that still allowed for editing properties in the Unity Editor? | |
* I sure did, for things like background music, a game controller, etc. So, I made this simple system of creating a global or "inter-scene" GameObject. It's not a true singleton, but it does a good job at ensuring there's only GameObject with this script attached. I don't like the approach of creating a persistent, additively-loaded scene -- not to mention the other approaches to making true Singleton objects -- so I've opted for a pre-fabbable GameObject approach. | |
* | |
* HowTo, in the Unity Editor (tested with 2017.3.1f1): | |
* 1. Attach this script to an empty GameObject in the current scene. |
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
if __name__ == '__main__': | |
env = gym.make('Mario-Kart-Luigi-Raceway-Multi-v0') | |
obs = env.reset() | |
env.render() | |
while not end_episode: | |
# Action should be multi-threaded + setting agent | |
for i in range(num_agents): | |
agent = i+1 |
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
Vagrant.require_version ">= 1.5.0" | |
require 'vagrant-hosts' | |
require 'vagrant-auto_network' | |
Vagrant.configure('2') do |config| | |
config.vm.define :puppetmaster do |node| | |
# An index of pre-built boxes can be found at: | |
# | |
# https://vagrantcloud.com/puppetlabs |
OlderNewer