Skip to content

Instantly share code, notes, and snippets.

View arun-gupta's full-sized avatar

Arun Gupta arun-gupta

View GitHub Profile
@arun-gupta
arun-gupta / readme.md
Created March 5, 2024 02:05
Llama with JupyterLab

Download Llama

git clone https://github.com/arun-gupta/llama
cd llama
./download.sh

Install JupyterLab

@arun-gupta
arun-gupta / readme.md
Last active November 7, 2023 02:41
Building first LLM using LangChain
@arun-gupta
arun-gupta / readme.md
Last active June 29, 2023 03:21
Java, Web Assembly, Docker, Kubernetes, and oh my!

Java and Web Assembly Web Application

  • This sample will use TeaVM transpiler to convert Java code into WebAssembly. Create a new TeaVM project using Maven:
    mvn -DarchetypeCatalog=local \
    -DarchetypeGroupId=org.teavm \
    -DarchetypeArtifactId=teavm-maven-webapp \
    -DarchetypeVersion=0.8.1 archetype:generate
    
  • Package the .war file:
@arun-gupta
arun-gupta / readme.md
Last active June 15, 2023 11:18
Create a Rust-based Web Assembly application
  • Install rustup and the latest version of Rust
    arungupt@Aruns-MBP-52212 ~ % curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
    info: downloading installer
    
    Welcome to Rust!
    
    This will download and install the official compiler for the Rust
    programming language, and its package manager, Cargo.
    
@arun-gupta
arun-gupta / intel-developer-cloud.md
Last active January 25, 2023 17:56
Intel Developer Cloud Blog
  • Talk about Intel Developer Cloud? (2-3 slides?)
    • What is the service?
    • Audience (why would they come here)
    • What is offered today?
    • How is it different or aligned with other CSPs?
  • Walk them through cloud.intel.com
  • Sign up and login
  • Walk through the UI
    • Show different instances and explain their meaning/purpose
  • How do you spin up a SPR instance?
arungupt@M3G9F7DHHVmac forge % ./gradlew runServer
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.4.2/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build
> Configure project :
Java: 18.0.2, JVM: 18.0.2+9-61 (Oracle Corporation), Arch: aarch64
WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task
WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and unmodified. Microsoft m
> Task :runServer
2022-08-20 14:14:17,323 main WARN Advanced terminal features are not available in this environment
[14:14:17] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeserveruserdev, --gameDir, ., --fml.forgeVersion, 41.1.0, --fml.mcVersion, 1.19, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220607.102129]
[14:14:17] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.4 by Eclipse Adoptium; OS Mac OS X arch aarch64 version 12.5.1
[14:14:17] [main/DEBUG] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Found launch services [fmlclientdev,forgeclient,minecraft,forgegametestserverdev,fmlserveruserdev,fmlclient,fmldatauserdev,forgeserverdev,forgeserveruserdev,forgeclientdev,forgeclientuserdev,forgeserver,forgedatadev,fmlserver,fmlclientuserdev,fmlserverdev,forgedatauserdev,testharness,forgegametestserveruserdev]
[14:14:17] [main/DEBUG] [cp.mo.mo.NameMappingServiceHandler/MODLAUNCHER]: Found n
> Task :runServer
2022-08-20 13:53:54,225 main WARN Advanced terminal features are not available in this environment
[13:53:54] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeserveruserdev, --gameDir, ., --fml.forgeVersion, 41.1.0, --fml.mcVersion, 1.19, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220607.102129]
[13:53:54] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.4 by Eclipse Adoptium; OS Mac OS X arch aarch64 version 12.5.1
[13:53:54] [main/DEBUG] [cp.mo.mo.LaunchServiceHandler/MODLAUNCHER]: Found launch services [fmlclientdev,forgeclient,minecraft,forgegametestserverdev,fmlserveruserdev,fmlclient,fmldatauserdev,forgeserverdev,forgeserveruserdev,forgeclientdev,forgeclientuserdev,forgeserver,forgedatadev,fmlserver,fmlclientuserdev,fmlserverdev,forgedatauserdev,testharness,forgegametestserveruserdev]
[13:53:54] [main/DEBUG] [cp.mo.mo.NameMappingServiceHandler/MODLAUNCHER]: Found n
arungupt@huuhoatr-MOBL3 forge % ./gradlew genEclipseRuns
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.4.2/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build
> Configure project :
Java: 18.0.2, JVM: 18.0.2+9-61 (Oracle Corporation), Arch: aarch64
WARNING: This project is configured to use the official obfuscation mappings provided by Mojang. These mapping fall under their associated license, you should be fully aware of this license. For the latest license text, refer below, or the reference copy here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md, You can hide this warning by running the `hideOfficialWarningUntilChanged` task
WARNING: (c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes, but you may not redistribute the mappings complete and unmodified. Micro
drwxr-xr-x@ 20 arungupt staff 640 Aug 16 20:29 .
drwx------+ 12 arungupt staff 384 Aug 16 20:07 ..
drwxr-xr-x 6 arungupt staff 192 Aug 16 20:29 .gradle
-rw-r--r--@ 1 arungupt staff 3317 Aug 16 20:29 CREDITS.txt
-rw-r--r--@ 1 arungupt staff 27606 Aug 16 20:29 LICENSE.txt
-rw-r--r--@ 1 arungupt staff 2299 Aug 16 20:29 README.txt
drwxr-xr-x 10 arungupt staff 320 Aug 16 20:29 build
-rw-r--r--@ 1 arungupt staff 7573 Aug 16 20:29 build.gradle
-rw-r--r--@ 1 arungupt staff 28130 Aug 16 20:29 changelog.txt
drwxr-xr-x@ 3 arungupt staff 96 Aug 16 20:29 gradle