Skip to content

Instantly share code, notes, and snippets.

@signed8bit
signed8bit / gist:3150095
Created July 20, 2012 10:38
Database Init Error dotCMS 2.1 with Oracle 11.2.0.2
[20/07/12 09:26:35:150 UTC] WARN util.JDBCExceptionReporter: SQL Error: 2291, SQLState: 23000
[20/07/12 09:26:35:151 UTC] ERROR util.JDBCExceptionReporter: ORA-02291: integrity constraint (ROOT.FK_PLUGIN_PLUGIN_PROPERTY) violated - parent key not found
[20/07/12 09:26:35:152 UTC] ERROR impl.SessionImpl: Could not synchronize database state with session
[20/07/12 09:26:35:169 UTC] ERROR util.ImportExportUtil: Unable to save Object to Hibernate Session
com.dotmarketing.exception.DotHibernateException: Unable to save Object to Hibernate Session
at com.dotmarketing.db.HibernateUtil.save(HibernateUtil.java:448)
at com.dotmarketing.util.ImportExportUtil.doXMLFileImport(ImportExportUtil.java:1433)
at com.dotmarketing.util.ImportExportUtil.doXMLFileImport(ImportExportUtil.java:1051)
at com.dotmarketing.util.ImportExportUtil.doImport(ImportExportUtil.java:314)
@signed8bit
signed8bit / media-server-startup.scpt
Created March 10, 2013 14:34
An AppleScript to mount an AFP volume where your iTunes media lives followed by a delayed startup of iTunes once the volume is available.
tell application "Finder"
mount volume "afp://user:password@nas-server/Media"
repeat 3 times
delay 5
if disk "Media" exists then
tell application "iTunes"
activate
end tell
exit repeat
@signed8bit
signed8bit / gist:11225557
Created April 23, 2014 17:40
Vagrant file for devstack using VMware
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider 'vmware_fusion' do |v|
v.vmx['memsize'] = '2048'
v.vmx['numvcpus'] = '2'
@signed8bit
signed8bit / gist:11225629
Created April 23, 2014 17:43
Vagrant provision script for devstack
#!/bin/bash
# Dependencies
apt-get update
apt-get install -y git
# Obtain and configure DevStack
cd /home/vagrant/ && git clone https://github.com/openstack-dev/devstack.git
cat > /home/vagrant/devstack/local.conf << 'EOF'
@signed8bit
signed8bit / gist:d3459fb3dd65bed6df41
Last active August 29, 2015 14:06
CoderFaire Heat Example
heat_template_version: 2013-05-23
description: >
A template showing how to create a Nova instance, a Cinder volume and attach
the volume to the instance. The template uses only Heat OpenStack native
resource types.
parameters:
instance_type:
type: string
Tennessee State Museum is a good start...
=========================================
http://www.tnmuseum.org
More Museums
============
Frist Center for the Visual Arts - http://fristcenter.org
@signed8bit
signed8bit / netloc.sh
Created May 2, 2016 13:27
A simple wrapper script for setting a network location on OS X using the networksetup command.
#! /usr/bin/env bash
##
# Switches to the specified network location
##
function switch_location() {
if ! /usr/sbin/networksetup -switchtolocation "${loc}" >/dev/null 2>&1 ; then
echo "Error: Network location \"${loc}\" not found"
fi
}
@signed8bit
signed8bit / python-commit-job-script.sh
Created July 11, 2016 21:06
DEVNET-1027 python-commit-job Script
#!/usr/bin/env bash
set -e
virtualenv .test_venv
source .test_venv/bin/activate
cd ${WORKSPACE}/${GERRIT_PROJECT}
pip install -r requirements-dev.txt
@signed8bit
signed8bit / python-release-job-script.sh
Created July 11, 2016 21:08
DEVNET-1027 python-release-job-script Script
#!/usr/bin/env bash
set -e
virtualenv .publish_venv --system-site-packages
source .publish_venv/bin/activate
cd ${WORKSPACE}/${GERRIT_PROJECT}
pip install devpi-client
@signed8bit
signed8bit / setting-up-a-pipeline.md
Last active March 16, 2017 19:25
DEVNET-1027 Setting up a Pipeline

Setting up a Pipeline

Commit Job

  • New Item -> Freestyle Project

    • Name: python-commit-job
  • General