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
#!/usr/bin/env python | |
# based on tcp_serial_redirect.py from pyserial | |
# http://pyserial.sourceforge.net/ | |
"""USAGE: serial_tcp_redirect.py [options] | |
Simple Serial to Network (TCP/IP) redirector. | |
This redirector waits for data from the serial port, then connects | |
to the remote host/port and relays data back and forth. If either |
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
No one can guarantee the actions of another. | |
-- Spock, "Day of the Dove", stardate unknown |
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
Your best consolation is the hope that the things you failed to get weren't | |
really worth having. |
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
Your best consolation is the hope that the things you failed to get weren't | |
really worth having. |
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
#!/usr/bin/env python3 | |
import unicodedata | |
test_strings = [ | |
"בְּרֵאשִׁית, בָּרָא אֱלֹהִים, אֵת הַשָּׁמַיִם, וְאֵת הָאָרֶץ", | |
"bête", | |
] | |
class unicomb(str): |
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
cask :v1 => 'mplabx' do | |
version '2.30' | |
sha256 '551788c3f428590da3ee405ad3e6756a57ecb1c3dd4effe76fafebc10c4e1892' | |
depends => :java16 | |
url 'http://www.microchip.com/mplabx-ide-osx-installer' | |
name 'Microchip MPLabX' | |
homepage 'http://www.microchip.com/pagehandler/en-us/family/mplabx/home.html' | |
license :commercial |
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
#!/usr/bin/env python | |
from base64 import b64decode | |
from flask import Flask, current_app | |
from flask_sqlalchemy import SQLAlchemy | |
from flask_presst import PresstApi, ModelResource | |
from flask_presst.principal import PrincipalResource | |
from flask.ext.principal import UserNeed, RoleNeed |
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
"""\ | |
Pluzz Downloader | |
Downloads a movie from the French Television VOD | |
Usage: | |
pluzz_downloader.py [<url>] [--gui] [-t <target>] [--avconv <avconv>] | |
Options: | |
-g --gui Launch graphical user interface |
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
// by @guyzmo under WTFPL license | |
// http://i.got.nothing.to/hack/on/run-the-sl030-rfid-reader-on-linux/ | |
#include <errno.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <linux/i2c-dev.h> | |
#include <sys/ioctl.h> |
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
#!/usr/bin/env python | |
import sys | |
import urllib | |
import requests | |
from BeautifulSoup import BeautifulSoup | |
def get_google_auth_session(username, password): | |
session = requests.Session() | |
google_accounts_url = 'http://accounts.google.com' |