Skip to content

Instantly share code, notes, and snippets.

View bahreex's full-sized avatar
🎧
In A Multiverse Trance

Arjun Bahree bahreex

🎧
In A Multiverse Trance
View GitHub Profile
@bahreex
bahreex / Sample-Readme.md
Last active May 7, 2020 12:16
This is a Sample "Readme.md" file for guidance on building the same.

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

@bahreex
bahreex / Choco-Config-Dev-Box.config
Last active September 9, 2021 23:01
Chocolatey Package Config: Primary Dev Box
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="7zip" version="18.5.0.20180730" />
<package id="7zip.commandline" version="16.02.0.20170209" />
<package id="7zip.install" version="18.5.0.20180730" />
<package id="7zip.portable" version="18.5" />
<package id="AdobeAIR" version="28.0.0.127" />
<package id="adobereader" version="2018.011.20063" />
<package id="adobeshockwaveplayer" version="12.2.8.198" />
<package id="ARMClient" version="1.2.0" />
//Create Unique Conversation nodes. They cannot be duplicate in a graph since they can each contain many mail messages
USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM "https://gist.githubusercontent.com/bahreex/7f7074b16db942c7c36afdfcca719d32/raw/fcdafdadfe03012c91f8842977563535109125dd/msgx.csv" AS row
MERGE (:Conversation {convid: row.ConversationID});
//Create Unique Message nodes. They cannot be duplicates in a graph
USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM "https://gist.githubusercontent.com/bahreex/7f7074b16db942c7c36afdfcca719d32/raw/fcdafdadfe03012c91f8842977563535109125dd/msgx.csv" AS row
MERGE (:Message {msgid: row.MessageID, subject: row.Subject, recipient: row.Recipient, send_date: row.SendTime});
@bahreex
bahreex / Azure-VM-Sizes-Master.csv
Created January 17, 2018 02:45
Master List for Azure VM Sizes (17-01-2018)
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 29 columns, instead of 20 in line 2.
B-Series,DS-v3-Series,D-v3-Series,DS-v2-Series,D-v2-Series,D2-v2-Series,DS2-v2-Series,DS-Series,D-Series,A-v2-Series,A-Compute-Series,A-Series,A-Basic-Series,FS-v2-Series,FS-Series,F-v2-Series,F-Series,ES-v3-Series,E2-v3-Series,M-Series,GS-Series,G-Series,LS-Series,NC-Series,NC-v2-Series,NC-v3-Series,ND-Series,NV-Series,H-Series
Standard_B1s,Standard_D2s_v3,Standard_D2_v3,Standard_DS1_v2,Standard_D1_v2,Standard_D11_v2,Standard_DS11_v2,Standard_DS1,Standard_D1,Standard_A1_v2,Standard_A8,Standard_A0,A0\Basic_A0,Standard_F2s_v2,Standard_F1s,Standard_F2_v2,Standard_F1,Standard_E2s_v3,Standard_E2_v3,Standard_M64s,Standard_GS1,Standard_G1,Standard_L4s,Standard_NC6,Standard_NC6_v2,Standard_NC6s_v3,Standard_ND6,Standard_NV6,Standard_H8
Standard_B1ms,Standard_D4s_v3,Standard_D4_v3,Standard_DS2_v2,Standard_D2_v2,Standard_D12_v2,Standard_DS12_v2,Standard_DS2,Standard_D2,Standard_A2_v2,Standard_A9,Standard_A1,A1\Basic_A1,Standard_F4s_v2,Standard_F2s,Standard_F4_v2,Standard_F2,Standard_E4s_v3,Standard_E4_v3,Standard_M64ms
@bahreex
bahreex / Azure-VM-Sizes-29122017.csv
Created December 29, 2017 13:56
Categories and Names of different VM Families in Microsoft Azure (Last Update: 29/12/2017)
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 23 columns, instead of 22 in line 3.
B,DSv3,Dv3,DSv2,Dv2,DS,D,Av2,A,FSv2,FS,F,ESv3,Ev3,M,GS,G,LS,NC,NCv2,ND,NV,H
Standard_B1s,Standard_D2s_v3,Standard_D2_v3,Standard_DS1_v2,Standard_D1_v2,Standard_DS1,Standard_D1,Standard_A1_v2,Standard_A0,Standard_F2s_v2,Standard_F1s,Standard_F1,Standard_E2s_v3,Standard_E2_v3,Standard_M64s,Standard_GS1,Standard_G1,Standard_L4s,Standard_NC6,Standard_NC6_v2,Standard_ND6,Standard_NV6,Standard_H8
Standard_B1ms,Standard_D4s_v3,Standard_D4_v3,Standard_DS2_v2,Standard_D2_v2,Standard_DS2,Standard_D2,Standard_A2_v2,Standard_A1,Standard_F4s_v2,Standard_F2s,Standard_F2,Standard_E4s_v3,Standard_E4_v3,Standard_M64ms,Standard_GS2,Standard_G2,Standard_L8s,Standard_NC12,Standard_NC12_v2,Standard_ND12,Standard_NV12,Standard_H16
Standard_B2s,Standard_D8s_v3,Standard_D8_v3,Standard_DS3_v2,Standard_D3_v2,Standard_DS3,Standard_D3,Standard_A4_v2,Standard_A2,Standard_F8s_v2,Standard_F4s,Standard_F4,Standard_E8s_v3,Standard_E8_v3,Standard_M128s,Standard_GS3,Standard_G3,Standard_L16s,Standard_NC24,Standard_NC24_v2,Standard_ND24,Standar
param($DNSName)
Enable-PSRemoting -Force
New-NetFirewallRule -Name 'WinRM HTTPS' -DisplayName 'WinRM HTTPS' -Enabled True -Profile 'Any' -Action 'Allow' -Direction 'Inbound' -LocalPort 5986 -Protocol 'TCP'
$thumbprint = (New-SelfSignedCertificate -DnsName $DNSName -CertStoreLocation Cert:\LocalMachine\My).Thumbprint
$cmd = "winrm create winrm/config/Listener?Address=*+Transport=HTTPS @{Hostname=""$DNSName""; CertificateThumbprint=""$thumbprint""}"
cmd.exe /C $cmd
@bahreex
bahreex / onename
Created March 21, 2017 18:59
Verifying that "bahree.id" is my Blockstack ID. https://onename.com/bahree
Verifying that "bahree.id" is my Blockstack ID. https://onename.com/bahree