Skip to content

Instantly share code, notes, and snippets.

@wbs75
wbs75 / MunkiWebAdmin_CentOS6.5_Updated-Guide.md
Last active August 29, 2015 14:04
MunkiWebAdmin_CentOS6.5_Updated-Guide

Prerequisites

What you'll need first is to install Openssl on your server, this is a common package and will be available on all of the major distros through their package installer. Here is how you check to see if it is installed in a "Yum" style system:

# rpm -qa | grep -i openssl

If it didn't you'll want to run the following:

# yum install openssl openssl-devel
@wbs75
wbs75 / .bashrc
Last active May 27, 2017 13:20
.bashrc -> CentOS
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
[ -f /etc/bash_completion ] && source /etc/bash_completion
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
@wbs75
wbs75 / .bash_profile
Last active August 29, 2015 14:03
.bash_profile -> CentOS
# ~/.profile: executed by Bourne-compatible login shells.
[ -f /etc/bash_completion ] && source /etc/bash_completion
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
@wbs75
wbs75 / site.pp
Last active August 29, 2015 14:03
My-Boxen site.pp
require boxen::environment
require homebrew
package {'git':
install_options => ['--build-from-source'],
}
Exec {
group => 'staff',
logoutput => on_failure,
@wbs75
wbs75 / Puppetfile.pp
Last active August 29, 2015 14:03
My-Boxen Puppetfile
# This file manages Puppet module dependencies.
#
# It works a lot like Bundler. We provide some core modules by
# default. This ensures at least the ability to construct a basic
# environment.
# Shortcut for a module from GitHub's boxen organization
def github(name, *args)
options ||= if args.last.is_a? Hash
args.last
@wbs75
wbs75 / *.bash_profile
Last active August 29, 2015 14:02
"bash_profile" for boxen
# Load ~/.bash_prompt, ~/.exports, ~/.aliases, ~/.functions and ~/.extra
# ~/.extra can be used for settings you don’t want to commit
# Add `~/bin` to the `$PATH`
export PATH="$HOME/bin:$PATH"
for file in ~/.{path,bash_prompt,exports,aliases,functions,extra}; do
[ -r "$file" ] && source "$file"
done
if [ -f /opt/boxen/homebrew/etc/bash_completion ]; then
@wbs75
wbs75 / Common.SSH.Commands.md
Last active August 29, 2015 14:01
Common SSH Commands - Linux Shell Commands

Navigating in UNIX

pwd	Shows the full path of the current directory
ls	Lists all the files in the current directory
ls -al	Lists all files and information
ls –alR	Lists all files and information in all subdirectories
ls -alR | more	Same as ls –alR, pausing when screen becomes full
ls -alR > filename.txt	Same as ls –alR, outputs the results to a file
ls *.html	Lists all files ending with .html

cd [directory name] Changes to a new directory

@wbs75
wbs75 / Apache-Setup
Last active December 22, 2015 00:00
Apache-Setup OS X non-server
$ cd /etc/apache2/users
$ sudo nano username.conf
<Directory "/Users/username/Sites/">
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
@wbs75
wbs75 / dmg-pkg-luggage
Created August 22, 2013 09:52
Barebones Script that downloads .dmg then builds .pkg from .app using luggage
USE_PKGBUILD=1
include /usr/local/share/luggage/luggage.make
TITLE=Foo
REVERSE_DOMAIN=com.foo
PACKAGE_VERSION=#.#
PAYLOAD=\
pack-foo \
FooURL="http://foo.server.com/foo-${PACKAGE_VERSION}.dmg"