This file contains 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
#!/usr/bin/env python3 | |
import boto3 # pip install boto3 | |
import argparse | |
from urllib.parse import urlparse | |
from botocore.exceptions import ClientError | |
# Initialize S3 client | |
s3_client = boto3.client("s3") |
This file contains 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
/** | |
* @constant {number} MAX_NUM_PUBS | |
* @description Specifies the maximum number of publications to fetch from PubMed. | |
* Adjust this value to limit the number of results (valid options are 10, 20, 50, 100, or 200). | |
*/ | |
const MAX_NUM_PUBS = 10; | |
/** | |
* @function fetchPublications | |
* @description Fetches a list of publications from PubMed using E-Utilities, based on the provided author's name. |
This file contains 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
#!/bin/bash | |
## Install R, bspm and RStudio Server on Ubuntu 20.04 or 22.04 (focal or jammy). | |
## | |
## Install via ssh with: | |
## ssh -i "RStudioServerKey.pem" ubuntu@ec2-instance 'sudo bash -s' < $THIS_SCRIPT | |
## | |
## Note that RStudio Server starts immediately after installation. | |
## Access it via http://ec2-xx-xx-xx-xx.eu-central-1.compute.amazonaws.com:8787 |
This file contains 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
// SPDX-License-Identifier: GPL-2.0-only | |
/* | |
* Generic entry points and implementation of Linux a scheduling class. | |
*/ | |
#include "sched.h" | |
#include <linux/sched/myscheduler.h> | |
#include <linux/kernel.h> | |
#include <linux/jiffies.h> | |
#include <linux/sched/task.h> |
This file contains 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
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <time.h> | |
#include <unistd.h> | |
#include <fcntl.h> |