Skip to content

Instantly share code, notes, and snippets.

View fyse-nassar's full-sized avatar

Fyse Nassar fyse-nassar

View GitHub Profile
@fyse-nassar
fyse-nassar / parallel_add.c
Created September 25, 2020 05:38
Parallel Program to add numbers from 1 to n using MPI
// This program adds numbers from 1 to n using MPI
// Sample Execution code : mpirun -n 4 ./a.out 100 ; Here 100 represents n
#include <stdio.h>
#include <stdlib.h>
#include <mpi.h>
int main(int argc, char **argv)
{
@fyse-nassar
fyse-nassar / instructions.md
Last active August 5, 2020 02:58
Attaching Google Drive to Headless Server

Install the Google Drive Ocamlfuse

sudo add-apt-repository ppa:alessandro-strada/ppa -y
sudo apt-get update
sudo apt-get install google-drive-ocamlfuse

Get the Google Drive API credentials

google-drive-ocamlfuse -headless -label me -id ##yourClientID##.apps.googleusercontent.com -secret ###yoursecret##### 

Mount the drive

mkdir /my_mnt_dir