Skip to content

Instantly share code, notes, and snippets.

View renanliberato's full-sized avatar
🎯

Renan Liberato Sant'Ana renanliberato

🎯
View GitHub Profile
@renanliberato
renanliberato / opencode.json
Created October 9, 2025 13:18
opencode ghidramcp
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"ghidramcp": {
"type": "remote",
"url": "http://127.0.0.1:8081/sse",
"enabled": true
}
}
}
@renanliberato
renanliberato / gist:42d0ac53bd65f8d0725e6f563df7813d
Created October 9, 2025 01:23
check compilation issues on Unity without re-opening the editor
#!/bin/bash
# Find the latest DAG file automatically
latestDag=$(ls -t Library/Bee/*.dag | head -1)
exe="/Applications/Unity/Hub/Editor/6000.0.58f2/Unity.app/Contents/bee_backend"
# Check for C# compilation errors only
"$exe" --profile="Library/Bee/backend_profiler0.traceevents" --stdin-canary --dagfile="$latestDag" --continue-on-failure ScriptAssemblies | grep "error CS"
#!/bin/zsh
if [ $# -lt 1 ]; then
echo "Usage: $0 <script_path> [method1 method2 ...]"
echo "If no methods are provided, members (properties and methods) will be retrieved automatically using opencode."
echo "Example: $0 Assets/Class.cs"
echo "Or with specific methods: $0 Assets/Class.cs method1 method2"
exit 1
fi
const fs = require('fs')
const directory = './src/images';
const scriptFile = 'index.js';
if (fs.existsSync(`${directory}/${scriptFile}`))
fs.unlinkSync(`${directory}/${scriptFile}`);
const files = fs.readdirSync(directory);
fs.writeFileSync(`${directory}/${scriptFile}`, 'export const IMAGES = {\n');
@renanliberato
renanliberato / README.md
Created January 24, 2017 19:00
pom.xml configuration using JavaFX-Maven-Plugin

Using this pom.xml configuration, it is just needed to run "mvn jfx:native" to build your JavaFX application bundled with the current JRE in use.

The application will be outputed to ./target/jfx/native