Skip to content

Instantly share code, notes, and snippets.

<html>
<body>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'lalalalalala',
xfbml : true,
version : 'v2.5'
});
@imduffy15
imduffy15 / cloud.cfg
Last active April 9, 2024 07:15
Cloud-init config example for using the none data source provider to setup a box for usage with vagrant on finding no cloud metadata service.
disable_ec2_metadata: True
datasource_list: [ "ConfigDrive", "None"]
datasource:
None:
userdata_raw: |
#!/bin/bash
groupadd vagrant
useradd -d /home/vagrant -s /bin/bash -m -g vagrant -G wheel vagrant
echo "root:vagrant" | chpasswd
proxy_cache_path /usr/local/Cellar/nginx-full/1.8.0/cache levels=1 keys_zone=STATIC:50m inactive=200d max_size=12g;
server {
listen 8080 default_server;
server_name localhost _;
root /usr/local/var/www;
# location /content/dist/r:hel/server/7/7Server/x86_64/ {
# proxy_cache STATIC;
@imduffy15
imduffy15 / README.md
Created February 14, 2015 11:24
Coolest Projects UI

CoolestProjects UI

class Test {
private static int hello = 1;
public static void main(String[] args) {
System.out.println(hello); // prints 1
int hello = 2;
System.out.println(hello); // prints 2
}
}
class Main {
public static void main(String[] args) {
final int MAXRANDOM = 130;
int[] arrayToBeSorted = new int[1000];
fillArrayWithRandomIntegers(arrayToBeSorted, MAXRANDOM);
int[] arrayToBeSortedWithMergeSort = new int[1000];
System.arraycopy(arrayToBeSorted, 0, arrayToBeSortedWithMergeSort, 0, arrayToBeSorted.length);
ERROR [c.c.v.VirtualMachineManagerImpl] (Work-Job-Executor-3:ctx-b08e5308 job-12/job-13 ctx-fe905c59) Failed to start instance VM[User|i-2-3-VM]
java.lang.NumberFormatException: For input string: "Mon"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:441)
at java.lang.Long.parseLong(Long.java:483)
at com.cloud.maint.Version.compare(Version.java:36)
at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.checkRouterVersion(VirtualNetworkApplianceManagerImpl.java:4390)
at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.sendCommandsToRouter(VirtualNetworkApplianceManagerImpl.java:3752)
at com.cloud.network.router.VirtualNetworkApplianceManagerImpl$7.execute(VirtualNetworkApplianceManagerImpl.java:3175)
at com.cloud.network.router.VirtualNetworkApplianceManagerImpl.applyRules(VirtualNetworkApplianceManagerImpl.java:4038)
{
"description": "This box is a Xenserver 6.2 installation.\r\n\r\nThe packer files can be found at https://github.com/imduffy15/packer-xenserver",
"short_description": "Xenserver 6.2",
"name": "duffy/xenserver",
"versions": [
{
"version": "0.0.3",
"status": "active",
"description_html": "<p>Add SP1</p>\n",
"description_markdown": "Add SP1",
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
@imduffy15
imduffy15 / GSoC2014.md
Created August 12, 2014 18:02
Apache Cloudstack - Google Summer of Code 2014.

Apache Cloudstack - Google Summer of Code 2014.

As part of Google Summer of Code 2014 (GSoC) I worked with Apache Cloudstack. The project revolved around automating different environments to ease development, testing and production installation.

During the period I was exposed to many different technologies including:

  • Chef: Configuration management tool.
  • Packer: Open Source tool for creating identical machine images from a single source configuration.
  • XenServer: Hypervisor that is supported by Apache Cloudstack.
  • Vagrant: Wrapper around VirtualBox and Configuration management utilities.