Skip to content

Instantly share code, notes, and snippets.

@therandomsecurityguy
therandomsecurityguy / keystone_data.sh
Created August 14, 2014 22:21
Modified DevStack keystone_data.sh script
#!/usr/bin/env bash
#
# Modified from https://github.com/openstack/keystone/blob/master/tools/sample_data.sh
# Copyright 2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@therandomsecurityguy
therandomsecurityguy / keystone_endpoint_data.sh
Last active August 29, 2015 14:05
Keystone sample data
#!/usr/bin/env bash
#
# Modified from https://github.com/openstack/keystone/blob/master/tools/sample_data.sh
# Copyright 2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@therandomsecurityguy
therandomsecurityguy / nova.conf
Last active August 29, 2015 14:05
nova.conf
[DEFAULT]
# Trunk fork: http://docs.openstack.org/trunk/config-reference/content/list-of-compute-config-options.html
# IPv6 info and IP
use_ipv6 = True
my_ip = <put your IPv6 IP here>
rpc_backend = rabbit
rabbit_host = controller.putyourowndomainhere.com
#!/bin/sh
#
# This is an example script for using netperf. Feel free to modify it
# as necessary, but I would suggest that you copy this one first.
# This script performs various UDP unidirectional stream tests.
# usage: ./netperf_udp_stream.sh [machine A's IP] [CPU] [-Tx,x] > filename.txt
#
if [ $# -gt 4 ]; then
echo "try again, correctly -> udp_stream_script hostname [CPU] [-Tx,x] [I]"
#!/bin/sh
#
# This is an example script for using netperf. Feel free to modify it
# as necessary, but I would suggest that you copy this one first.
#
# This version has been modified to take advantage of the confidence
# interval support in revision 2.0 of netperf. it has also been altered
# to make submitting its resutls to the netperf database easier
#
# usage: ./netperf_tcp_stream.sh [machine A's IP] [CPU] [-Tx,x] > filename.txt
@therandomsecurityguy
therandomsecurityguy / consul.service
Last active June 22, 2017 16:13
Consul service for systemd
[Unit]
Description=consul agent
Requires=network-online.target
After=network-online.target
[Service]
EnvironmentFile=-/etc/sysconfig/consul
Environment=GOMAXPROCS=2
Restart=on-failure
ExecStart=/usr/local/bin/consul agent $OPTIONS -config-dir=/etc/consul.d
@therandomsecurityguy
therandomsecurityguy / vault.service
Created June 22, 2017 16:14
Vault server service for systemd
[Unit]
Description=vault server
Requires=network-online.target
After=network-online.target consul.service
[Service]
EnvironmentFile=-/etc/sysconfig/vault
Restart=on-failure
ExecStart=/usr/local/bin/vault server $OPTIONS -config=/etc/vault.d
@therandomsecurityguy
therandomsecurityguy / slack-black.css
Last active August 21, 2018 16:29
Slack Black theme
body { background: #222; color: #e6e6e6; }
a { color: #949494; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; }
@therandomsecurityguy
therandomsecurityguy / ubuntu16.04.sh
Created September 25, 2018 21:42
Ubuntu 16.04 hardening script
#!/bin/bash
# Title: Ubuntu 16.04 Hardening
#
# DESCRIPTION: MODIFY / CHANGE / UPDATE / CONFIGURE
#
# Patching and Software Updates
apt-get -y update
apt-get -y upgrade
#
# File System Configuration

Keybase proof

I hereby claim:

  • I am therandomsecurityguy on github.
  • I am dchamorro (https://keybase.io/dchamorro) on keybase.
  • I have a public key whose fingerprint is EF75 2860 41CA FA9C C088 364E 1C01 B4C1 A1F8 2C12

To claim this, I am signing this object: