Skip to content

Instantly share code, notes, and snippets.

View Darkomen78's full-sized avatar
🛠️
More Ops than Dev

Sylvain La Gravière Darkomen78

🛠️
More Ops than Dev
  • Abelionni
  • Paris, France
View GitHub Profile
@tuxudo
tuxudo / AD_Bind.sh
Created June 13, 2016 15:22
Script used to bind Macs to AD. Copied from DeployStudio 1.7.2
#!/bin/sh
# This script shamelessly copied and edited from DeployStudio 1.7.2
# Original here: https://github.com/timsutton/DeployStudioDiffs/blob/c96f9a6244e68a7fb7af432ad47cc39d91b444b6/Packages/Admin/DeployStudio%20Admin.app/Contents/Plugins/DSADBindingTask.bundle/Contents/Resources/Scripts/ds_active_directory_binding/ds_active_directory_binding.10.7.sh
# disable history characters
histchars=
#
# functions
@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