Skip to content

Instantly share code, notes, and snippets.

[main]
# The Puppet log directory.
# The default value is '$vardir/log'.
logdir = /var/log/puppet
# Where Puppet PID files are kept.
# The default value is '$vardir/run'.
rundir = /var/run/puppet
# Where SSL certificates are kept.
[production]
modulepath = $confdir/environments/production/modules:$condfir/modules
manifest = $confdir/environments/production/manifests
#!/usr/bin/env python
# VMware vSphere Python SDK
# Copyright (c) 2008-2015 VMware, Inc. All Rights Reserved.
#
# 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
#
@jglenn9k
jglenn9k / index.html
Created April 11, 2016 16:01
Very basic html5 template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Default Page</title>
</head>
<body>
<p>Works!</p>
</body>
</html>
@jglenn9k
jglenn9k / gist:a7ea8f68b43d38f1b70bf279e317bbeb
Last active January 24, 2017 19:09
Install Graphics Magick on CentOS 7
# Inspired by https://gist.github.com/abernardobr/e4292953fc84f9456cfa
#
# Please don't install software from source in production.
#
yum -y install http://mirror.rackspace.com/epel/epel-release-latest-7.noarch.rpm
yum -y install GraphicsMagick-c++-devel
#!/usr/bin/python
# VMware vSphere Python SDK
# Copyright (c) 2008-2015 VMware, Inc. All Rights Reserved.
#
# 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
#
### Keybase proof
I hereby claim:
* I am jglenn9k on github.
* I am jglenn9k (https://keybase.io/jglenn9k) on keybase.
* I have a public key whose fingerprint is 168E 1CF2 4AEB 7874 70F1 F416 8508 3C12 5542 DA8C
To claim this, I am signing this object:
tr -dc '[:alnum:]' < /dev/urandom | fold -w 15 | head -n 1
@jglenn9k
jglenn9k / rsync.sh
Created January 24, 2017 19:02
Fast rsync
rsync -avzP --inplace -e "ssh -T -c arcfour -o Compression=no -x" SRC DEST
@jglenn9k
jglenn9k / check_page_speed.cpp
Last active July 5, 2018 20:49
Checks page speed
#include <iostream>
#include <string>
#include <cstdio>
#include <curl/curl.h>
// James Glenn <thedonkdonk@gmail.com>
// 2018-03-30
static size_t WriteCallback(void *contents, size_t size, size_t nmemb, void *userp) {
((std::string*)userp)->append((char*)contents, size * nmemb);