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 is a quick and dirty way to dump all the last 90 days analytics of a Team to a CSV file | |
#Requirement : | |
#-Install-module MicrosoftTeams | |
#-Get your bearer token and replace it in the variable | |
$UPN = "[email protected]" | |
$TeamDisplayName = "My Team To Analyse" | |
$bearer ="Bearer ESAsadmaisjdoasjdoaskdokasopdkasopdjaiopjdd very long bearer token" | |
########### | |
$headers = @{ |
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
function GetFeedPageCount ($url) { | |
$feed=[xml](New-Object System.Net.WebClient).DownloadString($url) | |
$pageCount = $feed.rss.channel.pageCount | |
return $pageCount; | |
} | |
function DownloadFeed ($url) { | |
$feed=[xml](New-Object System.Net.WebClient).DownloadString($url) | |
foreach($i in $feed.rss.channel.item) { | |
$url = New-Object System.Uri($i.enclosure.url) |
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
# Update, upgrade and install development tools: | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get -y install build-essential git-core libssl-dev libsqlite3-dev curl nodejs nginx | |
# Install rbenv | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
# Add rbenv to the path: | |
echo 'export RBENV_ROOT=~/.rbenv' >> ~/.bash_profile |