Works for Cursor and Windsurf
A prompt is generated on Claude.ai using Claude 3.7 Sonnet, based on this template:
Step 1: Let it write naturally.
# syntax = docker/dockerfile:1 | |
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile | |
ARG RUBY_VERSION=3.3.0 | |
FROM registry.docker.com/library/ruby:$RUBY_VERSION-alpine as base | |
# Rails app lives here | |
WORKDIR /rails | |
# Set production environment |
Enter UEFI (keep volume [+] and ⏻ button at power up), disable Secure Boot and make USB first in boot order.
Install Kali with Gnome environment.
Install the Linux Surface kernel.
wget -qO - https://raw.githubusercontent.com/linux-surface/linux-surface/master/pkg/keys/surface.asc | gpg --dearmor | sudo dd of=/etc/apt/trusted.gpg.d/linux-surface.gpg
// Gatsby + Ant Design + Less | |
// gatsby-config.js plugins | |
{ | |
resolve: `gatsby-plugin-less`, | |
options: { | |
javascriptEnabled: true, | |
modifyVars: { | |
hack: `true; @import "${__dirname}/src/components/antd.less";`, |
#!/bin/sh | |
# Install | |
pkg install open-vm-tools xf86-input-vmmouse xf86-video-vmware xorg openbox obmenu | |
# Run services on start (see /etc/rc.conf) | |
sysrc dbus_enable="YES" | |
sysrc moused_enable="YES" | |
sysrc vmware_guest_vmblock_enable="YES" | |
sysrc vmware_guest_vmhgfs_enable="YES" |
RewriteEngine on | |
RewriteCond %{REQUEST_URI} !^/up.php | |
# TODO: Handle random port. | |
# TODO: Use ProxyPass or ProxyPassMatch instead of mod_proxy's RewriteRule for better performance. | |
RewriteRule ^(.*) http://127.0.0.1:8080/$1 [P] |