Create a symlink to the airport tool:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
airport
SynthDef(\Out, { arg hey; | |
Out.ar([0, 1], SoundIn.ar(0)); | |
}).add; | |
Synth(\Out); | |
NetAddr.langPort; | |
SynthDef(\Bing, { arg what, freq = 400; | |
var env, sin; |
#!/usr/bin/env python | |
# -*- coding: ascii -*- | |
import sys, os | |
import string | |
""" | |
Get the system's measurement of the entropy pool in bits. | |
:copyright: 2014 by Luis Rodil-Fernandez | |
:license: MIT, see LICENSE for more details |
#include "ofApp.h" | |
//-------------------------------------------------------------- | |
void ofApp::setup(){ | |
ofBackground(255,255,255); | |
ofSetVerticalSync(true); | |
frameByframe = false; | |
ofLogLevel(OF_LOG_VERBOSE); |
boolean configured; | |
String AT_OK = "OK\r"; // radio module is ready. | |
boolean xbee_expect_ok() { | |
// check that we get back OK from the radio module | |
String response = String(""); | |
while (response.length() < AT_OK.length()) { | |
if (Serial.available() > 0) { | |
response += (char) Serial.read(); | |
} |
#!/usr/bin/env python | |
# | |
# Copyright (c) 2011 Yubico AB | |
# See the file COPYING for licence statement. | |
# | |
""" | |
Get random data from TRNG on YubiHSM and insert it into host | |
entropy pool. Probably only works on Linux since the ioctl() | |
request value RNDADDENTROPY seems Linux specific. | |
""" |
netsh wlan connect name=SSID-NAME |
#!/usr/bin/env python | |
import argparse | |
from multiprocessing import Process | |
import subprocess | |
import logging | |
logging.getLogger("scapy.runtime").setLevel(logging.ERROR) | |
from scapy.all import * | |
import signal | |
import threading | |
import os, platform |
Create a symlink to the airport tool:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
airport
// nRF24 wiring. | |
// CE -> 9 | |
// SS -> 10 | |
// MOSI -> 11 | |
// MISO -> 12 | |
// SCK -> 13 | |
#include <SPI.h> | |
#include "nRF24L01.h" | |
#include "RF24.h" | |
#include "printf.h" |
# luis rodil-fernandez & hrvoje hirsl | |
import requests | |
import json | |
import urllib | |
from datetime import date | |
API_KEY = "93a7e50ea20390edd76b6f9a5de74570" | |
BASE_URL = "http://marketdata.websol.barchart.com/getHistory.json?" | |
def get_daily(ticker, params=None): |