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
# /etc/udev/rules.d/70-hvnetdev.rules | |
SUBSYSTEM=="net", ACTION=="add", PROGRAM=="/etc/udev/hvnetdev_program", NAME="$result" |
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
@echo off & setlocal enableextensions enabledelayedexpansion & set "_bang=^!" | |
for /f "usebackq tokens=2 delims==" %%T in (`wmic os get LocalDateTime /value`) do ( | |
for /f "usebackq tokens=* delims=" %%T in ('%%T') do ( | |
set "_t=%%T" | |
set "_n=!_bang!localhost [!_t:+=\+!]" | |
) | |
) | |
pushd "%~dp0" |
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
#!/bin/bash | |
openssl s_client -showcerts -connect example.org:443 < /dev/null \ | |
| sed -n '/^-----BEGIN CERTIFICATE-----/,/^-----END CERTIFICATE-----/p' \ | |
| { | |
cert= | |
while read -r; do | |
cert+="${REPLY}"$'\n' | |
if [[ "${REPLY}" == "-----END CERTIFICATE-----" ]]; then | |
openssl x509 -in - -out - -text <<<"${cert}" |
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
<!-- : @author [email protected] | |
@echo off & setlocal enableextensions enabledelayedexpansion | |
title %~n0 | |
mode con cols=80 lines=15 | |
set "xcopyprompt=" | |
for /f "usebackq delims=" %%a in (`xcopy /lw "%~f0" "%~f0" 2^>nul ^<nul`) do if not defined xcopyprompt set "xcopyprompt=%%a" | |
for /l %%_ in (0,0,1) do ( | |
cscript //nologo "%~f0?.wsf" | |
ping -n 2 localhost > nul 2> nul | |
color 5e |
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
@echo off & setlocal enableextensions enabledelayedexpansion | |
rem wrapper around samconfig to address a single slot in a cfg-block | |
rem | |
rem samconfig host port | |
rem get device-id cfg-block-id:slot-num [value] | |
rem samconfig host port | |
rem set device-id cfg-block-id:slot-num value | |
rem | |
rem if slot-num is missing command line is passed to samconfig |
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
#!/bin/bash | |
{ | |
cat <<'EOF' | |
01.example.com | |
02.example.com alias.example.com | |
# comment |
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
@echo off & setlocal enableextensions enabledelayedexpansion | |
if "%~1" == "" ( | |
set "conf_file=%~dpn0.conf.cmd" | |
) else ( | |
set "conf_file=%~dp0%~1.conf.cmd" | |
) | |
call "%conf_file%" || ( pause & exit 1 ) |
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
@echo off & setlocal enableextensions enabledelayedexpansion | |
rem *************************************************************************** | |
rem * MountHiDrive.cmd * | |
rem * * | |
rem * Mount Strato HiDrive as network drive * | |
rem * * | |
rem * Copyright (C) 2019 BitCtrl Systems GmbH * | |
rem * @author Daniel Hammerschmidt <[email protected]> * | |
rem * @date 2019-06-25 * | |
rem * * |
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
@echo off & setlocal enableextensions enabledelayedexpansion | |
rem *************************************************************************** | |
rem * * | |
rem * Copyright (C) 2018 BitCtrl Systems GmbH * | |
rem * * | |
rem * Capture WIM images of all dos-like volumes from VSS snapshot. * | |
rem * * | |
rem * @author Daniel Hammerschmidt <[email protected]> * | |
rem * @version 2018-06-13-001 * | |
rem * * |
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
@echo off | |
setlocal enableextensions enabledelayedexpansion | |
set on_error=print_usage | |
call :main_%~1 %* 2>nul && exit /b || goto !on_error! %* | |
:print_usage | |
echo\Usage: %~n0 create ^<drive:^> ^<link^> | |
echo\ %~n0 remove ^<link^> | |
echo\ |