Your scrum master says
Knock knock
Who's there?
Water
| import http.client | |
| import json | |
| conn = http.client.HTTPSConnection("vsi5.visualstorageintelligence.com") | |
| payload = json.dumps({ | |
| "export_format": "json", | |
| "request_date": "10-31-2022", | |
| "request_user": "your email here", | |
| "request_password": "your password here" | |
| }) |
| $headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" | |
| $headers.Add("Content-Type", "application/json") | |
| $body = "{ | |
| `n `"export_format`": `"json`", | |
| `n `"request_date`": `"10-31-2022`", | |
| `n `"request_user`": `"your email address here`", | |
| `n `"request_password`": `"your password here`" | |
| `n}" |
| curl --location --request POST 'https://vsi5.visualstorageintelligence.com/api/export/v1/enterprise_summary' \ | |
| --header 'Content-Type: application/json' \ | |
| --data-raw '{ | |
| "export_format": "json", | |
| "request_date": "10-31-2022", | |
| "request_user": "your email here", | |
| "request_password": "your password here" | |
| }' |
This guide will enable systemd to run as normal under WSL 2. This will enable services like microk8s, docker and many more to just work during a WSL session. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.
To enable systemd under WSL we require a tool called systemd-genie
Copy the contents of install-sg.sh to a new file /tmp/install-sg.sh:
This comes in handy often. I want to do something based on a Python file. Maybe I want to pull all the docstrings out and make a markdown file. Maybe I want generate a script that calls all the functions in a python file. Whatever it is, the abstract syntax tree can help. Here is an example for the first use case: I pull out all the docstrings. We used this to create the documentation for hackathon at Clear Technologies a few years ago.
| #!/bin/bash | |
| echo Whosa are yousa? | |
| read yousaIs | |
| echo Nicen to meets you $yousaIs. Messa thinkin weesa bein friends! |
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "final_space": true, | |
| "blocks": [ | |
| { | |
| "type": "prompt", | |
| "alignment": "left", | |
| "segments": [ | |
| { | |
| "type": "shell", |
| # sets up a PC for full stack boot camp at SMU | |
| # assumes you have chocolatey installed | |
| # https://chocolatey.org/ | |
| # at this point it doesn't install EVERYTHING, just the basics. no databases yet. | |
| ssh-keygen -N <change-to-actual-password-before-running> -f C:\Users\<insert user name here>\.ssh\id_rsa | |
| wsl --install -d Ubuntu-20.04 | |
| choco install -Force -y visualstudio2019buildtools | |
| choco install -Force -y brave | |
| choco install -Force -y git | |
| choco install -Force -y vscode |
| <# | |
| This script is designed to automate the set up of developer machines at Clear Technologies for work on Visual Storage Intelligence. | |
| It should be run on a Windows 10 computer. I usually run a de-bloat script first, then I run this one. | |
| Basically it install chocolatey then uses it to install everything we need to do our work. | |
| It's mostly an unattended install but if you want to repos towards the bottom to be checked out you should copy the generated key | |
| to beanstalk while the script is paused. | |
| #> | |
| Set-ExecutionPolicy Bypass -Scope Process -Force; | |
| [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; | |
| Invoke-Expression((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) |