Skip to content

Instantly share code, notes, and snippets.

Avatar

Mark Drovdahl mdrovdahl

View GitHub Profile
@mdrovdahl
mdrovdahl / _README.md
Last active Aug 18, 2020 — forked from jifalops/_README.md
Headless Crostini quick setup script for WordPress development
View _README.md

Headless Crostini quick setup script for WordPress development

WARNING

  • The script appends to the PATH environment variable each time it runs (at the end).

To get the script, use the Terminal app:

user@penguin:~$ mkdir bin && cd $_
user@penguin:~/bin$ curl -O https://gist.githubusercontent.com/mdrovdahl/3e941c129c70d3d0bd1fbc088de1f31b/raw/setup-dev-machine.sh
@mdrovdahl
mdrovdahl / sitemap_checker.py
Last active Apr 12, 2017
Find missing dates in example.com/sitemap.xml
View sitemap_checker.py
#!/usr/bin/env python3
import requests, argparse, untangle
from urlparse import urlparse, parse_qs
from datetime import datetime, date, timedelta
domain = "https://example.com/"
path = "/sitemap.xml"
View gist:5b2edc510439776ed02a2cb8221dbee5
Warning, raw notes below...
Functions:
DEFINES
input("email", "text", title: "E-mail", description: "Your neviweb® account login e-mail")
input("password", "password", title: "Password", description: "Your neviweb® account login password")
input("gatewayname", "text", title: "Network Name:", description: "Name of your neviweb® network")
input("devicename", "text", title: "Device Name:", description: "Name of your neviweb® thermostat")
@mdrovdahl
mdrovdahl / neviweb.py
Last active Dec 20, 2016
Rough access to SinopeTech Smart Thermostat Data
View neviweb.py
#!/usr/bin/env python3
# This is a rough prototype for accessing device information from Sinope devices via their neviweb.com service and recording it to a Google Sheet
# TODO
# 1. move neviweb u/p into google auth json file in home directory
# 2. add outside temperature, avaliable from neviweb, but ideally from Bloomsky Weather Station
# 3. run as recurring cron job
from __future__ import print_function
@mdrovdahl
mdrovdahl / neviweb.py
Created Apr 11, 2016
Rough access to SinopeTech Smart Thermostat Data
View neviweb.py
#!/usr/bin/env python3
import requests
email = "joe@example.com" # Your neviweb account login e-mail
password = "password" # Your neviweb account login password
gatewayname = 'Home' # Name of your neviweb network
dataServer = "https://neviweb.com/"
# TODO make this the login() function
View csvtosqlite.py
"""
Copyright (c) 2009, Aaron Bycoffe
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
You can’t perform that action at this time.