This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # this needs to be on the *remote* machine. | |
| if [ ! -z "$SSH_CLIENT" ] | |
| then | |
| function code() { | |
| local ssh_client_host=$(echo $SSH_CLIENT | cut -d ' ' -f1) | |
| if [ -z "$1" ] | |
| then | |
| local argpath="." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Requires -RunAsAdministrator | |
| <# | |
| .SYNOPSIS | |
| Sets the last logged on AD user at the login screen. | |
| .DESCRIPTION | |
| Sets the last logged on user on the Windows login screen to a specified AD user. If not specified | |
| at launch, it Will first check for a user in the managedBy attribute of the current computer and | |
| offer the option to use that user automatically. If declined, prompts for an AD username to use instead. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // upload.js, from https://github.com/googledrive/cors-upload-sample | |
| // Contributors Steve Bazyl, Mike Procopio, Jeffrey Posnick, Renaud Sauvain | |
| // License: Apache 2.0 http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Implements Resumable Upload for Google Drive as described by | |
| // https://developers.google.com/drive/v3/web/resumable-upload | |
| // | |
| // Modified by Paul Brewer, Economic and Financial Technology Consulting LLC | |
| // Nov. 1 2017 | |
| // 1. use Google Drive API V3 instead of V2 |