Skip to content

Instantly share code, notes, and snippets.

View su8's full-sized avatar

su8

  • defunct
View GitHub Profile
@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);
@su8
su8 / main16.rs
Created November 12, 2025 18:04
main16.rs
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");
@su8
su8 / main15.rs
Created November 12, 2025 17:59
main15.rs
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");
@su8
su8 / main14.rs
Created November 12, 2025 17:58
main14.rs
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};
@su8
su8 / test.cpp
Created November 9, 2025 16:13
test.cpp
/*
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.
@su8
su8 / main13.rs
Created November 8, 2025 16:30
main13.rs
use std::fs;
use std::fs::DirEntry;
use std::fs::File;
use std::fs::OpenOptions;
use std::io;
use std::io::Write;
use std::path::Path;
use std::path::PathBuf;
use std::sync::Mutex;
use std::thread;
@su8
su8 / main12.rs
Created November 8, 2025 00:17
main12.rs
use std::fs;
use std::fs::DirEntry;
use std::fs::File;
use std::io;
use std::io::BufRead;
use std::io::BufReader;
use std::path::Path;
use std::path::PathBuf;
use std::sync::Mutex;
use std::thread;
@su8
su8 / main11.rs
Last active November 8, 2025 00:14
main11.rs
use std::fs;
use std::fs::DirEntry;
use std::fs::File;
use std::fs::OpenOptions;
use std::io;
use std::io::Write;
use std::path::Path;
use std::path::PathBuf;
use std::process;
use std::sync::Mutex;