Skip to content

Instantly share code, notes, and snippets.

View Evidlo's full-sized avatar
💭
what does this field do?

Evan Widloski Evidlo

💭
what does this field do?
  • Electrical Engineering
  • University of Illinois Urbana-Champaign
View GitHub Profile
#/bin/env python3
## Evan Widloski - 2017-01-06
## Asynchronous magstripe reader example
## Requires root and >= python 3.5
# Much taken from: http://python-evdev.readthedocs.io/en/latest/tutorial.html#reading-events-from-multiple-devices-using-asyncio
import asyncio, evdev
# MSR100 reader vendor/product ids
#/bin/env python3
## Evan Widloski - 2017-01-06
## Asynchronous magstripe reader example
## Requires root and >= python 3.5
# Much taken from: http://python-evdev.readthedocs.io/en/latest/tutorial.html#reading-events-from-multiple-devices-using-asyncio
import asyncio, evdev, json, os
# MSR100 reader vendor/product ids
from twisted.logger import Logger
from twisted.internet.defer import inlineCallbacks
from autobahn.twisted.wamp import ApplicationRunner
from autobahn.twisted.wamp import ApplicationSession
import time
class RobotSession(ApplicationSession):
log = Logger()
--- a/package/Config.in
+++ b/package/Config.in
@@ -756,6 +756,7 @@ menu "External python modules"
source "package/python-docutils/Config.in"
source "package/python-dominate/Config.in"
source "package/python-dpkt/Config.in"
source "package/python-ecdsa/Config.in"
source "package/python-engineio/Config.in"
source "package/python-enum/Config.in"
@@ -765,6 +766,7 @@ menu "External python modules"
@Evidlo
Evidlo / .muttrc
Created April 18, 2018 19:31
Neomutt Monokai Theme
# Evan Widloski - 2018-04-18
# Neomutt Monokai Theme
#---------- Colors ----------
set my_background = "color234"
set my_gray = "color245"
set my_magenta = "color198"
set my_brightmagenta = "brightcolor198"
set my_green = "color112"
set my_brightgreen = "brightcolor112"
@Evidlo
Evidlo / keepass3_decrypt.kdbx
Created May 13, 2018 20:20
KDBX V3 decryption example. AES only. No compression or entry protection.
#!/bin/env python3
# Evan Widloski - 2018-04-11
# keepass decrypt experimentation
# only works on AES encrypted database with unprotected entries
# Useful reference: https://gist.github.com/msmuenchen/9318327
# https://framagit.org/okhin/pygcrypt/#use
# https://github.com/libkeepass/libkeepass/tree/master/libkeepass
import struct
#!/usr/bin/env python
# Evan Widloski - 2018-11-02
# Auto answer any call and play a prerecorded message
from __future__ import print_function
from twisted.internet import protocol
from twisted.internet import reactor
import time
import re
# Evan Widloski - 2018-11-05
import ldap # this is python-ldap
import sys
import ldif
from ldap import modlist as modlist
import pprint
# set debugging level
ldap.set_option(ldap.OPT_DEBUG_LEVEL, 1)
@Evidlo
Evidlo / ipython proposal
Created February 21, 2019 07:48
proposal.md
``` python
print('hi')
```

Welcome to the reHackable scripts wiki!

Overview

The reHackable scripts repository provides a set of bash scripts primarily aimed to increase productivity for Linux and OSX enthusiasts that own a reMarkable tablet.

The repository provides a broad range of scripts, ranging from simple patchers meant to fix obnoxious little flaws, all the way to push and pull scripts that can transfer documents from- and to the reMarkable from the bash command line.

Host scripts

Host scripts are meant to be executed on the host device and will frequently require a connection the device either locally via USB, or wirelessly via SSH.