- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
| git clone https://github.com/OpenDevin/OpenDevin.git | |
| cd OpenDevin | |
| conda create -n od python=3.10 | |
| conda activate od | |
| docker ps | |
| (optional) install docker if not already installed | |
| docker pull ghcr.io/opendevin/sandbox | |
| export OPENAI_API_KEY={your key} | |
| (optional I had to install rust) curl --proto '=https' --tlsv1.2 -sSf [https://sh.rustup.rs](https://sh.rustup.rs/) | sh | |
| (optional) restart terminal |
| #!/bin/bash | |
| # Allows manually configuring the java version to use with http://codeship.io | |
| # | |
| # This should not be necessary for most users thanks to the jdk_switcher | |
| # (see: https://documentation.codeship.com/languages/java-and-jvm-based-languages/) | |
| # However if you need to test against a specific version of the JDK it could still be useful. | |
| wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" $JAVA_URL | |
| mkdir -p ~/java | |
| tar -xzf $JAVA.tar.gz -C ~/java --strip-components=1 |
| import java.time.*; | |
| import java.time.format.DateTimeFormatter; | |
| import java.time.format.FormatStyle; | |
| import java.time.temporal.ChronoUnit; | |
| import java.time.temporal.TemporalAdjusters; | |
| import java.util.*; | |
| import static java.time.temporal.TemporalAdjusters.*; | |
| public class Java8DateTimeExamples { |