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
const { ArgumentParser } = require('argparse') | |
const fs = require('fs') | |
const path = require('path') | |
const mkdirp = require('mkdirp') | |
const packageInfo = require('./package') | |
const argparser = new ArgumentParser({ | |
addHelp: true, | |
description: 'Extract files from an ignition config', | |
version: packageInfo.version |
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 datetime import datetime, date | |
from json import dumps | |
import fileinput | |
import re | |
import sys | |
# detect useless "page x of n" lines | |
page_regex = re.compile(r'^Page,[0-9]+,of,[0-9]+') | |
def parse_input(): |
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
# delete existing rules | |
iptables -F | |
# drop all traffic not explicitly allowed | |
iptables -P INPUT DROP | |
iptables -P FORWARD DROP | |
iptables -P OUTPUT DROP | |
# allow ping from inside | |
iptables -A OUTPUT -p icmp --icmp-type echo-request -j ACCEPT |
OlderNewer