Skip to content

Instantly share code, notes, and snippets.

@expeditioneer
expeditioneer / Powershell.md
Last active October 8, 2023 18:05
Windows Powershell
  1. Disable NetBIOS over TCP/IP
$ActiveNic = Get-WmiObject Win32_NetworkAdapterConfiguration -filter "ipenabled=true"
$ActiveNic.SetTcpipNetbios(2)
  1. Windows Firewall disable, enable and status
Get-NetFirewallProfile | Format-Table Name, Enabled
Set-NetFirewallProfile -Profile Domain, Public, Private -Enabled false
@expeditioneer
expeditioneer / client.cfg
Last active February 14, 2025 05:16
My custom Klipper configuration used with a modified Ender 3, BL Touch and SKR Mini E3 DIP
## Client klipper macro definitions
##
## Copyright (C) 2022 Alex Zellner <alexander.zellner@googlemail.com>
##
## This file may be distributed under the terms of the GNU GPLv3 license
##
## !!! This file is read-only. Maybe the used editor indicates that. !!!
##
## Customization:
## 1) copy the gcode_macro _CLIENT_VARIABLE (see below) to your printer.cfg
@expeditioneer
expeditioneer / apt-get-wrapper.sh
Created May 16, 2018 06:09
Wrapper for apt-get inside docker files with clean-up at the end
#!/usr/bin/env bash
DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install --no-install-recommends -q -y "$@"
apt-get clean
rm --recursive --force /var/lib/apt/lists/* /tmp/* /var/tmp/*