Skip to content

Instantly share code, notes, and snippets.

Avatar

Jim Klo jimklo

View GitHub Profile
@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
@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 / 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 -
View echoenv.sh
#!/bin/bash
echo START ENVIRONMENT
set
echo END ENVIRONMENT
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 init.sls
run-script:
cmd.script:
- name: ./echoenv.sh
- source: salt://junk/echoenv.sh
- env:
JUNK1: 'myjunk1'
JUNK2: 'myjunk2'
View gist:11066204
/root/.ssh/test_repo_deploy_key:
file.managed:
- mode: 600
- contents: |
fake_private_key
multi line
awesome sauce
wow doge
@jimklo
jimklo / SampleViewController.java
Created Jan 8, 2014
JavaFX Context Menus broken in when using E3 FXViewPart
View SampleViewController.java
package com.sri.sunflower.fxquery;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.scene.control.ListView;
@jimklo
jimklo / README.md
Last active Jun 13, 2021
Fix for installing MediaTek USB(RT2870/RT2770/RT3X7X/RT537X) driver in OS X Mavericks
View README.md