I hereby claim:
- I am antonlindstrom on github.
- I am antonl (https://keybase.io/antonl) on keybase.
- I have a public key ASC0-oxgetbcz6dSKBKlVGf0laUql6EnWZSqfAa-CRNVzQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # | |
| # Licensed to the Apache Software Foundation (ASF) under one or more | |
| # contributor license agreements. See the NOTICE file distributed with | |
| # this work for additional information regarding copyright ownership. | |
| # The ASF licenses this file to You under the Apache License, Version 2.0 | |
| # (the "License"); you may not use this file except in compliance with | |
| # the License. You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |
| #HOST=127.0.0.1 | |
| MASTER=`cat /etc/mesos/zk` |
| # Ruby 2.0 | |
| # | |
| # VERSION 0.0.1 | |
| FROM ubuntu | |
| MAINTAINER Anton Lindstrom "anton@alley.se" | |
| RUN apt-get install -y build-essential | |
| RUN apt-get install -y bison openssl wget | |
| RUN apt-get install -y libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev |
| config_extra => [ | |
| 'RewriteEngine On', | |
| 'RewriteMap domains txt:/etc/apache2/domains.txt', | |
| "RewriteCond %{HTTP_HOST} !${::ipaddress_eth1}|${::fqdn}", | |
| 'RewriteRule ^/$ ${domains:%{HTTP_HOST}} [NC,L,R=301]', | |
| 'RewriteCond %{HTTPS} off', | |
| 'RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [NC]', | |
| ], |
| <VirtualHost *:80> | |
| ServerAdmin webmaster@localhost | |
| RewriteEngine On | |
| RewriteMap exampledomain txt:/etc/apache2/domains.txt | |
| RewriteRule ^/$ ${exampledomain:%{HTTP_HOST}} | |
| RewriteLog /var/log/apache2/rewrite.log | |
| RewriteLogLevel 5 |
| #!/usr/bin/perl | |
| ### check_file_size.pl | |
| # Based on check_backup.pl by Nathan Vonnahme | |
| # | |
| use strict; | |
| use warnings; | |
| use File::stat; | |
| use Getopt::Long; |
| e1b7418ca70a889337b0f67e18fb6176 | |
| e1b7418ca70a889337b0f67e18fb6176 |
| anton:~ 3> ./bin/fog | |
| Welcome to fog interactive! | |
| :default provides Glesys, VirtualBox and VirtualBox | |
| >> compute = Compute.new(:provider => 'glesys') | |
| >> # The output has been removed, it will show the connection information | |
| >> # Below command will show all servers on the account | |
| >> compute.servers.all | |
| <Fog::Compute::Glesys::Servers | |
| [] | |
| > |
| #!/usr/bin/perl -w | |
| # vim:ts=4 | |
| # | |
| # Check RAID status. Look for any known types | |
| # of RAID configurations, and check them all. | |
| # Return CRITICAL if in a DEGRADED state, since | |
| # if the whole array has failed you'll have already noticed it! | |
| # Return UNKNOWN if there are no RAID configs that can be found. | |
| # Return WARNING if rebuilding or initialising | |
| # |