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
# """ | |
# 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 |
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
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 |
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
# 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] |
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
/** | |
* 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'} | |
]; |