This file contains hidden or 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
from tika import parser | |
import os | |
def extract_text_from_pdfs_recursively(dir): | |
for root, dirs, files in os.walk(dir): | |
for file in files: | |
path_to_pdf = os.path.join(root, file) | |
[stem, ext] = os.path.splitext(path_to_pdf) | |
if ext == '.pdf': |
This file contains hidden or 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
#### MATPLOTLIBRC FORMAT | |
## This is a sample matplotlib configuration file - you can find a copy | |
## of it on your system in | |
## site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it | |
## there, please note that it will be overwritten in your next install. | |
## If you want to keep a permanent local copy that will not be | |
## overwritten, place it in the following location: | |
## unix/linux: | |
## $HOME/.config/matplotlib/matplotlibrc or |
This file contains hidden or 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 subprocess | |
import os | |
import re | |
import sys | |
import argparse | |
import httplib, urllib | |
import time | |
""" | |
# place this file at /home/ethos/check_hash_reboot.py |
This file contains hidden or 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 | |
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password | |
REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'` | |
if [ -z "$REPO_URL" ]; then | |
echo "-- ERROR: Could not identify Repo url." | |
echo " It is possible this repo is already using SSH instead of HTTPS." | |
exit | |
fi |