Skip to content

Instantly share code, notes, and snippets.

View scottslowe's full-sized avatar

Scott S. Lowe scottslowe

View GitHub Profile
@scottslowe
scottslowe / custom-bracketeer-keymap.json
Created October 30, 2017 02:43
Custom keymap file for use with Bracketeer and Sublime Text 3
[
{ "keys": ["{"], "command": "bracketeer", "args": { "braces": "{}", "unindent": true } },
{ "keys": ["}"], "command": "bracketeer", "args": { "braces": "{}", "pressed": "}", "unindent": true } },
{ "keys": ["["], "command": "bracketeer", "args": { "braces": "[]" } },
{ "keys": ["]"], "command": "bracketeer", "args": { "braces": "[]", "pressed": "]" } },
{ "keys": ["("], "command": "bracketeer", "args": { "braces": "()" } },
{ "keys": [")"], "command": "bracketeer", "args": { "braces": "()", "pressed": ")" } },
{ "keys": ["\""], "command": "bracketeer", "args": { "braces": "\"\"" }, "context":
[ { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } ] },
{ "keys": ["'"], "command": "bracketeer", "args": { "braces": "''" }, "context":
@scottslowe
scottslowe / keybase.md
Last active March 30, 2018 04:30
Keybase.io verification of GitHub identity

Keybase proof

I hereby claim:

  • I am scottslowe on github.
  • I am scottslowe (https://keybase.io/scottslowe) on keybase.
  • I have a public key ASDyipcbsOtW8SYma2RpDZ8gen5vu8lvfbqRPbW0-WXjawo

To claim this, I am signing this object:

@scottslowe
scottslowe / Vagrantfile-AppCatalyst-TP2-Debian
Created September 6, 2015 20:56
This is a Vagrantfile being used with Vagrant 1.7.4 and VMware AppCatalyst TP2 that is causing an error when trying to boot a Debian "Jessie" box.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Specify Vagrant version, Vagrant API version, and desired clone location
Vagrant.require_version ">= 1.6.0"
VAGRANTFILE_API_VERSION = "2"
#ENV['VAGRANT_DEFAULT_PROVIDER'] = 'vmware_fusion'
#ENV['VAGRANT_VMWARE_CLONE_DIRECTORY'] = '~/.vagrant'
#ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox'
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'vmware_appcatalyst'
@scottslowe
scottslowe / ubuntu-1404-preseed
Created May 20, 2015 17:49
This is a preseed file, written for Ubuntu Server 14.04.2, that provides a fully automated installation (assuming the presence of a PXE boot infrastructure and a local HTTP server to provide the installation files).
# Ubuntu Server automated installation
# by Scott Lowe ([email protected])
d-i debian-installer/locale string en_US
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string us
d-i netcfg/choose_interface select eth0
d-i netcfg/get_hostname string hostname
d-i netcfg/get_domain string domain.com
d-i netcfg/wireless_wep string
@scottslowe
scottslowe / hostd-config
Created December 30, 2014 02:22
This snippet of XML, taken from /etc/vmware/hostd/config.xml on an ESX 3.5U3 host, changes the HA heartbeat delay.
<vmsvc>
<heartbeatDelayInSecs>0</heartbeatDelayInSecs>
</vmsvc>
@scottslowe
scottslowe / sled-10-master-pam
Created December 22, 2014 01:28
This PAM configuration is used on SLED 10 to control authentication, and is used for integration into Active Directory.
#%PAM-1.0
###########line above is part of this file#################
#/etc/pam.d/su config file
###########################################################
#auth sufficient pam_rootok.so
auth include common-auth
account include common-account
password include common-password
session include common-session
session optional pam_xauth.so
@scottslowe
scottslowe / sled-10-pam-conf
Created December 22, 2014 01:25
These PAM configuration files were taken from a SLED 10 workstation configured to integrate with Active Directory.
###############
# /etc/pam.d/common-account - authorization settings common to all services
###############
# This file is included from other service-specific PAM config
# files, and should contain a list of the authorization modules
# that define the central access policy for use on the system.
# The default is to only deny service to users whose accounts
# are expired.
#
account sufficient pam_krb5.so
@scottslowe
scottslowe / sled-10-smb-conf
Created December 22, 2014 01:23
This is a Samba configuration file (smb.conf) used to integrate SLED 10 into Active Directory.
###############
# /etc/samba/smb.conf file
###############
# smb.conf is the main Samba configuration file. You find a full
# commented version at /usr/share/doc/packages/samba/examples/
# smb.conf.SUSE if the samba-doc package is installed.
# Date: 2007-02-07
[global]
workgroup = DOMAIN-SHORTNAME
realm = DOMAIN.COM
@scottslowe
scottslowe / sled-10-ntp-conf
Created December 22, 2014 01:20
This is an ntp.conf file taken from an Active Directory-integrated SLED 10 workstation.
###############
# /etc/ntp.conf file
#
# Sample NTP configuration file.
# See package ntp-doc for documentation, Mini-HOWTO and FAQ.
# Copyright 1998 S.u.S.E. GmbH Fuerth, Germany.
#
# Author: Michael Andres,
#
###############
@scottslowe
scottslowe / sled-10-nsswitch-conf
Created December 22, 2014 01:12
This nsswitch.conf is for a SLED 10 workstation integrated into Active Directory.
###############
# /etc/nsswitch.conf
###############
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry [NOTFOUND=return] means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the