Skip to content

Instantly share code, notes, and snippets.

View onekung's full-sized avatar
🎯
Focusing

Thanongsuk Suyachai onekung

🎯
Focusing
View GitHub Profile
@onekung
onekung / Antigravity404
Last active August 1, 2026 17:09
Fix google Antigravity (Remote SSH on macOS: Fixing "posix_spawnp failed" and 404 Download Errors)
## Troubleshooting Antigravity Remote SSH on macOS: Fixing "posix_spawnp failed" and 404 Download Errors
When attempting to use **Antigravity** (or similar IDEs) to connect via Remote-SSH to a macOS (Darwin) server, you might encounter a `posix_spawnp failed` error or a `404 Not Found` during the server installation phase. This usually happens because the official `darwin-arm` server binary is missing from the download mirrors.
Below is a verified workaround to manually "assemble" a working Remote Server by bridging the Linux-arm structure with native Darwin binaries.
### 🛠 Prerequisites
On your **Remote macOS Server**, ensure you have the necessary tools installed via Homebrew:
@ayoubzulfiqar
ayoubzulfiqar / folder_structure.md
Created September 5, 2023 06:12
The Folder Structure for Every Golang Project

Go - The Ultimate Folder Structure

Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:

project-root/
    ├── cmd/
    │   ├── your-app-name/
    │   │   ├── main.go         # Application entry point
    │   │   └── ...             # Other application-specific files
@avoidik
avoidik / README.md
Last active October 14, 2025 02:25
Repack APK, make it debuggable
@ometa
ometa / socks5_proxy.go
Created February 25, 2020 16:05
Golang HTTP Client using SOCKS5 proxy and DialContext
// Golang example that creates an http client that leverages a SOCKS5 proxy and a DialContext
func NewClientFromEnv() (*http.Client, error) {
proxyHost := os.Getenv("PROXY_HOST")
baseDialer := &net.Dialer{
Timeout: 30 * time.Second,
KeepAlive: 30 * time.Second,
}
var dialContext DialContext
@atyachin
atyachin / android-emulator-as-system-service.txt
Created August 14, 2018 19:42
Android Emulator as a system service (systemd)
---------------------------------------------
/etc/systemd/system/android-emulator.service:
---------------------------------------------
[Unit]
Description=Android Emulator
After=network.target
[Service]
Type=simple
Environment=SHELL=/bin/bash
@teknoraver
teknoraver / unixhttpc.go
Last active November 26, 2025 20:43
HTTP over Unix domain sockets in golang
package main
import (
"context"
"flag"
"fmt"
"io"
"net"
"net/http"
"os"