Skip to content

Instantly share code, notes, and snippets.

View domgiles's full-sized avatar

Dominic Giles domgiles

View GitHub Profile
@domgiles
domgiles / projectile_calculation.py
Created January 1, 2018 19:16
Simple projectile calculations using numpy and matplotlib
import matplotlib.pyplot as plt
import numpy as np
# Simple projectile calculations using numpy and matplotlib
# Author : Dominic Giles
g = 9.8 # gravity
h = 0 # height where projectile is launched from
v = 10.0 # velocity of launch
import argparse
import datetime
import os
import socket
import cx_Oracle
import paramiko
from colorama import Fore
from colorama import Style
@domgiles
domgiles / alertlogparser.py
Last active April 20, 2021 17:49
Simple parse for Oracle Alert Log Files
from __future__ import print_function
import argparse
import os
import time
import humanize
import psutil
from colorama import Fore, Back
from colorama import Style, init
@domgiles
domgiles / OracleAltAir.ipynb
Created June 20, 2018 12:13
Jupyter notebook using Oracle_CX, Pandas and Altair
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
sed -i -e 's/<LogonGroupCount>1<\/LogonGroupCount>/<LogonGroupCount>5<\/LogonGroupCount>/' \
-e 's/<LogonDelay>0<\/LogonDelay>/<LogonDelay>300<\/LogonDelay>/' \
-e 's/<WaitTillAllLogon>true<\/WaitTillAllLogon>/<WaitTillAllLogon>false<\/WaitTillAllLogon>/' \
../configs/SOE_Server_Side_V2.xml
./charbench -c ../configs/SOE_Server_Side_V2.xml \
-cf ~/wallet_SBATP.zip \
-cs sbatp_low \
-u soe \
-p <your soe password> \
-v users,tpm,tps,vresp \
-intermin 0 \
-intermax 0 \
-min 0 \
-max 0 \
./oewizard -cf ~/wallet_SBATP.zip \
-cs sbatp_medium \
-ts DATA \
-dbap <your admin password> \
-dba admin \
-u soe \
-p <your soe password> \
-async_off \
-scale 5 \
-hashpart \
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<CPUMonitor Title="Compute Nodes" xmlns="http://www.dominicgiles.com/cpumonitor">
<MonitoredNode>
<HostName>129.146.65.101</HostName>
<Username>opc</Username>
<Password>Your ssh password</Password>
<Port>22</Port>
<PrivateKey>/Users/dgiles/.ssh/id_rsa</PrivateKey>
<Comment>OCI Server</Comment>
</MonitoredNode>