Skip to content

Instantly share code, notes, and snippets.

View danielquinn's full-sized avatar
👶
Exhausted

Daniel Quinn danielquinn

👶
Exhausted
View GitHub Profile
@danielquinn
danielquinn / linkedin.py
Created February 22, 2019 16:54
A starting point for the LinkedIn v2 API
from typing import Dict
from social_core.backends.oauth import BaseOAuth2
class Linkedin(BaseOAuth2):
name = "linkedin-v2"
SCOPE_SEPARATOR = " "
AUTHORIZATION_URL = "https://www.linkedin.com/oauth/v2/authorization"
@danielquinn
danielquinn / PLC.py
Created October 16, 2017 15:34
Some *very* old code that might help some with figuring out how to talk to a serial device in Pytyhon. This ran in Python 2.something.
# -*- coding: utf-8 -*-
import os
import re
import sys
from subprocess import call as ex
from time import sleep
import serial
@danielquinn
danielquinn / swift.py
Last active August 4, 2023 09:07
An MT103 parser
#
# This has since been turned into a proper Python3 module, so if you're
# running a modern version of Python, you can install it with pip:
#
# pip install mt103
#
# The project is here: https://github.com/danielquinn/mt103
#
from __future__ import unicode_literals
@danielquinn
danielquinn / .config
Created February 22, 2017 11:19
Config for 4.10.0
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.10.0-gentoo Kernel Configuration
#
#
# Gentoo Linux
#
CONFIG_GENTOO_LINUX=y
CONFIG_GENTOO_LINUX_UDEV=y
Feb 22 11:03:12 toronto wpa_supplicant[744]: wlp1s0: Trying to associate with c0:05:c2:63:ba:ff (SSID='VM6639401' freq=5220 MHz)
Feb 22 11:03:12 toronto kernel: mwifiex_pcie 0000:01:00.0: wlp1s0: already connected
Feb 22 11:03:12 toronto kernel: mwifiex_pcie 0000:01:00.0: wlp1s0: already connected
Feb 22 11:03:12 toronto wpa_supplicant[744]: wlp1s0: Association request to the driver failed
Feb 22 11:03:12 toronto NetworkManager[272]: <info> [1487761392.3724] device (wlp1s0): supplicant interface state: completed -> disconnected
Feb 22 11:03:12 toronto NetworkManager[272]: <info> [1487761392.4688] device (wlp1s0): supplicant interface state: disconnected -> scanning
Feb 22 11:03:15 toronto wpa_supplicant[744]: wlp1s0: Trying to associate with c0:05:c2:63:ba:f9 (SSID='VM6639401' freq=2437 MHz)
Feb 22 11:03:15 toronto wpa_supplicant[744]: wlp1s0: Association request to the driver failed
Feb 22 11:03:15 toronto kernel: mwifiex_pcie 0000:01:00.0: wlp1s0: already connected
Feb 22 11:03:15 toronto kernel: mwifiex_
@danielquinn
danielquinn / Keybase Proof
Last active June 23, 2017 21:42
I had to put this here so Keybase would believe me.
### Keybase proof
I hereby claim:
* I am danielquinn on github.
* I am danielquinn (https://keybase.io/danielquinn) on keybase.
* I have a public key ASDm5KKC7WpzgIWJLpiQ0ZQueVhp9rbgWtT3ch1h-J3dOwo
To claim this, I am signing this object: