Skip to content

Instantly share code, notes, and snippets.

View agustif's full-sized avatar

Agusti F. agustif

View GitHub Profile
@agustif
agustif / gist:1b50dbe5827b792bae9293954e947f55
Created August 30, 2026 09:49
Rust ChatGPT Sandbox Skill
---
name: rust-sandbox
description: >
Compile, run, test, and debug Rust and Cargo projects inside ChatGPT's Linux
execution sandbox, including sessions where rustc/cargo are missing or outbound
network access is blocked. Use for Rust source files, Cargo.toml projects,
cargo build/run/test/check, compiler diagnostics, dependency resolution,
offline crates, or requests to make Rust work in the ChatGPT sandbox. Bootstrap
an official Rust toolchain through the public GitHub artifact bridge when
necessary and obtain maintainer-approved cargo-vendor bundles for dependencies.
@agustif
agustif / codexq.zsh
Created April 29, 2025 22:34
An OpenAI CLI codex quiet mode wrapper that parses the json logs with jq and awk and uses streamdown to parse markdown responses
# Wrapper for codex -q for compact, colored text log with $ prefix
codexq() {
# Check dependencies
if ! command -v jq >/dev/null 2>&1; then
echo "Error: jq is not installed. Please install jq." >&2
return 1
fi
if ! command -v streamdown >/dev/null 2>&1; then
echo "Error: streamdown is not installed. Please install streamdown." >&2
return 1
@agustif
agustif / find-user.ts
Created August 30, 2024 08:47
find-user-airstack-api
export enum SocialDappName {
Farcaster = "farcaster",
Lens = "lens",
}
type User = {
connectedAddresses: any[];
userAddress: string;
userId?: string;
@agustif
agustif / find-user.ts
Last active August 22, 2024 22:28
find-user-airstack.ts
export enum SocialDappName {
Farcaster = "farcaster",
Lens = "lens",
}
type User = {
connectedAddresses: any[];
userAddress: string;
userId?: string;
#!/bin/bash
# Set locale to ensure proper decimal point representation
export LC_NUMERIC="en_US.UTF-8"
# Fetches price from Coingecko Terminal for Higher MemeCoin
# Curl command to fetch price
RESULT=$(curl -s 'https://api.geckoterminal.com/api/v2/simple/networks/base/token_price/0x0578d8A44db98B23BF096A382e016e29a5Ce0ffe' -H 'accept: application/json')
@agustif
agustif / DelayRedirect.tsx
Created October 29, 2020 23:30 — forked from JT501/DelayRedirect.tsx
Next Router - DelayRedirect
import { useRouter } from 'next/router';
import React, { useEffect, useState } from 'react';
interface DelayProps {
delay: number;
to: string;
banner: boolean;
showCount: boolean;
}
@agustif
agustif / README.md
Created October 29, 2018 14:42 — forked from a-barbieri/README.md
NextJS sitemap generator with dynamic URL

NextJS sitemap generator

Install

The current setup has been tested on Next Js 7.0.0.

You need to install Axios.

$ npm install axios
@agustif
agustif / buildSitemap.js
Created October 29, 2018 14:41 — forked from evantahler/buildSitemap.js
35 lines to build a sitemap for next.js projects
#! /usr/bin/env node
// I am ./bin/buildSitemap.js
const path = require('path')
const glob = require('glob')
const fs = require('fs')
const SITE_ROOT = process.env.SITE_ROOT || 'https://www.actionherojs.com'
const SOURCE = process.env.SOURCE || path.join(__dirname, '..', 'pages', '/**/*.js')
const DESTINATION = process.env.DESTINATION || path.join(__dirname, '..', 'static', 'sitemap.xml')
@agustif
agustif / standard-notes-dark.css
Created October 22, 2017 23:11
Dark Theme for Standard Notes
@import url('https://fonts.googleapis.com/css?family=Roboto:300');
@import url('https://fonts.googleapis.com/css?family=Inconsolata');
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono');
:root
{
/* FONTS */
--overall-font-family: 'Roboto';
--overall-font-size: 14px;
--overall-font-color: #cccccc;
@agustif
agustif / .proton
Last active April 29, 2017 03:29
proton-cpu
{
;; This is your main proton configuration file
;; While using proton, all atom related configuration has to go inside here
;; Everything that is not set up through this file will get wiped on start
;; We gave you some cool defaults below but if you don't like it, feel free to change :)
;; Layers you wish to have active
;; To get a list of all available layers, check github.com/dvcrn/proton/tree/master/src/cljs/proton/layers
:layers
[