Skip to content

Instantly share code, notes, and snippets.

View su8's full-sized avatar

su8

  • defunct
View GitHub Profile
@su8
su8 / yt-dl.cpp
Last active December 7, 2025 02:23
yt-dl.cpp
//g++ youtube_downloader.cpp -o youtube_downloader -lcurl
#include <iostream>
#include <string>
#include <cstdio>
#include <cstdlib>
#include <array>
#include <memory>
#include <stdexcept>
#include <sys/stat.h>
@su8
su8 / main36.cpp
Last active December 5, 2025 06:56
main36.cpp
/*
* Copyright 12/03/2025 https://github.com/su8/0vershell
* 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 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@su8
su8 / main35.cpp
Created December 4, 2025 03:33
main35.cpp
/*
* Copyright 12/03/2025 https://github.com/su8/0vershell
* 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 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@su8
su8 / 1.diff
Created December 3, 2025 09:54
1.diff
70a71
> std::vector<char*> splitArgs(const std::string &cmd);
187a189,203
> // Split a string by spaces into arguments
> std::vector<char*> splitArgs(const std::string &cmd) {
> std::istringstream iss(cmd);
> std::string token;
> std::vector<char*> args;
> while (iss >> token) {
> char *arg = new char[token.size() + 1];
@su8
su8 / main23.cpp
Last active November 30, 2025 15:47
main23.cpp
#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <string>
#include <ctime>
#include <filesystem>
@su8
su8 / yt2.cpp
Created November 27, 2025 21:13
yt2.cpp
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <curl/curl.h>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
@su8
su8 / yt.cpp
Created November 27, 2025 21:12
yt.cpp
#include <sqlite3.h>
#include <iostream>
#include <string>
#include <chrono>
#include <thread>
#include <ctime>
#include <cstdlib>
int main(void) {
sqlite3 *conn;
@su8
su8 / main22.cpp
Created November 24, 2025 01:40
main22.cpp
/*
Copyright 11/20/2025 https://github.com/su8/0vershred
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 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@su8
su8 / main21.cpp
Created November 22, 2025 22:19
main21.cpp
/*
Copyright 11/20/2025 https://github.com/su8/0vershred
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 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@su8
su8 / main20.c
Created November 15, 2025 13:50
main20.c
#include <stdlib.h>
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
#include <glib.h>
#include <glib/gi18n.h>
#include <vlc/vlc.h>
#define BORDER_WIDTH 6
void destroy (GtkWidget *widget, gpointer data);