Skip to content

Instantly share code, notes, and snippets.

@atodev
atodev / rot13
Created December 21, 2022 21:46
[cypher]
8. ROT13 Encryption
Rot13 is a cipher which is based on rotation of alphabetic characters by 13. The numeric and none alphabetic characters remain unchanged. Because there is 26 letters in English alphabet rotating characters by 13 encodes and decodes the string. So in our test email first letter of our email is “n” which would become “a” since we would count 13 letters from “n” in the alphabet in circle.
@atodev
atodev / Load LLC into table
Last active December 21, 2022 21:45
[MSSQL]
USE ONA
GO
IF OBJECT_ID('LLC_SQL','u') IS NOT NULL
DROP TABLE LLC_SQL;
CREATE TABLE LLC_SQL (
Sender nvarchar(MAX) NULL,
https://community-old.sisense.com/hc/en-us/community/posts/115008207827-D3-Force-Directed-Network-Diagram
https://blog.pragmaticworks.com/power-bi-custom-visuals-force-directed-graph
https://marketplace.looker.com/marketplace/detail/viz-forcedirected
@atodev
atodev / Cerificate
Last active February 28, 2025 12:01
[MSGRAPH]
import requests
from OpenSSL import crypto
# Set base URL for Microsoft Graph API
BASE_URL = "https://login.microsoftonline.com"
# Set API endpoint for token
ENDPOINT = "/{tenant_id}/oauth2/v2.0/token"
# Set tenant ID
@atodev
atodev / Permissions
Last active December 15, 2022 01:53
[Teams]
https://stackoverflow.com/questions/64548096/how-to-read-teams-channel-messages-using-msal-in-python
API/Permissions name: Team.ReadBasic.All, type: Application, Status: granted for admin
API/Permissions name: TeamsActivity.Read.All, type: Application, Status: granted for admin
API/Permissions name: Channel.ReadBasic.All, type: Application, Status: granted for admin
API/Permissions name: ChannelMessage.Read.All, type: Application, Status: granted for admin
network diagrams
viz-force_directed_graph-marketplace
https://github.com/looker-open-source/viz-force_directed_graph-marketplace
@atodev
atodev / api
Last active November 21, 2022 21:34
[Caledar] api
https://learn.microsoft.com/en-us/graph/findmeetingtimes-example
POST https://graph.microsoft.com/v1.0/me/findMeetingTimes
Prefer: outlook.timezone="Pacific Standard Time"
Content-type: application/json
--------
https://pietrowicz-eric.medium.com/how-to-read-microsoft-outlook-calendars-with-python-bdf257132318\
https://github.com/O365/python-o365
----------------------------------------------
.net version
@atodev
atodev / ONA PANDAS TS
Created October 15, 2022 15:53
[Time series]
https://www.youtube.com/watch?v=VLGptwMRIVQ
@atodev
atodev / get contacts
Last active September 29, 2022 17:07
[LinkedIN]
http://thinktostart.com/download-your-linkedin-contacts-with-python/
@atodev
atodev / connections
Last active September 27, 2022 20:30
[LinkedIN]
https://github.com/chawla201/LinkedIn-Connections-Analyzer/blob/master/Profile%20Scraper.ipynb