Download the latest version of cgminer. At the time of writing, this is version 4.1.0.
$ wget http://ck.kolivas.org/apps/cgminer/cgminer-4.1.0.tar.bz2
$ tar xf cgminer-4.1.0.tar.bz2
$ cd cgminer-4.1.0| #!/usr/bin/env bash | |
| # Retrieves the plaintext JNLP from a SuperMicro IPMI webserver | |
| # Usage: supermicro-java-console.sh <hostname> | |
| # supermicro-java-console.sh 10.1.2.34 > login.jnlp | |
| set -x | |
| HOST="$1" | |
| IPMI_USER=${IPMI_USER:-ADMIN} |
| #!/usr/bin/env python | |
| # | |
| # MongoDB-backed dynamic inventory script for Ansible | |
| # http://docs.ansible.com/intro_dynamic_inventory.html | |
| import os | |
| from argparse import ArgumentParser | |
| import pymongo |
Download the latest version of cgminer. At the time of writing, this is version 4.1.0.
$ wget http://ck.kolivas.org/apps/cgminer/cgminer-4.1.0.tar.bz2
$ tar xf cgminer-4.1.0.tar.bz2
$ cd cgminer-4.1.0| #!/bin/bash | |
| SECONDS_SINCE_LAST_SEGFAULT=$(( $(date '+%s') - $(date -d "$(fgrep segfault /var/log/syslog | tail -1 | awk '{ print $1,$2,$3 }')" '+%s') )) | |
| echo "IT HAS BEEN" | |
| echo -ne "\e[00;33m" | |
| figlet -f big $SECONDS_SINCE_LAST_SEGFAULT | |
| echo -ne "\e[00m" | |
| echo "SECONDS SINCE THE LAST SEGFAULT!" |
dd if=/dev/cdrom of=image.iso| Vagrant.configure("2") do |config| | |
| config.vm.box = "dummy" | |
| config.vm.synced_folder './vagrant', '/vagrant' | |
| config.ssh.private_key_path = File.expand_path("~/.ssh/id_rsa") | |
| ENV['VAGRANT_DEFAULT_PROVIDER'] = "rackspace" | |
| config.vm.provider :rackspace do |rs, override| | |
| override.vm.box = 'dummy' | |
| override.vm.box_url = 'https://github.com/mitchellh/vagrant-rackspace/raw/master/dummy.box' |
| #!/usr/bin/env python | |
| # | |
| # nova_nuke.py | |
| # usage: nova_nuke.py <uuid> | |
| # | |
| # Forcefully removes an instance from the Nova database. | |
| # Useful for destroying instances stuck in an 'error' or 'deleting' state. | |
| # | |
| # Completes the following actions: |
| #!/bin/bash | |
| # | |
| # openvswitch-bridges | |
| # | |
| # Brings up Open vSwitch bridges at boot time on Ubuntu/Debian. | |
| # Needs to start _after_ the OVS services. This usually works: | |
| # | |
| # update-rc.d openvswitch-bridges defaults 21 | |
| # | |
| ### BEGIN INIT INFO |
| description "Quantum Open vSwitch bridge ifup" | |
| author "David Wittman <[email protected]>" | |
| start on started quantum-plugin-openvswitch-agent | |
| console log | |
| # Use post-start script instead of script so it only runs once | |
| post-start script | |
| SLEEP=10 |
| DEPLOY_SCRIPT_URL = "https://github.com/rsoprivatecloud/openstack-chef-deploy/raw/master/deploy.sh" | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "dummy" | |
| config.vm.synced_folder './vagrant', '/vagrant' | |
| config.ssh.private_key_path = File.expand_path("~/.ssh/id_rsa") | |
| ENV['VAGRANT_DEFAULT_PROVIDER'] = "rackspace" | |
| config.vm.provider :rackspace do |rs, override| |