Skip to content

Instantly share code, notes, and snippets.

View shouse's full-sized avatar

Steven shouse

  • SIVCI
  • Kansas City, MO
View GitHub Profile
{
"events": [
{
"media": {
"url": "http://media.web.britannica.com/eb-media/42/24042-004-C8F9C0D5.jpg",
"caption": "Thomas Edison's phonograph"
},
"start_date": {
"year": "1877"
},

KVM OSX Guest 10.11 (El Capitan) with Clover

  • Some notes about this approach:
    • An OSX Installer USB drive for Install OS X El Capitan is created
    • Clover is then installed on the USB drive
    • Clover Configurator is then run on the USB drive
    • The USB drive contents are copied to the VM host
    • VNC is used to connect to the guest UI
  • The qxl virtual video device is used (part of the standard kvm qemu install)
@shouse
shouse / osx-for-hackers.sh
Created October 16, 2015 04:27 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
@shouse
shouse / docker-resources.md
Last active March 10, 2022 04:39 — forked from rgaidot/docker-resources.md
Docker Resources All In One - A collection of docker online resources
@shouse
shouse / ti.getViewByClass.js
Last active September 22, 2017 19:50
Iterate through titanium views and look for class
/**
* @function getViewByClass
* @summary This will take a class and an optional parent and find children with that class
* @param {string} _class Class name
* @param {object} _parent Optional Parent View to iterate through
* @param {number} _depth Optional depth of recursiveness
* @returns {array} Array of views with the class
*
* @TODO Implement _depth and recursive calls
*/
var win1 = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff',
layout: 'vertical'
});
var bt1 = Ti.UI.createButton({title: 'send message (method 1)', top: 200});
bt1.addEventListener('click', function(e)
var photoDir = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, "photos");
if(!photoDir.exists()) {
photoDir.createDirectory();
}
function takePhoto(e) {
// https://github.com/appcelerator-modules/ti.imagefactory
var ImageFactory = require('ti.imagefactory');
Ti.Media.showCamera({
[sudo] npm install -g gittio
@shouse
shouse / Gruntfile.js
Last active August 29, 2015 14:19 — forked from FokkeZB/Gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
settings: {
releaseNotes: grunt.option('notes') || 'CI build',
appName: 'Flashlight',
ppUuid: '0253600x-ac6d-35b6-b66d-dd25c4fd956f',
installrAppToken: '6xC0I8SdJA76kW3pqq7GFZLIyq6fBP4Z'
},
/**
* ACS Cloud Push module, comes with Ti SDK
* @exports Cloud
* @type {object}
*/
var Cloud = require('ti.cloud'),
CloudPush;
/**
* CommonJS Module of reusable config values and helper methods.
* @exports Config