I'm a test
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
#!/bin/bash | |
WLAN="wlan0" | |
/usr/sbin/iw dev $WLAN set power_save off | |
echo -n "${WLAN}: " | |
/usr/sbin/iw dev $WLAN get power_save | |
exit 0 # make the command safer for boot always returning true |
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
# Copyright (C) 2010-2018 GEM Foundation | |
# | |
# OpenQuake is free software: you can redistribute it and/or modify it | |
# under the terms of the GNU Affero General Public License as published | |
# by the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# OpenQuake is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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
#!/opt/openquake/bin/python3 | |
# -*- coding: utf-8 -*- | |
# vim: tabstop=4 shiftwidth=4 softtabstop=4 | |
# | |
# Copyright (C) 2018 GEM Foundation | |
# | |
# OpenQuake is free software: you can redistribute it and/or modify it | |
# under the terms of the GNU Affero General Public License as published | |
# by the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
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
# Create an LXC with Xenial | |
lxc-create -n genode25 -t ubuntu -- -r xenial | |
# Inside the LXC | |
## Pre-requisites | |
sudo apt update | |
sudo apt install -y git python-dev python-virtualenv libpq-dev libgdal-dev openjdk-8-jdk-headless | |
## Create the virtualenv |
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
#!/bin/bash | |
# Install EPEL | |
yum install -y httpd php php-mysql php-gd php-snmp vixie-cron php-pear net-snmp net-snmp-utils graphviz subversion mysql-server mysql rrdtool fping ImageMagick jwhois nmap OpenIPMI-tools | |
pear install Net_IPv6 | |
pear install Net_IPv4 |
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
#!/bin/sh | |
#---- | |
# bootstrap centos6 | |
#release=$(cat /etc/fedora-release | awk '/^Fedora/ {print $3}') | |
#arch=$(arch) | |
release=6.3 | |
arch=x86_64 | |
ROOTFS=/rootfs/centos$release-$arch |
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
#!/bin/sh | |
#---- | |
# bootstrap fedora18 | |
#release=$(cat /etc/fedora-release | awk '/^Fedora/ {print $3}') | |
#arch=$(arch) | |
release=18 | |
arch=x86_64 | |
ROOTFS=/var/lib/libvirt/lxc/fedora$release-$arch |