Target for maximum number of vnodes
Maximum number of files
Current secure level
#!/bin/env/python | |
# -*- encoding: utf8 -*- | |
# Move file to parent directory if it's the only one there including sub-directories. | |
# usage: script.py <directory> | |
# script.py /stuff/files/ | |
import os | |
import sys | |
from shutil import move |
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<configSections> | |
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> | |
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Culture=neutral" requirePermission="false" /> | |
</configSections> | |
<system.web> | |
<compilation debug="true" targetFramework="4.5"> | |
<assemblies> |
#!/bin/bash -e | |
# Generate SystemD .network files for network interface automatically | |
# (c) Pekka Järvinen 2019- | |
# Check that there are arguments given | |
if [ "$#" -eq 0 ]; then | |
echo "No arguments were given. See $0 --help or $0 -h for usage instructions." 1>&2 | |
exit 1 | |
fi |
import json | |
import subprocess | |
import sys | |
from pathlib import Path | |
skipped_keys = [ | |
'sig_id', | |
'signer', | |
'sig_key', | |
'sig_hashalgo', |
#!/bin/bash | |
# (C) Pekka Järvinen 2022 | |
# Name for bridge which virtual namespaces will use to communicate with each other | |
BRIDGENAME="gamebr0" | |
# Prefix for network | |
NETPREFIX="192.168.255." | |
# Starting IP (NETPREFIX + this) | |
let STARTIP=10 |
#!/bin/sh | |
# Function for printing | |
p() | |
{ | |
KEY=$1 | |
TYPE=$2 | |
DESCR=$3 | |
# last character is '.' |
# List established IPs and ports with DNS resolved names and program names | |
$nfo = @() | |
ForEach ($c in Get-NetTCPConnection -State Established) { | |
if ($c.LocalAddress -eq $c.RemoteAddress) { | |
# skip same IP's | |
Continue | |
} | |
$prog = (Get-Process -Id $c.OwningProcess) |
#!/bin/bash -e | |
# Output JSON from ImageMagick magick identify command | |
if [[ $# -eq 0 ]] ; then | |
echo "Usage:" | |
echo " $0 <filename>" | |
echo "" | |
exit 0 | |
fi |
#!/bin/sh | |
# Enable/Disable LLDP on vSwitch ports on VMWare ESXi | |
# Tested with ESXi 6.0.0 3620759 | |
# Doesn't need vCenter, only SSH access to the ESXi machine | |
# (c) Pekka "raspi" Jarvinen 2016 http://raspi.fi/ | |
SWITCH=$1 | |
OPERATION=$2 | |
if [ "$SWITCH" = "" ] || [ "$OPERATION" = "" ]; then |