Skip to content

Instantly share code, notes, and snippets.

@jbatalle
jbatalle / fstab
Created March 16, 2022 08:41 — forked from tacahiroy/fstab
Mount the remote filesystem using sshfs that shared with all other users
USER@REMOTE-SERVER:/share /mnt/share fuse.sshfs defaults,idmap=user,allow_other,reconnect,ServerAliveInterval=120,TCPKeepAlive=yes,Compression=yes,IdentityFile=/root/.ssh/id_ed25519
@jbatalle
jbatalle / create_lxc.sh
Created April 4, 2017 14:20
Create LXC with shared folder
#! /bin/bash
if [ -n "$1" ]; then
CONTAINER_NAME=$1
else
CONTAINER_NAME="testlxc"
fi
SHARED_DIR=$pwd
echo -e "\033[0;32m Creating LXC: LXD FOR DEVELOPMENT \033[0m"
require 'csv'
require 'json'
require 'rest-client'
$i = 0
$num = 15
$url = "http://10.10.1.137:4000"
def remove_instance(id)
begin
heat_template_version: 2015-04-30
description: HOT template to deploy redirect servers into an existing external network subnet.
parameters:
image:
type: string
description: Name of image to use for servers
flavor:
type: string
heat_template_version: 2015-10-15
description: >
Creates a server and assigns a floating IP.
parameters:
network:
type: string
description: The network for the VM
constraints:
- {custom_constraint: neutron.network}
#!/bin/bash
[ "`whoami`" != "root" ] && echo "Should be run by root!" && exit 1
[ -e *.vmdk ] || ( echo Extracting VMDK image from *.ova ... ; tar xf *.ova )
[ -e github.img ] || ( echo Converting *.vmdk to raw image ... ; qemu-img convert *.vmdk github.img )
echo Preparing mounts ...
losetup -f github.img -P
vgchange -ay enterprise-11