Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# Since Opera 51, Opera does not support Trusty even though Trusty is not EOL.
#
# Opera will refuse to install on Trusty only beacuse the new opera package requires libdbus-1-3 (>= 1.9.14)
# However, opera works perfectly well with libdbus-1-3 (>= 1.6.18) on Trusty.
# This script alters the package requirement in order to be able to install opera on Ubuntu Trusty
#
# This script is provided as is, is not afiliated to Opera Software and comes with no support at all.
# Use at your own risks.
@ygbourhis
ygbourhis / redshift-auto-set-manual-location
Last active January 3, 2018 16:31
due to https://bugs.launchpad.net/ubuntu/+source/redshift/+bug/868904 set redshift to use a manual location and configure this location automaticaly
#!/usr/bin/env python
import ConfigParser
import Geoclue
import os
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
import sys
import time
#!/usr/bin/env python
'''
Save this file and add the following line to your ~/.bashrc"
export PYTHONSTARTUP="$HOME/.pythonrc"
'''
def run_from_ipython():
try:
__IPYTHON__
return True
#!/usr/bin/env python
"""
Quick and dirty workaround for https://bugs.launchpad.net/heat/+bug/1599104
add rabbitmq_management plugin:
sudo /usr/lib/rabbitmq/bin/rabbitmq-plugins enable rabbitmq_management
sudo service rabbitmq-server restart
install rabbitmqadmin which is provided by rabbitmq_management:
cd /usr/bin
@ygbourhis
ygbourhis / cloud_archive_juno.list
Last active February 2, 2016 16:38
devstack cloud_archive_juno.list
deb http://ubuntu-cloud.archive.canonical.com/ubuntu trusty-updates/juno main
# -*- 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|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Sample ``local.conf`` for user-configurable variables in ``stack.sh``
# NOTE: Copy this file to the root ``devstack`` directory for it to
# work properly.
# ``local.conf`` is a user-maintained setings file that is sourced from ``stackrc``.
# This gives it the ability to override any variables set in ``stackrc``.
# Also, most of the settings in ``stack.sh`` are written to only be set if no
# value has already been set; this lets ``local.conf`` effectively override the
# default values.
@ygbourhis
ygbourhis / local.conf
Created January 28, 2015 13:06
devstack local.conf
# Sample ``local.conf`` for user-configurable variables in ``stack.sh``
# NOTE: Copy this file to the root ``devstack`` directory for it to
# work properly.
# ``local.conf`` is a user-maintained setings file that is sourced from ``stackrc``.
# This gives it the ability to override any variables set in ``stackrc``.
# Also, most of the settings in ``stack.sh`` are written to only be set if no
# value has already been set; this lets ``local.conf`` effectively override the
# default values.
@ygbourhis
ygbourhis / stack.sh.log
Created January 28, 2015 13:09
devstack WARNING: urllib3.connectionpool HttpConnectionPool is full, discarding connection
This file has been truncated, but you can view the full file.
2015-01-28 12:37:44.774 | + SSL_BUNDLE_FILE=/opt/stack/data/ca-bundle.pem
2015-01-28 12:37:44.774 | + rm -f /opt/stack/data/ca-bundle.pem
2015-01-28 12:37:44.775 | + source /home/vagrant/devstack/lib/database
2015-01-28 12:37:44.775 | + source /home/vagrant/devstack/lib/rpc_backend
2015-01-28 12:37:44.778 | + check_rpc_backend
2015-01-28 12:37:44.779 | + local c svc
2015-01-28 12:37:44.779 | + local rpc_needed=1
2015-01-28 12:37:44.780 | ++ grep -rl iniset_rpc_backend /home/vagrant/devstack/lib/
2015-01-28 12:37:44.780 | ++ awk -F/ '{print $NF}'
2015-01-28 12:37:44.782 | + rpc_candidates='glance
@ygbourhis
ygbourhis / worlddump-2015-01-28-124455.txt
Created January 28, 2015 13:11
devstack worlddump-2015-01-28-124455.txt
File System Summary
===================
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 40G 3.1G 35G 8% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 2.0G 12K 2.0G 1% /dev
tmpfs 396M 416K 395M 1% /run
none 5.0M 0 5.0M 0% /run/lock