Skip to content

Instantly share code, notes, and snippets.

View dknell's full-sized avatar

David Knell dknell

View GitHub Profile
{
"MACOS": {
"osVersion": {
"description": "What Operating System is running and what is it's version?",
"query": "SELECT name, version, platform FROM os_version",
"isArray": false
},
"hwSerial": {
"description": "What's the workstations serial number?",
"query": "SELECT hardware_serial FROM system_info",

Keybase proof

I hereby claim:

  • I am dknell on github.
  • I am dknell (https://keybase.io/dknell) on keybase.
  • I have a public key ASD2tzwGbr-xybIJ6jmp-gGoogTRgdw9LlfDF7d9D-oBMQo

To claim this, I am signing this object:

@dknell
dknell / generate-app-icons.sh
Last active February 22, 2017 10:46
This script will generate all iOS and Android icon files (including retina) using the built-in sips command in OS X. It will also compress the PNGs if ImageOptim is installed. This is based off another awesome Gist found here: https://gist.github.com/jessedc/837916
#!/bin/bash
COMPRESS=1 # Compress if ImageOptim is intalled. 0 = disabled; 1 = enabled
iOSSubdir="/iOS" # make this an empty string to save in same dir
androidSubdir="/Android" # make this an empty string to save in same dir
help() {
echo ""
echo "Usage: ./$(basename "$0") <your_1024x1024.png>"
echo " --------------------------------------------------------------------------------------"
@dknell
dknell / gist:4698101
Created February 2, 2013 16:22
meteor - Fiber is not defined
/vagrant/bundle/server/server.js:95
Fiber(function () {
^
ReferenceError: Fiber is not defined
at run (/vagrant/bundle/server/server.js:95:3)
at Object.<anonymous> (/vagrant/bundle/server/server.js:156:1)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
@dknell
dknell / SKProductsRequest-crashlog
Created August 25, 2011 21:13
Titanium StoreKit Module crash log
Incident Identifier: DCCBC82C-1307-480B-B426-6BD6E3B5946D
CrashReporter Key: 4870bd70550ec56505ef298750788c5f30275ffb
Hardware Model: iPhone3,1
Process: Store Test [516]
Path: /var/mobile/Applications/560B693C-7168-4B68-83CA-DC6FF03263E4/Store Test.app/Store Test
Identifier: Store Test
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
@dknell
dknell / app.js
Created June 25, 2011 16:45
Titanium mapView radius slider
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
Ti.include('util.js');
var win = Titanium.UI.createWindow({
backgroundColor:'#fff'
});
var currentPosition = {},