| Category | Item | Specs | Role | Qty | Unit Price | Total | Source |
|---|---|---|---|---|---|---|---|
| Compute | AMD Ryzen 8745HS Mini PC | 8C/16T, 2x DDR5, 2x NVMe, 2x 2.5G LAN | Node 1: MAAS + Control Plane + Portal | 1 | ₹37,000 | ₹37,000 | Sudobox.in |
| Compute | AMD Ryzen 8745HS Mini PC | 8C/16T, 2x DDR5, 2x NVMe, 2x 2.5G LAN | Node 2: Compute | 1 | ₹37,000 | ₹37,000 | Sudobox.in |
| Compute | AMD Ryzen 8745HS Mini PC | 8C/16T, 2x DDR5, 2x NVMe, 2x 2.5G LAN | Node 3: Compute | 1 | ₹37,000 | ₹37,000 | Sudobox.in |
| Memory | ADATA Premier DDR5 5600MHz SODIMM | 32GB, 5600MHz, CL46, 1.1V, 262-pin | Node 1 (2 sticks = 64GB) | 2 | ₹34,000 | ₹68,000 | [Amazon.in](https://www.amazo |
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
| """ | |
| Create a realistic weather Zarr store with: | |
| - Coordinates: time(4), lat(8), lon(16), pressure_level(5) | |
| - Variables: | |
| - temperature(time, lat, lon, pressure_level) -- 4D, has pressure levels | |
| - wind_u(time, lat, lon, pressure_level) -- 4D, has pressure levels | |
| - precipitation(time, lat, lon) -- 3D, NO pressure levels | |
| - surface_pressure(time, lat, lon) -- 3D, NO pressure levels | |
| This mirrors real NWP / reanalysis data where surface variables lack a |
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
| """ | |
| Create a realistic weather Zarr store with: | |
| - Coordinates: time(4), lat(8), lon(16), pressure_level(5) | |
| - Variables: | |
| - temperature(time, lat, lon, pressure_level) -- 4D, has pressure levels | |
| - wind_u(time, lat, lon, pressure_level) -- 4D, has pressure levels | |
| - precipitation(time, lat, lon) -- 3D, NO pressure levels | |
| - surface_pressure(time, lat, lon) -- 3D, NO pressure levels | |
| This mirrors real NWP / reanalysis data where surface variables lack a |
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
| # List all the VM for given project | |
| gcloud compute instances list --format="text(name,zone.basename())" | |
| # List all the VM for given project in table format with id | |
| gcloud compute instances list --format="table(id, name,zone.basename())" | |
| # List all the VM get only id for shell processing | |
| gcloud compute instances list --format="csv[no-heading](id)" | |
| # Get service account for given vm |
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
| # sample command to capture camera output, makesure ffmpeg is installed | |
| ffmpeg -f video4linux2 -i /dev/video0 -vframes 1 -video_size 640x480 test.jpeg | |
| # To run the same thing inside the docker image | |
| # run docker in privilaged mode with binding appropriate dirs | |
| docker run --privileged \ | |
| --mount type=bind,source=/dev,target=/dev \ | |
| --mount type=bind,source=/home/fatlady,target=/root \ | |
| --rm -it alpine /bin/sh |
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
| sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 | |
| sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1 | |
| sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1 | |
| #https://itsfoss.com/disable-ipv6-ubuntu-linux/ |
Since the nix store is immutable and cannot be modified, you need to define a writable location for NPM packages to be installed globally.
Install NodeJS if you haven’t already.
Add the following to your ~/.npmrc to have it put the packages in the ~/.npm-packages folder:
prefix = ${HOME}/.npm-packages
You need to add the npm bin folder to your PATH in your shell’s rc file (i.e. .bashrc or .zshrc for example, so you can access the executables:
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
| package com.brums.app; | |
| import java.sql.Connection; | |
| import java.sql.DatabaseMetaData; | |
| import java.sql.DriverManager; | |
| import java.sql.SQLException; | |
| public class App { | |
| public static void main(String[] args) { |
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
| module Main where | |
| -- http://files.farka.eu/pub/AC21007/lec5.pdf | |
| insSortImpl :: [Int] -> [Int] -> [Int] | |
| insSortImpl sorted [] = sorted | |
| insSortImpl sorted (x:xs) = | |
| insSortImpl (insert x sorted) xs | |
| where | |
| insert y [] = [y] |
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
| #[derive(Debug)] | |
| struct Pipeline { | |
| context: String, | |
| } | |
| impl Pipeline { | |
| fn new(context: String) -> Pipeline { | |
| Pipeline { | |
| context: context, | |
| } |
NewerOlder