Skip to content

Instantly share code, notes, and snippets.

View therohitdas's full-sized avatar

Rohit Das therohitdas

View GitHub Profile
@therohitdas
therohitdas / Extract multiple PDFs with password
Last active January 1, 2024 14:51
Extracts multiple password protected PDFs into a new directory
#!/bin/python3
"""
How to use?
1) pip3 install pikepdf
2) save all pdfs in the same folder as the script
3) run the script using - python3 process.py <pdf_password>
4) all the extracted passwords will be stored in /extracted
"""

F

#include <bits/stdc++.h>

using namespace std;

int main()
{
 long sum = 0;
@therohitdas
therohitdas / my.cnf
Created April 3, 2020 15:35 — forked from rohityadavcloud/my.cnf
Example MySQL my.cnf optimized
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
syslog