This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import urllib2 | |
from bs4 import BeautifulSoup | |
ifile = open('data/CVE.txt', "r").readlines() | |
ofile = writer = csv.writer(open('data/export.csv', 'wb')) | |
data = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat openstack.cfg | |
keystone: | |
openstack-origin: "cloud:precise-folsom" | |
admin-password: "openstack" | |
nova-cloud-controller: | |
openstack-origin: "cloud:precise-folsom" | |
nova-volume: | |
openstack-origin: "cloud:precise-folsom" | |
overwrite: "true" | |
nova-compute: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat openstack.cfg | |
keystone: | |
openstack-origin: "cloud:precise-folsom" | |
admin-password: "openstack" | |
nova-cloud-controller: | |
openstack-origin: "cloud:precise-folsom" | |
nova-volume: | |
openstack-origin: "cloud:precise-folsom" | |
overwrite: "true" | |
nova-compute: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default["swift"]["disk_test_filter"] = [ "candidate =~ /sd[^a]/ or candidate =~ /hd[^a]/ or candidate =~ /vd[^a]/ or candidate =~ /xvd[^a]/", | |
"File.exist?('/dev/' + candidate)", | |
"not system('/sbin/parted /dev/' + candidate + ' -s print | grep linux-swap')", | |
"not system('/bin/grep FAStT ' + '/sys/block/' + candidate + '/device/model')", | |
"info['removable'] == 0.to_s" | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo -i | |
# knife exec -E '@e=Chef::Environment.load("rpcs"); @e.override_attributes(@e.override_attributes.merge({"swift"=>{"services"=>{"proxy"=>{"port"=>"8180"}}}})); @e.save' | |
# chef-client | |
# knife node run_list add node.fqdn 'role[swift-proxy-server]' | |
# chef-client |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add the following lines into /etc/nova/nova.conf | |
start_guests_on_host_boot=false | |
resume_guests_state_on_host_boot=true | |
Otherwise if you are using the RCBOPS cookbooks from https://github.com/rcbops-cookbooks/ you can do the following | |
---- | |
$ sudo -i | |
# knife exec -E '@e=Chef::Environment.load("rpcs"); \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Mon, 04 Feb 2013 08:16:59 -0500] INFO: Processing ruby_block[cleanup insecure default mysql users] action create (mysql-openstack::server line 177) | |
[Mon, 04 Feb 2013 08:16:59 -0500] ERROR: ruby_block[cleanup insecure default mysql users] (mysql-openstack::server line 177) has had an error | |
[Mon, 04 Feb 2013 08:16:59 -0500] ERROR: ruby_block[cleanup insecure default mysql users] (/var/chef/cache/cookbooks/mysql-openstack/recipes/server.rb:177:in `from_file') had an error: | |
ruby_block[cleanup insecure default mysql users] (mysql-openstack::server line 177) had an error: Mysql::Error: Can't connect to MySQL server on '0.0.0.0' (111) | |
/var/chef/cache/cookbooks/mysql-openstack/recipes/server.rb:187:in `new' | |
/var/chef/cache/cookbooks/mysql-openstack/recipes/server.rb:187:in `block (2 levels) in from_file' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource/conditional.rb:83:in `call' | |
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource/conditional.rb:83:in `evaluate_block' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE FROM security_group_instance_association WHERE id IN (SELECT id FROM instances WHERE deleted = "1"); | |
DELETE FROM block_device_mapping WHERE instance_uuid IN (SELECT uuid FROM instances WHERE deleted = "1"); | |
DELETE FROM instance_info_caches WHERE instance_uuid IN (SELECT uuid FROM instances WHERE deleted = "1"); | |
DELETE FROM instance_system_metadata WHERE instance_uuid IN (SELECT uuid FROM instances WHERE deleted = "1"); | |
DELETE FROM virtual_interfaces WHERE instance_uuid IN (SELECT uuid FROM instances WHERE deleted = "1"); | |
UPDATE fixed_ips SET allocated = 0 WHERE instance_uuid IN (SELECT uuid FROM instances WHERE deleted = "1"); | |
DELETE FROM instances WHERE deleted = "1"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import urllib2 | |
import gzip | |
import os | |
from subprocess import call | |
''' | |
Updates Transmission Blocklist with specified blocklist file. Must be run as root | |
if using default blocklist_path directory. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# apache storm nimbus upstart | |
description "apache storm nimbus" | |
start on started zookeeper | |
stop on runlevel [!2345] | |
console log | |
limit nofile 65535 65535 | |
respawn |
OlderNewer