Skip to content

Instantly share code, notes, and snippets.

View thebusted's full-sized avatar
:octocat:
Dev first, SLEEP Later

THEBUSTED thebusted

:octocat:
Dev first, SLEEP Later
  • Chiangmai, Thailand
View GitHub Profile
@thebusted
thebusted / antigravity-browser-wsl.md
Created January 21, 2026 02:37 — forked from junielton/antigravity-browser-wsl.md
How to Run Antigravity Browser Automation on WSL2

Strategy: Bridge the WSL connection to use the native Windows Chrome installation via port forwarding. This avoids slow rendering inside Linux and utilizes your GPU.

1. Windows Setup (One-Time)

Open PowerShell as Administrator for these steps.

  1. Get your WSL Gateway IP (Run this inside your WSL terminal):
    ip route show | grep -i default | awk '{ print $3}'
@thebusted
thebusted / cloudflare-custom-log.conf
Created October 14, 2020 05:33
Nginx config on custom log for CloudFlare
# Create variable client IP, if direct access use $remote_addr instead
map $http_cf_connecting_ip $client_ip {
default $http_cf_connecting_ip;
'' $remote_addr;
}
log_format cf_custom '$client_ip - $remote_user [$time_local] '
'"$host" "$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" $http_cf_ray '
'rt=$request_time uct="$upstream_connect_time" uht="$upstream_header_time" urt="$upstream_response_time"';
@thebusted
thebusted / nginx-robotstxt.conf
Last active October 15, 2020 02:33
NGINX Config - Serve the robot.txt with "Disallow all robots"
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /var/www/html;
index index.html;
location / {