Skip to content

Instantly share code, notes, and snippets.

@nconder
nconder / gist:f1b055a3d35c7e542c4ba2e732d9775e
Created July 18, 2021 01:48
create_docker_volume_from_cifs.txt
# Create a docker volume from cifs/smb share for a containers to use.
# Run the below in the docker server shell after you replace server, user, password, and name.
docker volume create \
--driver local \
--opt type=cifs \
--opt device=//192.168.1.100/SHANENAME \
--opt o=addr=192.168.1.100,username=USER,password='PASSWORD',file_mode=0777,dir_mode=0777 \
--name DOCKER_VOL_NAME
@nconder
nconder / Save-KBFile.ps1
Created May 4, 2020 21:06 — forked from potatoqualitee/Save-KBFile.ps1
Download Windows patch files / KB (patchid like KBxxxxx) and save them to disk using PowerShell
function Save-KBFile {
<#
.SYNOPSIS
Downloads patches from Microsoft
.DESCRIPTION
Downloads patches from Microsoft
.PARAMETER Name
The KB name or number. For example, KB4057119 or 4057119.
@nconder
nconder / glasshole.bat
Last active March 6, 2018 04:42
glasshole.bat
@echo off
ECHO Created by Opulent Computing
ECHO Version 0.1
ECHO glasshole.bat with Windows Server 2012 R2, 2012, 2008 R2, 2008 DHCP Server.
ECHO This batch fill will block any device with in the a MAC address range from obtaining an IP from the servers.
ECHO We assume you already have a Windows Server 2012 R2, 2012, 2008 R2, 2008 DHCP Server running.