Skip to content

Instantly share code, notes, and snippets.

View nckz's full-sized avatar

Nick Zwart nckz

View GitHub Profile
@nckz
nckz / .bashrc
Last active January 4, 2023 15:41
my monolithic bashrc with all my favorite tools and settings
# .bashrc
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
@nckz
nckz / fstab
Last active January 4, 2023 15:40
samba mount in fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# Package dependencies (Ubuntu):
# apt-get install samba cifs-utils
#
# The .smbcredentials file looks like this (omit the '# ' preceding each line):
@nckz
nckz / vmware-autostarts
Last active September 29, 2016 15:01 — forked from tommybutler/vmware-autostarts
This LSB-compliant Linux boot init script lets you auto-start VMware virtual machines on a Linux host machine running VMware Workstation. Tested successfully on Debian 7 and assumed safe for any Ubuntu or Ubuntu-based distro as well. May need some minor tweaks before you can use it on CentOS or RHEL.To use this script, follow installation instru…
#!/usr/bin/env bash
### BEGIN INIT INFO
# Provides: vmwareautostart
# Required-Start: $vmware $network $syslog
# Required-Stop: $vmware $network $syslog
# X-Start-Before:
# X-Stop-After:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6