Skip to content

Instantly share code, notes, and snippets.

@staplerfahrer
staplerfahrer / mountWindows7PrinterShare.md
Last active March 1, 2023 14:48
Mount a Windows 7 Printer Share after MS security patch KB505565

Install the printer driver locally.

Store HOSTNAME share credentials from the command line:

cmdkey /add:HOSTNAME /user:USER /pass:PASS

Open the control panel (For Windows 11: Windows Settings > Bluetooth & Devices

@staplerfahrer
staplerfahrer / implementWired802.1x.md
Last active December 22, 2022 16:58
Implement wired 802.1X in an Active Directory Domain, with Ubiquiti hardware and Windows clients
@staplerfahrer
staplerfahrer / quickNfsSetupUbuntu.txt
Last active June 21, 2021 17:52
Quickly set up an NFS share on Ubuntu
server:
sudo su
apt update
apt install -y nfs-kernel-server
mkdir -p /mnt/nfsdir
chown nobody:nogroup /mnt/nfsdir
chmod 777 /mnt/nfsdir
vim /etc/exports
add a line: /mnt/nfsdir CLIENT_IP_HERE(rw,sync,no_subtree_check)
@staplerfahrer
staplerfahrer / dockerKubernetesNotes.md
Last active June 24, 2021 20:44
Docker and Kubernetes notes

Install Docker on Linux from scratch

Don't use snap on Ubuntu! It will be hard to get help, diagnose issues - because it's not a widely used environment.

Install and Test docker

Taken from https://docs.docker.com/engine/install/ubuntu/

  1. sudo su
  2. apt-get update
  3. apt-get install \
    apt-transport-https \
    
@staplerfahrer
staplerfahrer / Create Shared Git Repository.md
Last active December 30, 2020 16:17 — forked from zarzen/create_git_repo.org
Create a Git repository base on any Windows shared folder
Step 1, create an environment variable for the repository directory:
set repo=\\serverName\share\repos\myRepo.git
Step 2, create the repository directory and open it:
mkdir %repo%
pushd %repo%
Step 3, initialize the bare, shared repository and go back to the local repository:
git --bare init --shared

popd

@staplerfahrer
staplerfahrer / setup.py
Last active December 17, 2020 14:59 — forked from innovia/setup.py
Packaging a Python app for offline deployment - setup.py
from setuptools import find_packages, setup
from package import Package
setup(
name='packagename',
url='http://example.com/packagename'
author='Author Name',
author_email='author@example.com',
packages=find_packages(),
include_package_data=True,
@staplerfahrer
staplerfahrer / package.py
Last active December 17, 2020 15:01 — forked from innovia/package.py
Packaging a Python app for offline deployment - package.py
from setuptools import Command
import shlex
import subprocess
import os
WHEELHOUSE = "wheelhouse"
class Package(Command):
"""Package Code and Dependencies into wheelhouse"""
# Manifest syntax https://docs.python.org/2/distutils/sourcedist.html
graft wheelhouse
recursive-exclude __pycache__ *.pyc *.pyo *.orig
exclude *.js*
exclude *.git*
exclude *.coveragerc
exclude *.sh
exclude proc*