imagetouse=/home/jay/Documents/ocp-3.9.ova
vmname=ocp
nicname=enp7s0
vboxmanage controlvm ${vmname} poweroff
vboxmanage unregistervm ${vmname} --delete
vboxmanage import ${imagetouse} --options keepallmacs --vsys 0 --cpus 4 --vsys 0 --memory 16000 --vmname ${vmname}
vboxmanage modifyvm ${vmname} --nic1 nat
vboxmanage modifyvm ${vmname} --nic1 bridged --bridgeadapter1 ${nicname}
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
virt-install \ | |
–-name master1 \ | |
–-vcpus 2 \ | |
–-ram 1024 \ | |
–-network bridge=br0 \ | |
# –-connect qemu:///system \ | |
# –-disk pool=master1,size=20,bus=virtio,sparse=false \ | |
# -–location http://us.archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/ \ | |
# -–initrd-inject=preseeds/preseed.cfg \ | |
# -–extra-args="locale=en_US.UTF-8 console-setup/ask_detect=false keyboard-configuration/layoutcode=us file=file:/preseed.cfg vga=788 quiet console=tty0 utf8 console=ttyS0,115200" \ |
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 python | |
import os | |
import sys | |
import json | |
import socket | |
import datetime | |
import time | |
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 python | |
import pandas as pd | |
cur_file = './test.csv' | |
df = pd.read_csv(cur_file) | |
org_cols = df.columns.values | |
cols = {} | |
for c in org_cols: | |
print('categorizing column: {}'.format(c)) |
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
version: '3' | |
services: | |
splunkenterprise: | |
hostname: splunkenterprise | |
container_name: "splunk" | |
image: splunk/splunk:7.0.3 | |
environment: | |
SPLUNK_START_ARGS: --accept-license --answer-yes |
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
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}] |
This is the first Anti-Nex release for detecting attacks and malicious network traffic using artificial intelligence (deep neural networks with `Keras`_ and `Tensorflow`_). These tools and datasets are for quickly training models to defend applications, infrastructure and personal property.
Here are the Anti-Nex repositories on GitHub:
- Network-Pipeline - Distributed capture tools
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
node { | |
// https://registry.hub.docker.com/_/maven/ | |
def maven32 = docker.image('maven:3.2-jdk-7-onbuild'); | |
stage 'Mirror' | |
// First make sure the slave has this image. | |
// (If you could set your registry below to mirror Docker Hub, | |
// this would be unnecessary as maven32.inside would pull the image.) | |
maven32.pull() | |
// We are pushing to a private secure docker registry in this demo. |
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb
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 theme's colors are based on the original Monokai | |
// | |
// 1) Install it by adding it to an existing installed theme | |
// cd C:\Programs\MicrosoftVSCode\resources\app\extensions\theme-monokai | |
// | |
// 2) open up the theme's package.json: | |
// C:\Programs\MicrosoftVSCode\resources\app\extensions\theme-monokai\package.json | |
// | |
// 3) Add it into the package.json "contributes.themes" list: | |
// |