Skip to content

Instantly share code, notes, and snippets.

View savankaneriya's full-sized avatar
💻
Working on Something

savan kaneriya savankaneriya

💻
Working on Something
View GitHub Profile
@savankaneriya
savankaneriya / pdf_2_html.py
Created September 9, 2022 12:22 — forked from ivandeex/pdf_2_html.py
convert pdf to html or xml
# https://github.com/scraperwiki/pdfminer/blob/scraperwiki/tools/pdf2html.cgi
import pdfminer
from pdfminer.pdfinterp import PDFResourceManager, process_pdf
from pdfminer.converter import HTMLConverter, TextConverter
from pdfminer.layout import LAParams
rsrcmgr = PDFResourceManager()
laparams = LAParams()
converter = HTMLConverter if format == 'html' else TextConverter
device = converter(rsrcmgr, out_file, codec='utf-8', laparams=laparams)
process_pdf(rsrcmgr, device, in_file, pagenos=[1,3,5], maxpages=9)
@savankaneriya
savankaneriya / git-live-server-deployment.md
Last active September 12, 2020 13:44 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.

@savankaneriya
savankaneriya / update-PHP-70-to-72.sh
Last active November 21, 2018 05:28 — forked from jakeydevs/update.sh
script to Update PHP 7.0 to 7.2
#! /bin/bash
# Please only run IF YOU ARE SURE YOU SHOULD!
#
# This script will remove PHP and attempt to install the latest
# "Stable" version! To help me with LARAVEL installations, it'll
# also install composer and turn on mod_rewrite as well if it cannot
# be sure it is installed
#
# @author @JakeLPrice