Skip to content

Instantly share code, notes, and snippets.

Avatar

Jim Klo jimklo

View GitHub Profile
View gist:11066204
/root/.ssh/test_repo_deploy_key:
file.managed:
- mode: 600
- contents: |
fake_private_key
multi line
awesome sauce
wow doge
View init.sls
run-script:
cmd.script:
- name: ./echoenv.sh
- source: salt://junk/echoenv.sh
- env:
JUNK1: 'myjunk1'
JUNK2: 'myjunk2'
View echoenv.sh
#!/bin/bash
echo START ENVIRONMENT
set
echo END ENVIRONMENT
View init.sls
run-script:
cmd.script:
- name: ./echoenv.sh
- source: salt://junk/echoenv.sh
- env:
JUNK1: 'myjunk1'
JUNK2: 'myjunk2'
View echoenv.sh
#!/bin/bash
echo START ENVIRONMENT
set
echo END ENVIRONMENT
@jimklo
jimklo / build-jzmq.log
Created Jun 2, 2014
Error on RHEL5 when running: `rpmbuild -tb --clean --define "version 2.2.2" jzmq-2.2.2.tar.gz`
View build-jzmq.log
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.19496
+ umask 022
+ cd /workspace/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /workspace/rpmbuild/BUILD
+ rm -rf jzmq-2.2.2
+ /usr/bin/gzip -dc /workspace/code/thirdparty/jzmq-2.2.2.tar.gz
+ tar -xf -
@jimklo
jimklo / setup_env.sh
Last active Aug 29, 2015
Docker MySQL + Limesurvey
View setup_env.sh
#!/bin/bash
pushd `dirname $0`
current_dir=$(pwd)
MYSQL_ROOT_PASSWORD=password
MYSQL_DATA_DIR=${current_dir}/var/lib/mysql
echo "MYSQL_DATA_DIR: ${MYSQL_DATA_DIR}"
@jimklo
jimklo / Vagrantfile_partial
Created May 21, 2015
vagrant windows guest provisioning shell script. unicode issues?
View Vagrantfile_partial
windows.vm.provision "artifactory-dns", type: "shell", inline: <<-SHELL
echo 128.18.9.167 artifactory.sri.com >> C:\\Windows\\System32\\drivers\\etc\\hosts
SHELL
View gist:1057182
#
# SimpleSite - Pylons testing environment configuration
#
# The %(here)s variable will be replaced with the parent directory of this file
#
[DEFAULT]
debug = true
# Uncomment and replace with the address which should receive any error reports
#email_to = you@yourdomain.com
smtp_server = localhost
@jimklo
jimklo / gist:1076424
Created Jul 11, 2011
CouchDB Test Suite Log
View gist:1076424
{
"_id": "6aa323ad0e95c49b0f6ac9c0b36ff513",
"_rev": "1-beb08a81570c13472e9b048b09a11d1d",
"summary": "72 of 72 test(s) run, 7 failures (332596 ms) ",
"platform": {
"browser": "safari",
"version": "534.30"
},
"timestamp": 1310408078105,
"timezone": 420,