Skip to content

Instantly share code, notes, and snippets.

View mohit242's full-sized avatar

Mohit mohit242

  • India
View GitHub Profile

Internship interview assignment - Bold Care

Find below the requirements for the internship assignment. Reach out to mohit@boldcare.in if you have any questions.

Figma link

Pages

  • Home Page
  • Facts Page
  • Generator Page
sudo mount -t xfs -o discard /dev/md0 /mnt/temp
sudo mount /dev/sdb /mnt/staging
sudo rm /mnt/temp/* || true
# add python script for dynamic hdd destination loading and copying over staging to destination
screen -dm -S staging bash -c "python copy-script.py"
screen -dm -S logging bash -c "while sleep 600; do plotman status >> plotman_log.txt; done"
screen -dm -S plotting bash -c "plotman plot"
# Default/example plotman.yaml configuration file
# Options for display and rendering
user_interface:
# Call out to the `stty` program to determine terminal size, instead of
# relying on what is reported by the curses library. In some cases,
# the curses library fails to update on SIGWINCH signals. If the
# `plotman interactive` curses interface does not properly adjust when
# you resize the terminal window, you can try setting this to True.
use_stty_size: True
@mohit242
mohit242 / plotter-setup.sh
Last active June 3, 2021 18:28
Plotter setup script
cd
sudo swupd bundle-add storage-utils
sudo swupd bundle-add lm-sensors
sudo swupd bundle-add vim
sudo mkfs.ext4 -m 0 -T largefile4 -L staging $1
sudo mdadm -C /dev/md0 /dev/nvme[0-1]n1 -n 2 -l 0 -c 64
sudo mkfs.xfs /dev/md0
sudo mkdir /mnt/temp
sudo mkdir /mnt/staging
sudo mkdir /mnt/destination
@mohit242
mohit242 / chia-staging-script.py
Created May 28, 2021 19:12
Small script to copy over plots to destination drive from staging drive
import glob
import os
import shutil
import time
while True:
for file_path in glob.glob("/mnt/staging/*.plot"):
try:
shutil.move(file_path, "/mnt/destination")
print("Moving plot ->" + file_path)

Keybase proof

I hereby claim:

  • I am mohit242 on github.
  • I am sleepyshiba (https://keybase.io/sleepyshiba) on keybase.
  • I have a public key ASCwZjSG2CcEAJQhOeeuQUmjyHlFyDLPzxXUYHeKBvY58Qo

To claim this, I am signing this object:

@mohit242
mohit242 / main.dart
Created August 1, 2019 21:12
FirstProgram
void main() {
String name = "Bob";
var name_ = "Bob";
// Automatically infers type. name contains refernee to String object with value "Bob"
// name = 22; Cannot assign value of different type
// Note: Dart is strongly typed
dynamic planet = "Earth";
planet = 33;

Keybase proof

I hereby claim:

To claim this, I am signing this object: