Skip to content

Instantly share code, notes, and snippets.

View Anirbansingha1's full-sized avatar

Anirban Singha Anirbansingha1

  • no company
  • India
View GitHub Profile
/*! Invoice Templates @author: Invoicebus @email: [email protected] @web: https://invoicebus.com @version: 1.0.0 @updated: 2017-09-07 12:09:32 @license: Invoicebus */
/* Reset styles */
@import url("https://fonts.googleapis.com/css?family=PT+Sans:400,700&subset=latin,latin-ext,cyrillic,cyrillic-ext");
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
/*! Invoice Templates @author: Invoicebus @email: [email protected] @web: https://invoicebus.com @version: 1.0.0 @updated: 2017-09-07 12:09:32 @license: Invoicebus */
@media only screen and (max-width: 865px) {
#memo .company-info {
width: auto;
}
#memo .payment-info {
float: none;
clear: both;
text-align: left;
padding-top: 15px;
#hiderow,
.delete {
display: none;
}
/*
CSS-Tricks Example
by Chris Coyier
http://css-tricks.com
*/
* { margin: 0; padding: 0; }
body { font: 14px/1.4 Georgia, serif; }
#page-wrap { width: 800px; margin: 0 auto; }
function print_today() {
// ***********************************************
// AUTHOR: WWW.CGISCRIPT.NET, LLC
// URL: http://www.cgiscript.net
// Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts today!
// ( http://www.cgiscript.net/scripts.htm )
// ***********************************************
var now = new Date();
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
/*
* jQuery JavaScript Library v1.3.2
* http://jquery.com/
*
* Copyright (c) 2009 John Resig
* Dual licensed under the MIT and GPL licenses.
* http://docs.jquery.com/License
*
* Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
* Revision: 6246
# import the necessary packages
import numpy as np
import cv2
def order_points(pts):
# initialzie a list of coordinates that will be ordered
# such that the first entry in the list is the top-left,
# the second entry is the top-right, the third is the
# bottom-right, and the fourth is the bottom-left
rect = np.zeros((4, 2), dtype = "float32")
from skimage.filters import threshold_local
import pytesseract
import cv2
import sys
import numpy as np
from docx import Document
from PIL import Image
import os
#!/usr/bin/python3
import sys,os
domain_file=sys.argv[1]
thread= sys.argv[2]
with open(domain_file) as d:
for line in d:
line=line.strip()
output=line+'_dir.txt'
line='https://'+line
dir_cmd='gobuster dir -u '+line+' -t '+thread+' -w /mnt/software/dirsearch-wordlist.txt -x .php,.html,.asp -o '+output