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
<!DOCTYPE html> | |
<html lang="en"> | |
<head></head> | |
<body> | |
{% assign pastor_title = "Sr Pastor" %} | |
{% assign assoc_pastor_title = "Associate Pastor" %} | |
{% assign worship_leader_title = "Worship Leader" %} | |
{% assign kids_director_title = "Kids Director" %} | |
{% assign print_staff = true %} | |
{% for household in households %} |
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 shutil | |
from tkinter import Image | |
import requests | |
import turtle | |
from PIL import Image | |
def get_dice_url(): | |
dice = requests.get('http://roll.diceapi.com/html/d6') | |
return dice.text.split('"')[1] |
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 json | |
from flask import Flask | |
from pathlib import Path | |
import subprocess | |
app = Flask(__name__) | |
"""Don't Forget you need keybase running as a service using the same keybasehomedir | |
keybase --home ./keybasehomedir service --oneshot-username botname < paper-key""" |
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 pypco | |
import os | |
"""Best practice is to store credentials in environment variables.""" | |
pco = pypco.PCO(application_id=os.environ.get('PCO_APPLICATION_ID'), | |
secret=os.environ.get('PCO_API_SECRET')) | |
def get_field_definition(field_name): | |
field_definitions = pco.iterate('/people/v2/field_definitions') |
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
from bs4 import BeautifulSoup | |
import requests | |
import urllib.parse | |
from urllib.parse import unquote | |
from pathlib import Path | |
SCRAPEURL = 'https://www.health.pa.gov/topics/disease/coronavirus/Pages/Vaccine.aspx' | |
BASEURL = "https://www.health.pa.gov" |
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
# This goes in your async def handler(bot, event): | |
async def advertize_commands( | |
bot, channel: chat1.ChatChannel, message_id: int | |
) -> chat1.SendRes: | |
await bot.ensure_initialized() | |
res = await bot.chat.execute( | |
{ | |
"method": "advertisecommands", | |
"params": { |
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 pypco | |
from datetime import datetime | |
import time | |
now = datetime.now() # current date and time | |
# PCO time format 2015-10-08T17:56:41Z | |
notification_start_time = now.strftime("%Y-%m-%dT%H:%M:%SZ") | |
print(f"Watching for notifications past {notification_start_time}") | |
pco = pypco.PCO('APP_ID', | |
'APP_SECRET',) | |
while True: |
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
### Keybase proof | |
I hereby claim: | |
* I am pastorhudson on github. | |
* I am pastorhudson (https://keybase.io/pastorhudson) on keybase. | |
* I have a public key ASCIy4RRsgv8pfNMXfngLmkdcira01Vh_srM0Zq75pTukQo | |
To claim this, I am signing this object: |
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
Chrome developer tools are your friend. | |
Right click the login page and click inspect. Click the network tab and then do the login normally through the page. | |
In the list in the network tab look for the post request that performed the login. | |
It’s usually a post to /login or /login/auth or something like that. | |
Scroll to the bottom of that request and you’ll be able to see all the information that is sent to complete the login. |
NewerOlder