This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curr_time=$(($(date +%s) * 1000)) # current millis - for exact value use https://currentmillis.com language examples | |
username="myusername" | |
read -s -p "Password:" pass_val | |
echo | |
# This is for a sample gateway 192.168.10.1:8090 which acepts login via login.xml | |
# we can get a command for this with F12/developertools|options for firefox chrome and click such file | |
# then get the curl request posted earlier - for encoding url use --data-urlencode option rest is simple |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#cp ${1} ${1}-$(date +%s).bkp | |
lines=2 # indicate the number of lines each split should have | |
last_line=1 | |
count=0 | |
end=$(wc -l <${1}) | |
while [[ ${last_line} -lt ${end} ]]; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import popplerqt5 | |
import sys | |
import PyQt5 | |
resolution = 150 | |
def main(): | |
doc = popplerqt5.Poppler.Document.load(sys.argv[1]) | |
total_annotations = 0 |