Skip to content

Instantly share code, notes, and snippets.

View jbouse's full-sized avatar

Jeremy T. Bouse jbouse

View GitHub Profile
Section "InputClass"
Identifier "DualPoint Stick blacklist"
MatchProduct "DualPoint Stick"
Option "Ignore" "on"
EndSection
@jbouse
jbouse / fix-git-authors.sh
Created March 2, 2016 01:47
Found online, can't recall source to give credit
#!/bin/bash
#
# Changes author and committer name and email throughout the whole repository.
# Uses a file with the following format:
#
# john.doe@hotmail.com=John Doe <john.doe@hotmail.com>
# jill.doe@hotmail.com=Jill Doe <jill.doe@hotmail.com>
#
if [ ! -e "$1" ]
@jbouse
jbouse / install.ps1
Created January 31, 2016 05:19
PowerShell install for NuGet.exe
$sourceNugetExe = "http://nuget.org/nuget.exe"
$targetNugetExe = "$env:TEMP\nuget.exe"
Invoke-WebRequest $sourceNugetExe -OutFile $targetNugetExe
$p = Start-Process $targetNugetExe -ArgumentList "install NuGet.CommandLine -Output $env:ProgramData -ExcludeVersion -NonInteractive" -wait -NoNewWindow -PassThru
Remove-Item $targetNugetExe
@jbouse
jbouse / mkhomedir
Last active August 1, 2021 06:21
SSSD AD integration notes
Name: Create home directory during login
Default: yes
Priority: 0
Session-Interactive-Only: yes
Session-Type: Additional
Session-Final:
required pam_mkhomedir.so skel=/etc/skel umask=0022
@jbouse
jbouse / jdk.sls
Last active August 29, 2015 14:18
{% from "map.jinja" import map with context %}
jdk:
cacert: {{ map.cacert }}
@jbouse
jbouse / Vagrantfile
Last active August 29, 2015 14:10 — forked from Sharpie/Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# This configuration requires Vagrant 1.5 or newer and three plugins:
#
# vagrant plugin install vagrant-hosts ~> 2.1.4
# vagrant plugin install vagrant-auto_network ~> 1.0.0
# vagrant plugin install vagrant-vbguest ~> 0.10.0
#
# After installation, the following steps will spin up a master and agent that
'''
@author Bommarito Consulting, LLC
@date 20120622
Identify and, if requested, remove orphaned snapshots from an EC2 account.
'''
# Imports
import boto
@jbouse
jbouse / -
Last active August 29, 2015 14:01 — forked from anonymous/-
case $::hostname {
/^gphapaadm(2|3|4|5|6|7)$/ : {
$els_host = 'elsvipprd1.ddtc.cmgdigital.com'
$els_port = '9200'
$gph_host = 'graphite2.ddtc.cmgdigital.com'
$gph_port = '80'
}
default : { fail("elasticsearch host not set been for ${::hostname} in graphite::webapp") }
}
@jbouse
jbouse / puppet-apply
Created February 5, 2014 18:54
interpolation example
jbouse@jbouse:~$ puppet apply test.pp --verbose
Notice: Scope(Set_password[passwd1]): passwd1 .x/5FQ/
Notice: Scope(Set_password[passwd2]): passwd2 $1$RCxCmL.x$MRHrLKqYpha19ERGC/5FQ/
Notice: Compiled catalog for jbouse.example.com in environment production in 0.06 seconds
Info: Applying configuration version '1391626332'
Notice: Finished catalog run in 0.40 seconds
#!/usr/bin/env ruby
# Copyright 2014 Jeremy T. Bouse
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#