🤵♂️
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 | |
| set -e | |
| # --- This script installs n8n on a server using NVM and npm. --- | |
| # This method avoids Docker and can be more resource-efficient. | |
| echo "### Starting n8n installation via NVM/npm... ###" | |
| # 1. Update System Packages and Install Prerequisites | |
| echo "### Step 1: Updating system packages and installing build-essential... ###" |
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
| TODO |
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
| float temp; | |
| int tempPin = A1; //arduino pin used for temperature sensor. CHANGE THIS BASED ON YOUR CONFIGURATION | |
| int tempMin = 70; | |
| int tempMax = 75; | |
| int motor = 2; // the pin where motor is connected. CHANGE THIS BASED ON YOUR CONFIGURATION | |
| int motorSpeed = 0; | |
| void setup() { | |
| pinMode(motor, OUTPUT); | |
| pinMode(tempPin, INPUT); |
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
| # connect | |
| $cred = Get-Credential | |
| Connect-AzureAD -Credential $cred | |
| # setting variables | |
| $invitations = import-csv ..\invitations.csv | |
| $messageInfo = New-Object Microsoft.Open.MSGraph.Model.InvitedUserMessageInfo | |
| $messageInfo.customizedMessageBody = "Hey there! Check this out. I created an invitation through PowerShell" | |
| # loop |
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
| $cred = Get-Credential | |
| Connect-AzureAD -Credential $cred | |
| $invitations = import-csv C:\data\invitations.csv | |
| $messageInfo = New-Object Microsoft.Open.MSGraph.Model.InvitedUserMessageInfo | |
| $messageInfo.customizedMessageBody = "Hey there! Check this out. I created an invitation through PowerShell" | |
| foreach ($email in $invitations) {New-AzureADMSInvitation -InvitedUserEmailAddress $email.InvitedUserEmailAddress -InvitedUserDisplayName $email.Name -InviteRedirectUrl https://wingtiptoysonline-dev-ed.my.salesforce.com -InvitedUserMessageInfo $messageInfo -SendInvitationMessage $true} |
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.setState(prevState => ({ | |
| OBJECT_NAME: { | |
| ...prevState.OBJECT_NAME, | |
| OBJECT_KEY : NEW_VALUE | |
| }})); |
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
| # Connect to Office 365 | |
| $tenant = connect-site -Url https://tenant-admin.sharepoint.com -Browser | |
| # Get list of emails | |
| $eMailCSV = "C:\emailList.csv" | |
| $table = Import-Csv $eMailCSV -Delimiter ";" | |
| # Iterate through emails and provision OneDrive sites | |
| foreach ($row in $table) { | |
| Get-OneDriveUrl -Tenant $tenantMoravia -Email $row.email -ProvisionIfRequired |
NewerOlder