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
| #!/usr/bin/ruby | |
| # | |
| require 'optparse' | |
| require 'open-uri' | |
| require 'openssl' | |
| require 'json' | |
| uri = 'http://www.macvendorlookup.com/api/v2' | |
| mac_address = nil |
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
| ### Partitioning | |
| # | |
| d-i partman/early_command \ | |
| string debconf-set partman-auto/disk "\$(list-devices disk | head -n1)" | |
| d-i partman-auto/method string lvm | |
| d-i partman-lvm/device_remove_lvm boolean true | |
| d-i partman-lvm/device_remove_lvm_span boolean true | |
| d-i partman-auto/purge_lvm_from_device boolean true | |
| d-i partman-auto-lvm/new_vg_name string VolGroup00 |
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
| -- -*- coding: utf-8 -*- | |
| -- | |
| local M = {} | |
| function M.readfile(file) | |
| local conf = {} | |
| local fp = io.open(file, "r") | |
| if fp == nil then |
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
| local http = require("socket.http") | |
| local string = require("string") | |
| local ltn12 = require ("ltn12") | |
| local funcs = (loadfile "./libs/functions.lua")() | |
| local function edbot(msg) | |
| local params = { | |
| ['server'] = '0.0.0.0:8085', | |
| ['charset_post'] = "utf-8", |