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
outputFileName = 'single-page2' | |
import glob | |
filenames = glob.glob('*.md') | |
with open(outputFileName, 'w') as outfile: | |
for fname in filenames: | |
with open(fname) as infile: | |
fileTitleString = "\n\n\n" + "# " + fname + "\n" | |
outfile.write(fileTitleString) | |
for line in infile: |
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
# SETTINGS | |
readonly docsRoute=~/Documents/search-repos | |
# CODE | |
doAsearch () { | |
echo ------------------------------------------------------------------------------------------------------------------- | |
echo New search. Enter the search terms [word1 and word2]: | |
echo word1: | |
read word1 | |
echo word2: |
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
#Get the directory right | |
cd ~/repos-folder | |
pwd | |
ls | |
echo | |
#Git pull everything | |
find . -maxdepth 1 -type d -exec sh -c '(cd {} && pwd && git pull && echo ...)' ';' | |
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
fmhy-guides.md |
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 os | |
import base64 | |
import re | |
import requests | |
import rentry | |
def extract_string_from_url(url): | |
# Define the regular expression pattern to match the string after the last '/' | |
pattern = r'https://rentry\.(?:co|org)/([^/]+)$' |
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 requests | |
#----------------base64 page processing------------ | |
import base64 | |
import re | |
doBase64Decoding = True | |
def fix_base64_string(encoded_string): | |
missing_padding = len(encoded_string) % 4 |