This file contains 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
openstack image create --disk-format qcow2 --container-format bare --public --file ./debian-9-openstack-amd64.qcow2 debian-9-jpastor |
This file contains 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 bash | |
# The network interface | |
IF=eth0 | |
# This is the list of the vip of eth0 | |
ips=$(ip addr show dev $IF|grep "inet .*/32" | awk '{print $2}') | |
if [[ ! -z "$ips" ]] | |
then | |
# vip detected | |
echo $ips |
This file contains 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
ROOM_CONFIG = [ | |
{ | |
"name": "watt_cooler_ext", | |
"info": "Flukso exterior", | |
"unit": "W", | |
"sensor_type": "wattmeter", | |
"location": "cooler_electrical_board", | |
"coordinates": { | |
"x": "50%", | |
"y": "-5%" |
This file contains 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
#include <OneWire.h> | |
/////////////////////////////////////////////////////// | |
// Stuff related to ds18b20 | |
/////////////////////////////////////////////////////// | |
// The pin for the data wire of the onewire bus | |
#define ONEWIRE_PIN 5 | |
// Enable debug messages | |
#define DEBUG |
This file contains 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
repeatDelay 300 | |
Line | |
{ | |
name Core | |
flags useAlpha | |
life 10 |
This file contains 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
// Simple bryar pistol effect | |
Line | |
{ | |
name Core | |
origin 8 0 0 | |
origin2 -80 0 0 | |
flags useAlpha |
This file contains 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
OpenJK-MP: v1.0.1.0 macosx-x86_64 Mar 11 2017 | |
----- FS_Startup ----- | |
Current search path: | |
/Users/jonathan/Library/Application Support/OpenJK/base/assets6.pk3 (29 files) | |
/Users/jonathan/Library/Application Support/OpenJK/base/assets3.pk3 (16 files) | |
/Users/jonathan/Library/Application Support/OpenJK/base/assets2.pk3 (62 files) | |
/Users/jonathan/Library/Application Support/OpenJK/base/assets1.pk3 (8320 files) | |
/Users/jonathan/Library/Application Support/OpenJK/base/assets0.pk3 (15346 files) | |
/Users/jonathan/Library/Application Support/OpenJK/base | |
/Users/jonathan/Documents/workspace/openjk/GameData/JediAcademy/openjk.x86_64.app/Contents/MacOS/base |
This file contains 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 bash | |
set -u | |
set -e | |
set -x | |
# Check if the GameData folder has been provided | |
if [ "$1" == "" ]; then | |
echo "Provide the path to the Gamedata folder as first parameter" |
This file contains 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 | |
HOSTNAME=$(hostname) | |
UUID=$(uuidgen) | |
SNAPSHOT_NAME="$HOSTNAME_$UUID" | |
# Create a tar file of the contents of your instance: | |
tar cf /tmp/snapshot.tar / --selinux --acls --xattrs --numeric-owner --one-file-system --exclude=/tmp/* --exclude=/proc/* --exclude=/boot/extlinux |
This file contains 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 | |
HOSTNAME=$(hostname) | |
UUID=$(uuidgen) | |
SNAPSHOT_NAME="$HOSTNAME_$UUID" | |
# Install prerequisite software (only required for XFS file systems, which is the default on CentOS 7): | |
yum install -y libguestfs-xfs |
NewerOlder