This file contains hidden or 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 bash | |
set -e | |
# Set the versions of IPOPT and HSL's builder to use - from the tag releases | |
# https://github.com/coin-or/Ipopt/tags | |
# https://github.com/coin-or-tools/ThirdParty-HSL/tags | |
IPOPT_VERSION="3.14.10" | |
HSL_BUILDER_VERSION="2.2.1" | |
# Defaults |
This file contains hidden or 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
# I needed this because i didn't want to modify the files of the base system | |
# assuming you're in a folder with https://www.dell.com/support/home/en-us/drivers/driversdetails?driverid=dfhk6 downloaded | |
# we need systemd and kernel module access (not recommended to leave this without a reboot later) | |
sudo docker run --rm -itd --privileged --cap-add=ALL -v /dev:/dev -v /lib/modules:/lib/modules -v $(pwd):/workdir -v /sys/fs/cgroup:/sys/fs/cgroup:ro jrei/systemd-ubuntu:22.04 | |
# after that, launch into it with exec | |
sudo docker exec -it $0 bash | |
# in the docker |
This file contains hidden or 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
# Install CUDA | |
# https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=22.04&target_type=deb_network | |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb | |
sudo apt install ./cuda-keyring_1.1-1_all.deb | |
sudo apt-get update | |
sudo apt-get -y install cuda | |
rm cuda-keyring_1.1-1_all.deb | |
### Into ~/.bashrc | |
# Add NVCC to path |
This file contains hidden or 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 this at the top of your colab code | |
import os | |
if not os.path.exists('.mujoco_setup_complete'): | |
# Get the prereqs | |
!apt-get -qq update | |
!apt-get -qq install -y libosmesa6-dev libgl1-mesa-glx libglfw3 libgl1-mesa-dev libglew-dev patchelf | |
# Get Mujoco | |
!mkdir ~/.mujoco | |
!wget -q https://mujoco.org/download/mujoco210-linux-x86_64.tar.gz -O mujoco.tar.gz | |
!tar -zxf mujoco.tar.gz -C "$HOME/.mujoco" |
This file contains hidden or 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
var QUERYSHEETNAME = "All"; | |
var QUERYSHEETRANGE = "All!A2:D"; | |
// Query String for Anilist GraphQl endpoint | |
// Retrieve id and english title | |
var query = ` | |
query ($searchString: String) { | |
Media(search: $searchString, type: ANIME){ | |
id | |
title { |
This file contains hidden or 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
/** Nice and easy to understand... almost. The excessive use of var is really | |
* for no reason other than to be excessive and annoy a friend. - Adam Li | |
* This only transfers google files, you have to manually transfer other files | |
* It transfers everything if you have a google apps account and they allow it. | |
*/ | |
//This is the last part of the folder url | |
var folderId = "0000000"; | |
//email address of the future owner | |
var newOwner = "[email protected]"; |