Skip to content

Instantly share code, notes, and snippets.

@spokzers
spokzers / README.md
Last active September 2, 2017 18:24
zip archive to pdf using python3

The script takes a .zip archive as an input, extracts it in /tmp/, gets all the extracted images and puts them in a PDF file and then saves that PDF in the CWD

Installation

Download zip and then install img2pdf using

pip install img2pdf

Usage:

python image2pdf some_archive.zip
@spokzers
spokzers / 22042017.c
Created May 12, 2017 14:00
Returning int and string from a thread
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <fcntl.h>
#include <unistd.h>
void *returnintanswer( void *ptr );
void *returnstringanswer( void *ptr );
int main()