import socket, ssl
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.settimeout(10)
wrapped= ssl.wrap_socket(sock, ssl_version=ssl.PROTOCOL_TLSv1_1)
wrapped.connect(('localhost', 61614))
#etc
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
Last login: Sat Feb 7 01:07:42 2015 from localhost | |
cpi:~$ git clone --recursive https://github.com/jupyter/colaboratory && cd colaboratory && pip install -r requirements.txt && python -m colaboratory | |
Cloning into 'colaboratory'... | |
remote: Counting objects: 1876, done. | |
remote: Total 1876 (delta 0), reused 0 (delta 0) | |
Receiving objects: 100% (1876/1876), 1017.86 KiB | 637 KiB/s, done. | |
Resolving deltas: 100% (1171/1171), done. | |
Submodule 'colaboratory/resources/closure-library' (git://github.com/google/closure-library.git) registered for path 'colaboratory/resources/closure-library' | |
Submodule 'colaboratory/resources/extern/mathjax' (git://github.com/mathjax/MathJax.git) registered for path 'colaboratory/resources/extern/mathjax' | |
Submodule 'colaboratory/resources/extern/polymer/paper-shadow' (git://github.com/Polymer/paper-shadow.git) registered for path 'colaboratory/resources/extern/polymer/paper-shadow' |
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/python | |
from stompy.simple import Client | |
from flask import Flask | |
app = Flask(__name__) | |
lock = Lock() | |
@app.route("/") | |
def route(): | |
yield from lock |
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
def test(): | |
assert get_msg("@ol_fridge print this please", "ol_fridge") == "print this please" | |
assert get_msg(".@ol_fridge print this too", "ol_fridge") == "print this too" | |
assert get_msg("This should be printed too @ol_fridge", "ol_fridge") == "This should be printed too" | |
assert get_msg("@ol_fridge @SamMFinnigan this should too", "ol_fridge") == "this should too" | |
assert get_msg("@SamMFinnigan @ol_fridge this should also", "ol_fridge") == "this should also" | |
# don't print these | |
assert get_msg("But @ol_fridge shouldn't", "ol_fridge") == False | |
assert get_msg("@SamMFinnigan don't print @ol_fridge", "ol_fridge") == False |
See the instructables post by Andrea Biffi
1µF 450V 85°C Radial Electrolytic Capacitor
http://www.maplin.co.uk/p/1f-450v-85c-radial-electrolytic-capacitor-vh17t
470µF 25V 105°C Radial Electrolytic Capacitor
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"log": { | |
"version": "1.1", | |
"creator": { | |
"name": "Firefox", | |
"version": "44.0a2" | |
}, | |
"browser": { | |
"name": "Firefox", | |
"version": "44.0a2" |
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
#!/bin/bash | |
# Script which may be added to crontab to request data from LRS using wget, | |
# then convert to a csv file using the bin2csv utility. | |
# | |
# Logic uses the current time via a date call to create a file name and then | |
# asks for last 5 minutes of readings | |
# | |
cd ${0%/*} # cd to working dir of script | |
# Login variables- adjust as required |
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
#!/bin/bash | |
cd "$(dirname "$0")" | |
# Set up 3g usb dongle ZTE WCDMA Technologies MSM MF110 | |
if [ "$EUID" -ne 0 ]; then | |
echo "Please run this script as root"; exit 1; | |
fi | |
# Create script in /opt/ | |
mkdir -p /opt/wifi/ |
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/python | |
""" | |
This script can quickly reformat a BuildAX CSV file to unix timestamp, | |
excluding tx power and PIR counts | |
In: 2015/05/15,14:51:56,427A538D,-44,2,34,20,3225,30.74,231,0,30,30367,1 | |
Out: 1431697916,427A538D,-44,2,34,3225,30.74,23.1,0,30367,1 | |
""" | |
import re | |
import sys |
OlderNewer