Skip to content

Instantly share code, notes, and snippets.

[root@pablo recipe]# make ovirt-node-image.iso
( \
echo "PRODUCT='"oVirt Node Hypervisor"'" ;\
echo "PRODUCT_SHORT='"oVirt Node Hypervisor"'" ;\
echo "PACKAGE=ovirt-node-image" ;\
echo "VERSION=2.2.1" ;\
echo "RELEASE=0.fc16.git0c2e4b3" ;\
) > version.ks
./node-creator ovirt-node-image.ks
attention: libgcc-4.6.2-1.fc16.x86_64: Entête V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
La transaction n'a pas pu démarrer :
installing package ql2200-firmware-2.02.08-4.fc15.noarch needs 76KB on the / filesystem
installing package ql23xx-firmware-3.03.28-2.fc15.noarch needs 368KB on the / filesystem
installing package rootfiles-8.1-7.fc15.noarch needs 420KB on the / filesystem
installing package ql2100-firmware-1.19.38-4.fc15.noarch needs 520KB on the / filesystem
installing package ql2400-firmware-5.06.02-1.fc16.noarch needs 816KB on the / filesystem
Error creating Live CD : Unable to install: Impossible d'exécuter la transaction.
@primalmotion
primalmotion / setup.py
Created January 4, 2012 17:28
Hack for adding dependencies with setuptools when generating RPMS
## add this in the beginning of your setup.py script
## and change the RPM_REQUIRED_DEPS variable to reflect your dependencies
RPM_REQUIRED_DEPS = "archipel-core, python-imaging, libvirt-python"
## HACK FOR DEPS IN RPMS
from setuptools.command.bdist_rpm import bdist_rpm
def custom_make_spec_file(self):
spec = self._original_make_spec_file()
lineDescription = "%description"
def iq_park(self, iq):
"""
Park virtual machine
@type iq: xmpp.Protocol.Iq
@param iq: the received IQ
@rtype: xmpp.Protocol.Iq
@return: a ready to send IQ containing the result of the action
"""
#try:
if True:
@primalmotion
primalmotion / gist:1467003
Created December 12, 2011 12:50
alloc+define
cat definition.xml
<iq type='set'>
    <query xmlns='archipel:hypervisor:control'>
        <archipel action='alloc' name='MA VM'>
            <domain type='kvm'>
 THIS WILL BE IGNORED: you can remove the name tag
@primalmotion
primalmotion / script
Created December 7, 2011 18:18 — forked from cho45/script
Gyazo.app
#!/usr/bin/env ruby
require 'fileutils'
require 'pathname'
require 'uri'
require 'net/http'
require 'securerandom'
Net::HTTP.version_1_2
include FileUtils
Would you like to build the JavaScriptCore engine for Narwhal?
This is optional but will make building and running Cappuccino and Objective-J
much faster.
Enter "yes" or "no":
yes
sh configure
Detected <JavaScriptCore/JavaScript.h>
#find lib -name "*.dylib" \! -path "*.dSYM*" -exec install_name_tool -change "/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore" "@executable_path/../frameworks/JavaScriptCore.framework/JavaScriptCore" {} \;
find lib -name "*.dylib" \! -path "*.dSYM*" -exec install_name_tool -change "lib/libnarwhal.dylib" "@executable_path/../lib/libnarwhal.dylib" {} \;
echo 'export NARWHAL_JSC_MODE="webkit"' > narwhal-jsc.conf
"""
_______ ____ ___ __ __________(_)__ ___
/ __/ _ `/ _ \/ _ \/ // / __/ __/ / _ \/ _ \
\__/\_,_/ .__/ .__/\_,_/\__/\__/_/_//_/\___/
/_/ /_/
Welcome to Cappuccino !
==============================================================================
/*
* This file is a part of program xcodecapp-cocoa
* Copyright (C) 2011 Antoine Mercadal (primalmotion@archipelproject.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
/*
* This file is a part of program xcodecapp-cocoa
* Copyright (C) 2011 Antoine Mercadal (primalmotion@archipelproject.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,