Skip to content

Instantly share code, notes, and snippets.

View OrthoDex's full-sized avatar
🎯
Focusing

Ishaan Malhi OrthoDex

🎯
Focusing
View GitHub Profile
@OrthoDex
OrthoDex / folding-at-home-ds.yml
Created May 31, 2020 03:36
Folding@Home Kubernetes Daemonset for GPU enabled nodes. https://foldingathome.org/
# """
# Kubernetes Daemonset configuration to run Folding@Home docker containers on
# GPU enabled nodes. The work here is provided as a best effort.
#
# NOTE: Please dry run this and consider the additional options of the client
# with /usr/bin/FAHClient --help before deploying this on your clusters.
#
# IMPORTANT: Please edit the cpu, gpu and memory requests and limits based on your desired usage.
#
# Author: Ishaan Malhi @ 2020
@OrthoDex
OrthoDex / docker_init_lightsail.sh
Last active December 12, 2019 23:02
Initialization script for AWS Lightsail to run docker.
sudo apt-get update
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
sudo apt-get update
apt-cache policy docker-engine
sudo apt-get install -y docker-engine
sudo usermod -aG docker ubuntu
export LC_ALL=C
sudo apt-get -y install python-pip
sudo pip install docker-compose
@OrthoDex
OrthoDex / .irbrc
Created December 3, 2016 18:40
My irbrc file for quick irb shell
# Enter this into your .irbrc file in your home directory
# hist => shows last 5 irb commands
# clear => clears the screen without typing the entire system command
# Double TAB for auto completion <3
require 'irb/completion'
require 'pp'
IRB.conf[:AUTO_INDENT]=true
def hist
temp = Readline::HISTORY.entries
puts Readline::HISTORY.entries[temp.length-5..temp.length]
@OrthoDex
OrthoDex / Code.gs
Last active October 14, 2019 00:50
Apps Script to create date wise sheets
/**
* A special function that runs when the spreadsheet is open, used to add a
* custom menu to the spreadsheet.
*/
function onOpen() {
var spreadsheet = SpreadsheetApp.getActive();
var menuItems = [
{name: 'Copy from Main Sheet', functionName: 'loadHTML'}
];