Skip to content

Instantly share code, notes, and snippets.

View InfinityZ25's full-sized avatar

Juan Cedeno InfinityZ25

View GitHub Profile
@InfinityZ25
InfinityZ25 / generate_src_from_applied_diff.sh
Created September 13, 2024 21:47
cool demo of output of llm system
#!/bin/bash
# Navigate to the repository root
cd your_repo_directory || exit
# Create necessary directories
mkdir -p lib services
# Create the context_dto.py file with initial content
cat << 'EOF' > lib/context_dto.py
@InfinityZ25
InfinityZ25 / recursive_delete.js
Last active June 20, 2023 15:48
Delete all tweets
const TWITTER_NAME = "juan"; // Case sensitive
const TWITTER_HANDLE = "@thejcedeno" // Case sensitive
const DELETE_SPEED_MS = 1000; // Engaging too fast may trigger Twitters rate limiting
const TWITTER_NAME_HANDLE_TEXT = `${TWITTER_NAME}\n${TWITTER_HANDLE}`
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
@InfinityZ25
InfinityZ25 / windows-guide.md
Last active March 3, 2022 04:50
Hynix's Software Development Setup guide for windows.

Why Windows is less than ideal for Software Development?

  • Insert personal rant here.

Terminal

Windows doesn't come with a developer friendly terminal pre-installed, but Microsoft does have a Terminal, Powershell 7, that you can download from here, direct download.

Unix-like emulation

Windows doesn't have git & bash by default -- this sucks, so let's install git-bash from this URL. Once you install it, you can finally call yourself a "hacker".

A better Terminal

@InfinityZ25
InfinityZ25 / 0-referrals.md
Last active March 3, 2022 04:39
A one-stop link for setting up a new development space. The goal is to eventually automate the whole process into a single shell script -- both bash and powershell.

Cloud Providers Referrals

  • Vultr, great price and great reliability. Good DDoS protection for Miami. Free $100 in credits if you use my link.
  • Digital Ocean $DOCN, Great provider. AMD CPUs
@InfinityZ25
InfinityZ25 / docker-compose.yml
Created September 27, 2021 03:08
docker compose defualt
version: "3"
services:
proxy:
image: cubxity/minecraft-proxy:velocity-adopt16
ports:
- "25565:25577"
environment:
INIT_MEMORY: "512M"
MAX_MEMORY: "2G"
@InfinityZ25
InfinityZ25 / DelayTask.java
Last active November 13, 2021 08:59
Easy to use task chain library.
public class DelayTask implements Runnable {
private long time;
public DelayTask(long time) {
this.time = time;
}
public static DelayTask of(long milliseconds){
return new DelayTask(milliseconds);
private static String MAGIC_CHECKSUM = "yourmom";
/**
* Brief example, the idea is that the Optifine API would verify the user's
* instalation with a simple function based on the user's UUID and return an
* object with methods to manipulate the user's video settings etc.
*
* Also, I'm being explicit with my variables to make it easier to understand, I
* normally just user var keyword for everything haha.
*/
# Powershell Core Github:
# https://github.com/PowerShell/PowerShell
# Scoop website:
# https://scoop.sh/
# Git download url:
# https://git-scm.com/downloads
# Vscode download url:"
# https://code.visualstudio.com/
#Scoop install command on Powershell Admin
@InfinityZ25
InfinityZ25 / DistributedTask.java
Last active February 10, 2021 14:02
Generic method for distributed load tasks on Bukkit with examples on usage.
/* Add your package name here */
import java.util.List;
import java.util.function.Consumer;
import org.bukkit.plugin.Plugin;
import org.bukkit.scheduler.BukkitRunnable;
import org.bukkit.scheduler.BukkitScheduler;
import lombok.Getter;
@InfinityZ25
InfinityZ25 / Task.java
Created February 10, 2021 10:12
Example of distributed task in Spigot
import java.util.List;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.plugin.Plugin;
import org.bukkit.scheduler.BukkitRunnable;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;