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
| # Warning: PowerShell ternary operator (a ? b : c) in use. Needs PowerShell 7+! | |
| # Install Microsoft Graph API module if not already there | |
| # Install-Module Microsoft.Graph | |
| # Need to select beta profile in order to get logon statistics | |
| Select-MgProfile -Name "beta" | |
| # You'll need auditlog read access for logon statistics | |
| Connect-MgGraph -Scopes "User.Read.All", "Group.ReadWrite.All", "AuditLog.Read.All" | |
| # Load SKU list |
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
| #Login as root | |
| sudo su | |
| #create jdk directory | |
| mkdir /opt/jdk | |
| #uncompress, change to your file name | |
| tar -zxf jdk-8u5-linux-x64.tar.gz -C /opt/jdk | |
| #check if files are there |
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
| import pytest | |
| from os import path, getcwd | |
| from INSERT_PATH import get_db | |
| from sqlalchemy.orm import Session | |
| from myapp.models import BaseModel | |
| from sqlalchemy import create_engine, text | |
| BASE_DIR = getcwd() |
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
| # $HOME/.config/alacritty/alacritty.toml | |
| # by Rito Ghosh 2023-10-06 | |
| # revised by Pedro Freires 2023-12-29 | |
| # Alacritty now uses TOML formatting for its config files. | |
| # This is a simple example. | |
| # There are the specification here: https://github.com/alacritty/alacritty/blob/master/extra/man/alacritty.5.scd | |
| # It is not obvious how it translates to TOML. But it is extremely straightforward. |