- if physical
- secure boot boots kernel & core0 from USB stick
- if Virtualbox
- secure boot boots kernel & core0 from VM image
- if openvcloud (same as VB)
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
| import urllib.request | |
| from html.parser import HTMLParser | |
| from termcolor import colored | |
| class PrintParser(HTMLParser): | |
| def __init__(self): | |
| HTMLParser.__init__(self) | |
| self._levels = { | |
| 'Black': 0, |
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
| import socket | |
| gw = '109.88.221.1' | |
| s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| s.connect((gw, 2126)) | |
| data = s.recv(2048) | |
| clean = data[12:].decode('utf-8') |
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 | |
| set -e | |
| PATH=/tmp/ZeroTierOne/:$PATH | |
| nsname=$(echo $1 | tr " " "-") | |
| zerohome="/tmp/zerotier-home-$nsname" | |
| zeronet="8056c2e21c000001" | |
| if [ -n "$2" ]; then | |
| zeronet="$2" |
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
| from stat import * | |
| import brotli | |
| import hashlib | |
| import functools | |
| import subprocess | |
| import pwd | |
| import grp | |
| import os | |
| import sys | |
| import re |
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
| import os | |
| import re | |
| class Entry: | |
| """ | |
| filepath|hash|filesize|uname|gname|permissions|filetype|ctime|mtime|extended | |
| """ | |
| def __init__(self, path, hash, size, filetype=2, uname='root', gname='root', permissions=0o644, ctime=None, mtime=None, extended=None): | |
| self._data = { |
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 | |
| # udhcpc script edited by Tim Riker <Tim@Rikers.org> | |
| RESOLV_CONF="/etc/resolv.conf" | |
| [ -n "$1" ] || { echo "Error: should be called from udhcpc"; exit 1; } | |
| NETMASK="" | |
| [ -n "$subnet" ] && NETMASK="netmask $subnet" | |
| BROADCAST="broadcast +" |
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
| Contains patchs for G8OS Initramfs Builder |
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 | |
| TARGET="/target" | |
| VISIBLE="bin boot dev etc home lib lib64 mnt opt optvar proc root run sys sbin tmp usr var" | |
| BIND="bin boot etc home lib lib64 mnt opt optvar root run sbin tmp usr var" | |
| mkdir -p $TARGET | |
| for i in $VISIBLE; do | |
| mkdir -p $TARGET/$i | |
| done |
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
| import client | |
| init = False | |
| cl = client.Client(host='10.241.0.52') | |
| cl.ping() | |
| cl.system('mkdir /dev/btrfs').get() | |
| cl.system('mkdir /dev/btrfs/sdb').get() | |
| cl.system('mkdir /dev/btrfs/sdc').get() |