Skip to content

Instantly share code, notes, and snippets.

View chemxboy's full-sized avatar

Randy Garrison chemxboy

View GitHub Profile
@chemxboy
chemxboy / gist:c029c68eb9c9904ded459d76e4470a8c
Created June 9, 2016 22:12
Randy's OneName Verification
Verifying that +chemxboy is my blockchain ID. https://onename.com/chemxboy
@chemxboy
chemxboy / AskForPackage.sh
Last active January 24, 2019 19:37
This is how we use CocoaDialog (http://mstratman.github.io/cocoadialog/) in DeployStudio (http://deploystudio.com) workflows. CocoaDialog should be added to the scripts directory. This particular example will popup a choice and set the response in a variable. A later workflow item uses that variable in its logic to install the chosen package.
#!/bin/sh
#
# This script uses cocoaDialog to bring up a GUI dialog requesting which package to install. It will set a variable to be used later in the workflow.
# Set the 891 variable
P_891=""
# Path to the cocoaDialog tool
POPUP=`dirname "$0"`/cocoaDialog.app/Contents/MacOS/cocoaDialog
@echo off
cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Mozilla Firefox\Mozilla Firefox.lnk"
cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office Word 2007.lnk"
cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office Excel 2007.lnk"
cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office PowerPoint 2007.lnk"