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
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
Below are the programs I install, the Preferences I change, and the configurations I tweak after doing a fresh install of macOS.
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
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
[ | |
"Automotive", | |
"Budgeting", | |
"HVAC", | |
"Heaters", | |
"Hydraulics", | |
"Logistics Management", | |
"Management", | |
"Negotiation", | |
"Project Planning", |
The following commands will produce a small application that allows you to run Vivaldi—or any other Chromium-based browser—in Standalone mode on a Mac. This could be used for testing a specific setup or version, without touching the system wide settings (profile). It can also be used to create a portable (USB install) of Vivaldi that you could store on an external disk, for sharing between computers.
Start Terminal and issue the following:
mkdir -p Standalone\ Mode.app/Contents/MacOS
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
/** | |
* Script to manage offboarding and setup email configurations, including user suspension. | |
* Requires Google Admin SDK and Gmail API to be enabled. | |
*/ | |
// Constants | |
const OFFBOARDED_GROUP_EMAIL = "[email protected]"; // Group email address | |
const TEMP_EMAIL = "[email protected]"; | |
const MANAGER_EMAIL = "[email protected]"; // Manager's email for notifications | |
const USER_EMAIL = "[email protected]"; // Regular user email address to offboard |
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
// Create a Google Group and add a member | |
function createGroupAndAddMember() { | |
const groupEmail = '<PlaceHolder>@cirrusmd.com'; // Replace with the desired group email | |
const groupName = '<New Group Name>'; // Replace with the group name | |
const description = 'This is a new group created via Apps Script'; | |
const memberEmail = '[email protected]'; | |
const service = getOAuthService(); | |
if (!service.hasAccess()) { | |
Logger.log('Authorization required. Visit: %s', service.getAuthorizationUrl()); |