Skip to content

Instantly share code, notes, and snippets.

View agustif's full-sized avatar

Agusti F. agustif

View GitHub Profile
@VictorTaelin
VictorTaelin / gpt4_abbreviations.md
Last active December 13, 2025 10:50
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.

@maximedegreve
maximedegreve / contract_lottery.sol
Last active January 30, 2023 16:45
TinyFaces NFT Lottery 1.1 (Contract)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import 'erc721a/contracts/ERC721A.sol';
import 'erc721a-upgradeable/contracts/ERC721AUpgradeable.sol';
import '@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol';
import "@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol";
import "operator-filter-registry/src/upgradeable/OperatorFiltererUpgradeable.sol";

Title Buzzed Bees DAO

TL;DR Save Bees while maintaining & improving the new "Existing Communities" Nouns Builder feature

Description

The Buzzed Bee DAO has 2 very clear objectives.

@looki
looki / outpainting.py
Created September 13, 2022 02:23
Simple CLI for parlance-zz's outpainting noise generation script
# Code extracted from https://github.com/parlance-zz/g-diffuser-bot/tree/g-diffuser-bot-diffuserslib-beta
#
# `pip install numpy image scikit-image` should cover all dependencies, but they are probably installed if you're using SD.
#
# The GitHub recommends a denoising strength of 0.6 and config scale of 10.
# I've found a bit higher values for the denoising strength to work better, ymmv
import os, sys
from PIL import Image
@nmushegian
nmushegian / gist:8fdb4eff9d9f998f71f610d694734f81
Last active August 31, 2024 04:08
monospace and dumb money
- monospace protocols company principles
- We are an R&D firm.
- We only work on systems we believe are credibly neutral, and aim to make this definition rigorous.
- Any software written for a client must be licensed permissively.
- We do not operate validators (we run full nodes but do not produce blocks). People can run whatever they want as individuals or side ventures.
- We only accept investments from entities that leave us complete control over when and how to allocate funds and to pay returns. We are making long term plays and there is no reason to invest in us if you don't think we know what we are doing.
- Software Writers
- Software writers spend 60% time on personal projects and 40% on company projects.
- Software writers own their IP, but must license it permissively (more specifics later).
@alin23
alin23 / runbg.swift
Last active April 25, 2023 13:16
Run processes on the "Icestorm" efficiency cores of the M1 Mac chip
#!/usr/bin/env swift
// Inspired by: https://eclecticlight.co/2021/09/14/how-to-run-commands-and-scripts-on-efficiency-cores/
// Run directly:
// chmod +x runbg.swift
// ./runbg.swift
//
// Compile to static binary:
// swiftc runbg.swift -o runbg
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active January 10, 2026 00:02
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@mattitanskane
mattitanskane / hidedock.md
Last active October 18, 2025 19:53
How to hide the Dock on MacOS

I never use the Dock and all it does for me is come in the way when I'm resizing windows or clicking on stuff I can't access using just my keyboard.

Here's a way to hide the Dock so it doesn't get in the way anymore.

Run the following commands in the terminal.

# Hide Dock
defaults write com.apple.dock autohide -bool true && killall Dock
defaults write com.apple.dock autohide-delay -float 1000 && killall Dock
@JT501
JT501 / DelayRedirect.tsx
Created October 17, 2020 09:53
React Router - DelayRedirect
import * as React from 'react';
import { useEffect, useState } from 'react';
import { Redirect, RedirectProps } from 'react-router';
interface DelayProps {
delay: number;
}
const DelayRedirect = ({ delay, ...rest }: RedirectProps & DelayProps) => {
const [timeToRedirect, setTimeToRedirect] = useState(false);