Skip to content

Instantly share code, notes, and snippets.

View dropmeaword's full-sized avatar

Luis Rodil-Fernandez dropmeaword

  • Amsterdam, Netherlands
View GitHub Profile
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
@dropmeaword
dropmeaword / starshapedPlayer
Created July 16, 2014 14:57
OF aplication to play three videos in a star shaped arrangement
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofBackground(255,255,255);
ofSetVerticalSync(true);
frameByframe = false;
ofLogLevel(OF_LOG_VERBOSE);
@dropmeaword
dropmeaword / arduino_AT
Last active August 29, 2015 14:04
Configure XBee from Arduino
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.
"""
@dropmeaword
dropmeaword / connect-to-ssid
Created September 23, 2014 16:06
Connect to a given SSID on Windows 7 froma script
netsh wlan connect name=SSID-NAME
@dropmeaword
dropmeaword / phoneprobe
Last active August 29, 2015 14:08
Filter probe requests
#!/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

Learn more about probes

Vid explaining the gist of it

Setting your macbook in monitor mode

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"
@dropmeaword
dropmeaword / barchart.py
Last active September 10, 2015 07:46
Getting market data from barchart
# 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):