Skip to content

Instantly share code, notes, and snippets.

View deoren's full-sized avatar
💭
I may be slow to respond.

Deoren Moor deoren

💭
I may be slow to respond.
View GitHub Profile
@deoren
deoren / rsyslog_features_to_test.md
Last active February 26, 2018 05:51
New rsyslog features to research/test
@deoren
deoren / rand_computer_name.ps1
Created February 18, 2018 23:45
PowerShell - Computer name with static prefix, random suffix
$prefix = 'lab'
$rand_name = $prefix + "$(new-guid)".Substring(1,11)
echo $rand_name
@deoren
deoren / install_docker_on_ubuntu.sh
Last active February 6, 2018 15:45
Setup Docker CE on Ubuntu
# Quick/crude one-shot setup script to get Docker CE installed
echo "See https://github.com/deoren/docker-testing/blob/master/setup/install-docker.sh"
@deoren
deoren / various_apps_to_reinstall.md
Last active February 26, 2018 05:51
Various apps to reinstall/reconfigure
@deoren
deoren / docker_notes.md
Last active February 26, 2018 05:51
Docker scrarch notes - rough collection of details for a doc later on

Docker: Scratch notes

Concepts

  • "When you commit a container to an image, it will remember the last run parameters you used by default"

  • Dockerfile: "Each RUN instruction produces a new layer."

Commands

@deoren
deoren / change_password.md
Created January 28, 2018 17:20
Quick tips/tricks for changing passwords

Quick tips/tricks for changing passwords

Linux

Expire password

  • sudo chage --lastday 0 ${user}

Change password

@deoren
deoren / Ubuntu_on_Hyper-V.md
Last active May 8, 2023 11:01
Ubuntu on Hyper-V

Enabling full Hyper-V support for Ubuntu

Install packages

Short version: See docs.microsoft.com link below.

Ubuntu 17.04 and later

  1. sudo apt-get update
  2. sudo apt-get install linux-image-virtual linux-tools-virtual linux-cloud-tools-virtual
@deoren
deoren / gist_first_comment.md
Created January 24, 2018 00:18
Standard Gist "first comment"

This is intended for copying/pasting as the first comment to all Gist entries I create. It's unfortunate that GitHub doesn't support notifying creators and participants in the feedback process for Gists, but this is at least something I can do to let potential viewers know that I'm not intentionally ignoring them.

As of the time this Gist entry was created, GitHub does not support notifications for comments for mentions to Gist entries (see isaacs/github#21 for details). Please contact me via Twitter or file an issue in the deoren/leave-feedback repo (created for that very purpose) if you wish to receive a response for your feedback. Thank you in advance!

@deoren
deoren / generate_test_syslog_messages.md
Created January 24, 2018 00:16
Generate test syslog messages

How to generate test syslog messages

logger command

  • TODO

echo + netcat

  • TODO
@deoren
deoren / git-prompt.sh
Created January 23, 2018 06:23
Shell script to override Git Bash's bash prompt on Windows (Git 2.0+)
# Create at $HOME/.config/git/git-prompt.sh
# The same content as the '%ProgramFiles%\Git\etc\profile.d\git-prompt.sh'
# file, but with the parts I don't like commented out.
# Many thanks to the great overview here:
# https://alanbarber.com/2015/12/30/how-to-customize-the-git-for-windows-bash-shell-prompt/
# and the original file for making it easy enough to see how to override
# the existing settings.