Instantly share code, notes, and snippets.

Nick Thieling gravcat

View GitHub Profile
View start_avconf.sh
avconv -ar 44100 \
-ac 2 \
-acodec pcm_s16le \
-f s16le \
-ac 2 \
-i /dev/zero \
-f video4linux2 \
-r ${OUTPUT_FRAMERATE} \
-i ${VIDEO_DEVICE} \
-vcodec copy \
View lvm_notes.md
View traefix-example.toml
# Uncomment this line in order to enable debugging through logs
# debug = true
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
MinVersion = "VersionTLS12"
View add_user_to_ad_group.ps1
<#
.NAME
add_user_to_ad_groups.ps1
.PARAMETER username
Username which you will add group memberships to.
.PARAMETER import_file
If not running in single_group mode (see single_group parameter), declare the CSV file that holds all desired groups to make the user become a member of.
View open_tools_as_domain_admin.ps1
param (
$domain = $env:USERDOMAIN
)
$ErrorActionPreference = "Stop"
function Get-AdminUsername {
# Admin username determinationator
$user = $env:USERNAME
View miq_appliance_upgrade.md

Upgrading the ManageIQ appliance

I've been working to upgrade ManageIQ, and there are a few paths you can take with this.

  1. Deploy a new appliance, load configs and database on
  2. Deploy from scratch, load configs and database on
  3. Upgrade the app upon the existing appliance

For this article, I'm examining the final option: upgrading the application upon the existing appliance. Guide will be written against my existing manageiq-dev server. If other options prove more viable I'll write about them as well and re-arrange this!

View openvpn@client.service
[Unit]
Description=OpenVPN connection to %i
PartOf=openvpn.service
ReloadPropagatedFrom=openvpn.service
Before=systemd-user-sessions.service
After=network-online.target
Wants=network-online.target
Documentation=man:openvpn(8)
Documentation=https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
Documentation=https://community.openvpn.net/openvpn/wiki/HOWTO
View bionic_guest_additions.sh
#!/bin/sh
# add universe and multiverse, for desktop packages and guest additions respectively
sudo sed '1 s/.*/& universe multiverse/' /etc/apt/sources.list
sudo apt update -y
sudo apt install guest-additions-dkms -y
View filebeat.yml
#Global options
filebeat.shutdown_timeout: 3s
##Logging
logging.level: error
logging.to_files: true
logging.files:
path: /var/log/filebeat
name: filebeat
keepfiles: 7
View Smart Opener.lua
@name Smart Opener
@inputs
@outputs Door
@persist P:array Distance:array A:array Target:entity D Z
@trigger
runOnChat(1)
interval(300)
#Distance
D = 120