Microsoft Power Platform, SharePoint, Azure, AWS, Google Cloud, DevOps, AI, ML
SharePoint, Azure, AWS, Google Cloud, DevOps, AI, ML
Monday, July 31, 2023
Manage Deployment Slots in App Service using Azure CLI
Saturday, April 29, 2023
Git Cheat Sheet
Git for All Platforms : git-scm.com
Configure tooling
Configure user information for all local
repositories
$ git config --global
user.name "[name]"
Sets the name you want attached to your commit
transactions
$ git config --global
user.email "[email address]"
Sets the email you want attached to your
commit transactions
$ git config --global
color.ui auto
Enables helpful colorization of command line output
Create repositories
A new repository can either be created
locally, or an existing repository can be cloned. When a repository was
initialized locally, you have to push it to GitHub afterwards.
$ git init : The git init command turns an existing directory into a new Git repository inside the folder you are running this command. After using the git init command, link the local repository to an empty GitHub repository using the following command:
$ git remote add origin [url] : Specifies the remote repository for your local repository. The url points to a repository on GitHub.
$ git clone [url] : Clone (download) a repository that already exists on GitHub, including all of the files, branches, and commits
Branches
Branches are an important part of working with Git. Any commits you make will be made on the branch you’re currently “checked out” to. Use git status to see which branch that is.
$ git branch [branch-name] : Creates a new branch
$ git switch -c [branch-name] : Switches to the specified branch and updates the working directory
$ git merge [branch] : Combines the specified branch’s history into the current branch. This is usually done in pull requests, but is an important Git operation.
$ git branch -d [branch-name] : Deletes the specified branch
The .gitignore file
Sometimes it may be a good idea to exclude
files from being tracked with Git. This is typically done in a special file
named .gitignore. You can find helpful
templates for .gitignore files at github.com/github/gitignore.
Synchronize changes
Synchronize your local repository with the
remote repository on GitHub.com
$ git fetch : Downloads all history from the remote tracking branches
$ git merge : Combines remote tracking branches into current local branch
$ git push : Uploads all local branch commits to GitHub
$ git pull : Updates your current local working branch with all new commits from the corresponding remote branch on GitHub. git pull is a combination of git fetch and git merge
Make changes
Browse and inspect the evolution of project
files
$ git log : Lists version history for the current branch
$ git log --follow [file] : Lists version history for a file, beyond renames (works only for a single file)
$ git diff [first-branch]...[second-branch] : Shows content differences between two branches
$ git show [commit] : Outputs metadata and content changes of the specified commit
$ git add [file] : Snapshots the file in preparation for versioning
$ git commit -m "[descriptive message]" : Records file snapshots permanently in version history
Redo commits
Erase mistakes and craft replacement history
$ git reset [commit] : Undoes all commits after [commit], preserving changes locally
$ git reset --hard [commit] : Discards all history and changes back to the specified commit
CAUTION! Changing
history can have nasty side effects. If you need to change commits that exist
on GitHub (the remote), proceed with caution. If you need help, reach out
at github.community or
contact support.
Glossary
- git: an open
source, distributed version-control system
- GitHub:
a platform for hosting and collaborating on Git repositories
- commit:
a Git object, a snapshot of your entire repository compressed into a SHA
- branch:
a lightweight movable pointer to a commit
- clone:
a local version of a repository, including all commits and branches
- remote:
a common repository on GitHub that all team members use to exchange their
changes
- fork:
a copy of a repository on GitHub owned by a different user
- pull request:
a place to compare and discuss the differences introduced on a branch with
reviews, comments, integrated tests, and more
- HEAD: representing your current working directory, the HEAD pointer can be moved to different branches, tags, or commits when using git switch
Wednesday, March 15, 2023
SharePoint Edit Control Block (ECB) menu or Custom Action Menu In ListItem and Site
SharePoint Edit Control Block (ECB) menu or Custom Action Menu In ListItem and Site:
Wednesday, June 15, 2022
Python
- Python:
the Python interpreter
- Matplotlib:
Python 2D plotting library (https://matplotlib.org/)
- networkx:
Python package for creating and manipulating complex networks (https://networkx.github.io/)
- NumPy:
fundamental package for scientific computing with Python (https://www.numpy.org/)
- Pandas:
high-performance, easy-to-use data structures and data analysis tools (https://pandas.pydata.org/)
- scikit-learn:
machine learning in Python (http://scikit-learn.org/)
- seaborn:
statistical data visualization (https://seaborn.pydata.org/)
- statsmodels:
implementation of different statistical models and tests (https://www.statsmodels.org/)
Install the following:
- cartopy:
a library providing cartographic tools for Python (http://scitools.org.uk/cartopy/).
Only required if you want to run all examples from the book
- graphviz:
Application to visualize graphs (https://www.graphviz.org/)
- python-graphviz:
Python interface for graphviz (https://graphviz.readthedocs.io/en/stable/)
- pydotplus:
Python interface to graphviz’s dot language. Required to visualize
decision trees (http://pydotplus.readthedocs.io/)
- gmaps:
Python interface to Google maps. See appendix for details about installing
this package (https://github.com/pbugnion/gmaps)
- nltk:
Natural language processing toolkit. Required for more advanced text
mining applications (https://www.nltk.org/)
- mlxtend:
machine learning library that provides access to association rules mining
algorithms (https://github.com/rasbt/mlxtend)
- scikit-surprise:
a library for recommender systems (http://surpriselib.com/)
- squarify:
algorithm to layout tree map visualizations (https://github.com/laserson/squarify)
- twython: pure Python wrapper for the Twitter API. Supports both normal and streaming Twitter APIs (https://twython.readthedocs.io/en/latest/)
Wednesday, April 27, 2022
Yammer Embed code
Yammer Embed code
1. IFrame:
<iframe
name="embed-feed" title="Yammer"
src=https://web.yammer.com/embed/groups/dHlwZSI6IkQiOiIxMDY5OTU3
style="border: 0px; overflow: hidden; width: 100%; height: 100%;
min-height: 400px;"></iframe>
2. Content Editor
Webpart:
<div
id="embedded-feed" style="height:500px"></div>
<script
type="text/javascript"
src=https://s0.assets-yammer.com/assets/platform_embed.js></script>
<script
type="text/javascript">
yam.connect.embedFeed({
container:
"#embedded-feed",
network:
"deloitte.com",
feedType: "open-graph",
config: {
defaultGroupId: "wZSI6Ikdyb3DY5OTU3Nzc1M",
showOpenGraphPreview: true,
promptText: "Comment on this page",
header: false,
footer: false
},
objectProperties: {
url: https://sreekanth8.onmicrosoft.com/sites/dev/SitePages/page1.aspx,
type: "page",
title: "my test page"
}
});
</script>
===
Sunday, March 6, 2022
Tips and Trick for SharePoint
===
Monday, January 3, 2022
Quick Notes
The testing process includes the following steps:
Plan - Review the overall test strategy, develop the test plan, and perform needed analysis for baseline metrics. Identify key business scenarios that are in and out of scope. Document the requirements, if that step has not already been completed.
Prepare - Set up needed environments for performance testing, user acceptance testing, and so on. Review data that is received for migration, before and after the migration testing. Validate high-level system requirements, and then develop needed scripts.
Execute - Run test scripts, analyze results, identify potential bottlenecks, and then review failures and behaviors.
Report - Prepare a detailed assessment of the reporting plan, results, and plan of action
The solution architect should be part of the discussion regarding the amount and type of testing that is required for a project.
Common types of tests in Microsoft Power Platform include:
Unit tests - Performed by the app builder, business analyst, functional consultant, or developer.
Functional tests - Verify that the implementation meets requirements.
Acceptance tests - Performed by users to give formal approval.
Regression tests - Tests the unchanged functions for regression and are typically performed whenever a system update has occurred.
Integration tests - The goal is for all integrated systems to work in harmony. Integration testing verifies that everything works together, including integrated services and data from other sources.
Performance tests - These tests are verified with expected peak load and peak transaction volume and are typically automated and run before go-live.
Migration tests - Practice data migration to ensure data quality. These tests are performed in close consultation with subject matter experts that know the customer data. These experts should understand the data transition and transformation and can confirm that the migrated data is valid with proper context.
Disaster recovery tests - A disaster recovery plan is useless if it doesn’t work.
Go-live tests - Dry runs of the complete solution and go-live process. These tests are typically performed before go-live.
Not all types of testing will be required; it's determined by the size and scope of the project.
Several activities should be performed prior to go-live:
- Performance testing
- Deployment planning
- Risk assessment
When external authentication is used, credentials and password management are handled by external identity providers. Supported authentication protocols include:
- WS-Federation and SAML 2.0
- OAuth2 (Microsoft, Twitter, Facebook, Google, LinkedIn, Yahoo)
- OpenID Connect (Azure AD, Azure AD B2C)
Wednesday, December 15, 2021
Microsoft Certified: Power Platform Functional Consultant Associate - PL-200: Exam PL-200: Microsoft Power Platform Functional Consultant
Microsoft Certified: Power Platform Functional Consultant Associate - PL-200: Exam PL-200: Microsoft Power Platform Functional Consultant
Featured Post
Manage Deployment Slots in App Service using Azure CLI
Manage Deployment Slots in App Service using Azure CLI az az -h az group list --output table resource_group=Regroup_5wlAgklxKkjC6 location...
Popular posts
-
CAML:- --------- <Where> <IsNotNull> <FieldRef Name='ID' /> </IsNotNull> &...
-
WebForm1.aspx:- ------------------------- <% @ Page Language ="C#" AutoEventWireup ="true" CodeBehind ="...
-
This operation can be performed only on a computer that is joined to a server farm by users who have permissions in SQL Server to read from...
-
Authorize Postman to access SharePoint 1. Register Add-In 2. Grant Permissions to Add-In 3. Generate the Access Token 4. Access th...
-
Reading an excel file using HTML 5 and jQuery and save in SharePoint list Reference https://github.com/SheetJS/js-xlsx https://github.co...
-
CreateDocumentSet.aspx <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %> <%@ Import Namesp...
-
Read SharePoint list Items using REST API and ReactJS Step1: Create a "ReactDemo" list and list columns as shown below. ...
-
Read excel data from document library saving as list items using CSOM in SharePoint. 1. Upload an excel file into Document library. This ...
-
CAML Query filter between two dates Method 1:- </And><Geq><FieldRef Name='Created' /><Value Type='Date...