-
Creating 2 KVM virtual machines (host1 and host2, each one them has kernel: 3.19.0-64-generic) and attached them in the network 192.168.10.0/24
-
Install LXC on each virtual machine
-
Interface of host1: 192.168.10.156
-
Interface of host2: 192.168.10.222
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
from smb.SMBConnection import SMBConnection | |
userID = 'user' | |
password = 'password' | |
client_machine_name = 'localpcname' | |
server_name = 'servername' | |
server_ip = '0.0.0.0' | |
domain_name = 'domainname' |
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 python | |
from scapy.all import * | |
fam, hw = get_if_raw_hwaddr(conf.iface) | |
# Define a callback function for when DHCP packets are received | |
def dhcp_callback(pkt): | |
# Check if the DHCP packet is a DHCP offer | |
if DHCP in pkt and pkt[DHCP].options[0][1] == 2: | |
print 'DHCP offer received from %s (%s)' % (pkt[IP].src, pkt[Ether].src) |
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 python3 | |
""" | |
BSPLoader | |
""" | |
__author__ = "Vinicios R Portella" | |
__version__ = "0.1.0" | |
__license__ = "BSD" | |
from enum import Enum, auto |
Actually Additions - Official Website - Download - Source Code
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
local class = require 'middleclass' | |
Node = class("Node") | |
function Node:initialize(data) | |
self.next = nil | |
self.data = nil | |
end |
This document is intended as a way to report the current RedFlux generation values from various mods and suggest alterations to keep integrations between then.
Right now there are a few energy sytems used by different Minecraft mods, but currently RedFlux is the most commonly used.
My main focus is liquid fuels, but solid fuels are accounted for comparison purposes.
Contributions are very much welcome.
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
apt-get install build-essential libpcre3-dev libssl-dev zlib1g-dev | |
cd /opt/ | |
wget http://nginx.org/download/nginx-1.5.6.tar.gz | |
tar -zxvf nginx-1.5.6.tar.gz | |
cd /opt/nginx-1.5.6/ | |
./configure --prefix=/opt/nginx --user=nginx --group=nginx --with-http_ssl_module | |
make | |
make install | |
adduser --system --no-create-home --disabled-login --disabled-password --group nginx |
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
######################################################################## | |
#### Custom Preseed Amlin Europe using Ubiquity | |
### By Kelly Crabbé for Amlin Europe | |
### Tested on Ubuntu Trusty Thral 14.04 LTS | |
#################################################################### | |
# General | |
#################################################################### | |
# Once installation is complete, automatically power off. |
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
from cffi import FFI | |
ffi = FFI() | |
ffi.set_unicode(True) | |
ffi.cdef(''' | |
HANDLE FindFirstVolume(LPTSTR lpszVolumeName, DWORD cchBufferLength); | |
BOOL FindVolumeClose(HANDLE hFindVolume); | |
''') | |
lib = ffi.verify(''' |
NewerOlder