Skip to content

Instantly share code, notes, and snippets.

View HashWarlock's full-sized avatar
🥷
💨

Joshua HashWarlock

🥷
💨
View GitHub Profile
@HashWarlock
HashWarlock / intro.md
Last active February 27, 2026 01:51
Deploy OpenClaw on GCP Workshop for AI Collective

Intro (2 minutes)

Hey everyone — I’m Joshua Waller, Director of Technical Evangelism at Phala, where we built dstack — an open framework for Confidential Compute and Private AI. Today we won’t be focusing on Private AI, but we will be exploring how to deploy OpenClaw on Google Cloud Platform using Compute Engine and Docker.

The goal is to walk out of here with a live, working Gateway running on GCP — and a clear mental model of how each piece fits together.

We’ll do this step‑by‑step, and I’ll pause at milestones to make sure everyone is on the same page before moving forward. If you get stuck, we’ll solve it together — no one gets left behind.

What you’ll accomplish today:

@HashWarlock
HashWarlock / docker-compose.yml
Created January 28, 2026 17:34
Moltbot in CVM with Redpill Private Models
# Clawdbot on Phala Cloud CVM
# Deploy with: docker compose -f docker-compose.phala.yml up -d
#
# Access the web UI at http://<DSTACK_APP_ID>-18789.<DSTACK_GATEWAY_URL>
# Configure channels and API keys via /setup (password protected)
#
# If REDPILL_API_KEY is set, the container auto-configures Redpill
# as the default provider on first boot.
services:
@HashWarlock
HashWarlock / ssh_keys.py
Last active October 8, 2025 20:44
SSH Keygen with Dstack Deterministic Key Generator
# SSH Key Generation from Dstack Keys
# Run this notebook to generate SSH keys from deterministic dstack keys
# ## Install Dependencies
# Run this cell first if PyNaCl isn't installed
# !pip install PyNaCl
# ## Import Libraries
@HashWarlock
HashWarlock / deploy_to_phala_cloud.mdc
Created August 1, 2025 07:54
Vibe Code Phala Cloud Deployments
---
alwaysApply: true
---
# Phala Cloud TEE Deployment Guide
## Overview
This guide covers the deployment of applications to Phala Cloud's Trusted Execution Environment (TEE) infrastructure using the official Phala Cloud CLI. Phala Cloud provides confidential computing capabilities through Confidential Virtual Machines (CVMs) that ensure secure execution with hardware-based attestation.
@HashWarlock
HashWarlock / scripty-eliza.md
Last active February 12, 2025 07:24
Help Eliza Prompt

Code to Extract Twitter Data for Template Prompt

This code I added in packages/client-twitter/src/post.tsin the generateNewTweet() function.

let homeTimeline = [];
let ownPosts = [];

if (!fs.existsSync("tweetcache")) fs.mkdirSync("tweetcache");
// read the file if it exist
homeTimeline = await this.client.fetchHomeTimeline(10);
@HashWarlock
HashWarlock / Dockerfile
Last active November 16, 2024 21:23
Docker Success Build
# Base image extends rust:nightly which extends debian:buster-slim
FROM rustlang/rust:nightly as build
# Install necessary build dependencies, including protoc
RUN apt-get update && apt-get install -y \
libssl-dev \
libsqlite3-dev \
libudev-dev \
pkg-config \
protobuf-compiler && \
@HashWarlock
HashWarlock / index.ts
Created September 18, 2024 09:19
Hacker Guide
import '@phala/wapo-env'
import { Hono } from 'hono/tiny'
import { html, raw } from 'hono/html'
import { handle } from '@phala/wapo-env/guest'
export const app = new Hono()
app.get('/', (c) => {
return c.html(
html`
@HashWarlock
HashWarlock / Phala-Hackathon-Guide.md
Last active September 19, 2024 19:04
Phala Hackathon Guide

Phala Hackathon Guide at ETHGlobal Singapore

Welcome to the Phala Hackathon Guide! This guide will provide you with all the necessary information to get started building on our platform. Whether you're a seasoned developer or new to the ecosystem, this guide will help you navigate through the essential steps and resources for build on Phala's Agent Contract.

Check out the an Agent Contract we deployed called the TEE Cheat Sheet!

If you want to know how to host HTML pages with hono, check out the Agent Contract template here.

Table of Contents

@HashWarlock
HashWarlock / ai-agent-contract-consensus-hackathon.md
Last active May 15, 2024 00:03
Phala Network Consensus 2024 Hackthon

Phala Network Consensus 2024 Hackathon Bounties

Bounty of $2,000 in Prizes (Up to 3 Winners)

(1x $1000, 1x $500) Build an AI Agent Contract for a popular Web3 Service

Ideas:

@HashWarlock
HashWarlock / test-your-phat-fn.md
Last active September 7, 2023 21:15
Codename Phat Functions: Build and Test Your First Function Locally Tutorial

Build and Test Your First Function Locally Tutorial

Author: Joshua Waller

This tutorial is based on Phala Network’s new feature product codename: Phat Function.

By the end of the tutorial you will be able to:

  • Generate a generic LensAPI Oracle Template using the @phala/fn CLI tool.