Skip to content

Instantly share code, notes, and snippets.

View agustif's full-sized avatar

Agusti F. agustif

View GitHub Profile
@cablej
cablej / default.md
Created June 21, 2025 18:46
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
@rafisics
rafisics / arxiv.py
Last active May 19, 2025 15:01
arXiv script - Python tool to query arXiv papers and download files from terminal. Handles hep-th/9711200 and 2412.16795 formats.
#!/usr/bin/python
## arXiv script version 0.3
## Copyright 2015 Tom Brown
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 3 of the
## License, or (at your option) any later version.
@rmtbb
rmtbb / ChatGPT Canvas HTML Renderer from Clipboard.url
Last active April 24, 2025 10:07
Bookmarklet that lets you render a full HTML page with any included css and javascript that is currently copied to your clipboard. Also works for SVG code. Useful with ChatGPT Canvas
javascript:(function(){try{navigator.clipboard.readText().then(function(t){if(t){var e=window.open("","_blank","width=800,height=600");e.document.open(),e.document.write(t),e.document.close()}else alert("Clipboard is empty. Please copy some text to the clipboard first.")}).catch(function(t){console.error("Failed to read clipboard contents: ",t),alert("An error occurred while trying to access the clipboard. Please ensure your browser allows clipboard access.")})}catch(t){console.error("An error occurred:",t),alert("An error occurred while trying to open the new window with the clipboard content.")}})();//bookmarklet_title: HTML Preview from Clipboard
@xpl
xpl / hackernews-chat-mode.userscript.js
Last active October 12, 2024 15:55
HackerNews Chat Mode (Live Comments Updater)
// ==UserScript==
// @name HN Chat Mode
// @namespace https://news.ycombinator.com/
// @version 2024-09-18
// @description live comments updater
// @author You
// @match https://news.ycombinator.com/item*
// @icon https://www.google.com/s2/favicons?sz=64&domain=news.ycombinator.com
// @grant none
// ==/UserScript==
@MurkyMeow
MurkyMeow / Component.tsx
Last active February 20, 2024 13:52
useHover react hook
export const Component = () => {
const servicesRef = useRef<HTMLAnchorElement>(null);
const isServicesHovered = useHover(servicesRef);
return (
<Popover.Root open={isServicesHovered}>
<Popover.Trigger asChild>
<Link href="/" ref={servicesRef}>
Services
</Link>
@DHDev0
DHDev0 / tinygrad_setup.sh
Last active February 3, 2025 02:20
Setup script for Tinygrad with Nvidia GPU on Ubuntu native/wsl2
#!/bin/bash
# Setup script for Tinygrad, including all supported backends, made it for WSL2 Ubuntu 22.04 running on Windows 10/11 with an up-to-date Nvidia GPU driver (it should work for native Ubuntu too)
# To use this script, save it in a file: nano setup_environment.sh
# give it execute permissions: chmod +x setup_environment.sh
# and then run it: ./setup_environment.sh
# Make sure to run it in a terminal where you have administrative (sudo) access, as some steps require it.
# Initialize variables
@postmalloc
postmalloc / hn_sidebar.js
Last active August 30, 2023 08:10
Hacker News comments sidebar bookmarklet
// A handy bookmarklet to display comments from the top-rated Hacker News thread related to the current page
// Written with the help of GPT-4
javascript:(function() {
const createCommentElement = (comment, depth) => {
const commentWrapper = document.createElement('div');
commentWrapper.style.paddingLeft = (depth * 20) + 'px';
commentWrapper.style.marginBottom = '10px';
commentWrapper.style.marginLeft = '10px';
commentWrapper.style.color = '#333';
@yzdbg
yzdbg / auto-dr.md
Last active November 3, 2023 17:11

Automating Daily Reports, because fuck it, really...

Each day at our company, developers are required to document their activities, painstakingly jotting down their daily work and future plans. A monotonous chore that I just really dislike.

So now, there's a scribe for that :

auto-dr-

Code

@Webarkitekt
Webarkitekt / .env
Last active May 23, 2025 20:41
How to connect TinaCMS to Gitlab with gitbeaker
MONGODB_URI=[YOUR_MONGO_DB_URL]
GITLAB_HOST=[YOUR_GITLABHOST_URL]
GITLAB_PROJECT_ID=[YOUR_GITLAB_PROJECT_ID]
GITLAB_BRANCH=[YOUR_GITLAB_BRANCH]
GITLAB_PERSONAL_ACCESS_TOKEN=[YOUR_GITLAB_TOKEN]
TINA_PUBLIC_IS_LOCAL=false
# _optionally_ Use Tina Cloud for user authentication
#NEXT_PUBLIC_TINA_CLIENT_ID=***
@VictorTaelin
VictorTaelin / gpt4_abbreviations.md
Last active April 29, 2025 09:24
Notes on the GPT-4 abbreviations tweet

Notes on this tweet.

  • The screenshots were taken on different sessions.

  • The entire sessions are included on the screenshots.

  • I lost the original prompts, so I had to reconstruct them, and still managed to reproduce.

  • The "compressed" version is actually longer! Emojis and abbreviations use more tokens than common words.