Skip to content

Instantly share code, notes, and snippets.

View arossouw's full-sized avatar

Arno Rossouw arossouw

  • Anonymous
View GitHub Profile
@arossouw
arossouw / oracle-xe
Created May 17, 2016 15:28
Oracle XE init script Fedora 22
#!/bin/bash
#
#
# chkconfig: 2345 80 05
# description: This is a program that is responsible for taking care of
# configuring the Oracle Database 11g Express Edition and its associated
# services.
#
# processname: oracle-xe
# Red Hat or SuSE config: /etc/sysconfig/oracle-xe
@arossouw
arossouw / oracle_env_bash.sh
Created May 17, 2016 15:31
Bash Profile for Oracle XE Fedora 22
# file /u01/app/oracle/.bash_profile
source ~/.bashrc
# file /u01/app/oracle/.bashrc
source /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh
@arossouw
arossouw / oracle_env_bash.sh
Created May 17, 2016 15:31
Bash Profile for Oracle XE Fedora 22
# file /u01/app/oracle/.bash_profile
source ~/.bashrc
# file /u01/app/oracle/.bashrc
source /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh
@arossouw
arossouw / benchmark_vm_diskio.txt
Created August 12, 2016 11:11
benchmark diskio smc - vmware
sysbench --test=fileio --file-total-size=75G prepare
sysbench --test=fileio --file-total-size=75G --file-test-mode=rndrw --init-rng=on --max-time=300 --max-requests=0 run
sysbench --test=fileio --file-total-size=75G cleanup
Number of threads: 1
Initializing random number generator from timer.
Extra file open flags: 0
128 files, 600Mb each
@arossouw
arossouw / decorator.clj
Created January 25, 2017 12:59 — forked from Seberius/decorator.clj
dev/reno - Decorator pattern in Clojure/script
(ns patterns.decorator.core
(:require [clojure.data.json :as json]
[clojure.string :as str]
[patterns.util :refer [to-xml]]))
;; Record impl
(defprotocol IRenderable
(render [this]))
(defrecord WebService [data]
$(function () {
Highcharts.chart('container', {
chart: {
type: 'bar'
},
title: {
text: 'Events by Monitoring Server'
},
subtitle: {
text: 'January 2017'
Highcharts.chart('container', {
chart: {
type: 'column'
},
title: {
text: 'Monthly Average Rainfall'
},
subtitle: {
text: 'Source: WorldClimate.com'
},
Highcharts.chart('container', {
title: {
text: 'Chart without categories, falls back to numbers'
},
yAxis: {
title: {
text: 'Numbers'
}
},
plotOptions: {
Highcharts.chart('container', {
chart: {
type: 'column'
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
plotOptions: {
series: {
#!/usr/bin/env bash
MYSQL_HOST="localhost"
MYSQL_USERNAME="msandbox"
MYSQL_SOCKET="/tmp/mysql_sandbox10121.sock"
MYSQL_PASSWORD="msandbox"
MYSQL_EXIT_STATUS=1
BACKUP_DATE=`date +'%Y-%m-%d_%H:%M'`
BACKUP_FILE=test.sql
BACKUP_DB=test