Skip to content

Instantly share code, notes, and snippets.

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
I believe everything is working with a custom ssl certificate using the below config.
I did a normal install then changed the config files. I would still like to find out how to specify all
of this in the installer/answer files.
Wildcard cert purchased from comodo: star.example.com.crt, star.example.com.key
CA Bundle from comodo: ca-bundle-comodo.crt are
On foreman server:
/etc/httpd.conf/05-foreman-ssl.conf
SSLCertificateFile "/etc/pki/tls/certs/star.example.com.crt"
SSLCertificateChainFile "/etc/pki/tls/certs/ca-bundle-comodo.crt"
@killahquam
killahquam / ActiveDirectory.mail.config.xml
Created July 8, 2016 15:23 — forked from janikvonrotz/ActiveDirectory.mail.config.xml
PowerShell: Send Password Expiration Reminder#PowerShell#ActiveDirectory
<?xml version="1.0" encoding="utf-8"?>
<Content>
<Metadata>
<Title>PowerShell Profile Mail Configuration</Title>
<Filename>DirSync.mail.config.xml</Filename>
<Description></Description>
<Tags>powershell, profile, mail, configuration</Tags>
<Project></Project>
<Author>Janik von Rotz</Author>
# Requires ActiveRoles CmdLets from Quest Software (They're free and awesome) - http://www.quest.com/powershell/activeroles-server.aspx
Get-QADUser -SizeLimit 0 | Select-Object samAccountName,mail,PasswordStatus |
Where-Object {$_.PasswordStatus -ne "Password never expires" -and $_.PasswordStatus -ne "Expired" -and $_.PasswordStatus -ne "User must change password at next logon." -and $_.mail -ne $null} |
ForEach-Object {
$today = Get-Date
$logdate = Get-Date -format yyyyMMdd
$samaccountname = $_.samAccountName
$mail = $_.mail
$passwordstatus = $_.PasswordStatus
$passwordexpiry = $passwordstatus.Replace("Expires at: ","")
@killahquam
killahquam / shard.sh
Created November 26, 2015 05:22 — forked from homebysix/shard.sh
shard.sh
#!/bin/sh
###
#
# Name: shard.sh
# Description: This Casper extension attribute takes a Mac serial
# number as input and uses that serial number to output a
# number from 1 to 10. This can be useful in scoping Casper
# policies to a specific percentage of the fleet.
# Author: Elliot Jordan <elliot@lindegroup.com>
@killahquam
killahquam / hack.sh
Created November 10, 2015 02:34 — forked from mbinna/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2357277/hack.sh | sh
#
@killahquam
killahquam / macs-on-active-directory.md
Created October 21, 2015 06:30 — forked from bzerangue/macs-on-active-directory.md
Binding and Unbinding to Active Directory from Mac OS via Command Line

Binding and Unbinding to Active Directory from Mac OS via Command Line

  • Open the Terminal Application
  • Type in sudo -i and type in your Mac Administrator account password. sudo gives you root level or administrator level privileges.

To View current Active Directory Settings

dsconfigad -show

To Unbind a Computer from an Active Directory Domain

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadContent</key>
<dict>
<key>com.microsoft.Word</key>