- My blog: https://su8.github.io
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <fstream> | |
| #include <sstream> | |
| #include <algorithm> | |
| #include <cstdlib> | |
| #include <cstdio> | |
| #include <cstring> | |
| #include <string> | |
| #include <ctime> | |
| #include <filesystem> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <fstream> | |
| #include <sstream> | |
| #include <string> | |
| #include <cstdlib> | |
| #include <curl/curl.h> | |
| #include <nlohmann/json.hpp> | |
| using json = nlohmann::json; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <sqlite3.h> | |
| #include <iostream> | |
| #include <string> | |
| #include <chrono> | |
| #include <thread> | |
| #include <ctime> | |
| #include <cstdlib> | |
| int main(void) { | |
| sqlite3 *conn; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::process::Command; | |
| use std::path::Path; | |
| use std::fs::read_dir; | |
| use std::thread; | |
| use std::sync::Arc; | |
| use crossbeam::scope; | |
| fn optimize_pdf(pdf_path: &Path) { | |
| let output_path = pdf_path.with_name(format!("optimized_{}", pdf_path.file_name().unwrap().to_str().unwrap())); | |
| let mut cmd = Command::new("gs"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::process::Command; | |
| use std::path::Path; | |
| use std::path::PathBuf; | |
| use std::fs::read_dir; | |
| use std::env; | |
| fn optimize_pdf(pdf_path: &Path) -> std::io::Result<()> { | |
| let output_path = pdf_path.with_file_name(format!("optimized_{}", pdf_path.file_name().unwrap().to_str().unwrap())); | |
| let mut cmd = Command::new("gs"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::path::Path; | |
| use std::process::Command; | |
| use std::fs::File; | |
| use std::io::Write; | |
| use std::thread; | |
| use std::sync::mpsc; | |
| use std::sync::Arc; | |
| use std::sync::atomic::{AtomicUsize, Ordering}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| 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 | |
| GNU General Public License for more details. |
NewerOlder