Skip to content

Instantly share code, notes, and snippets.

View dropmeaword's full-sized avatar

Luis Rodil-Fernandez dropmeaword

  • Amsterdam, Netherlands
View GitHub Profile
@dropmeaword
dropmeaword / wifiscanner.py
Created June 20, 2017 22:38 — forked from D4rKP01s0n/wifiscanner.py
A simple python script which records and logs wifi probe requests.
#########################################################################
# Wifiscanner.py - A simple python script which records and logs wifi probe requests.
# Author - D4rKP01s0n
# Requirements - Scapy and Datetime
# Inspiration - Tim Tomes (LaNMaSteR53)'s WUDS https://bitbucket.org/LaNMaSteR53/wuds/
# Reminder - Change mon0 (around line 65) to your monitor-mode enabled wifi interface
#########################################################################
from datetime import datetime
@dropmeaword
dropmeaword / bram_twitter_bot.py
Created May 10, 2017 17:08
This twitter bot gets images posted to it and converts them to sound
#!/usr/bin/env python
#import tweepy
from twython import Twython
import json
#from our keys module (keys.py), import the keys dictionary
from keys import keys
from pprint import pprint
import time
@dropmeaword
dropmeaword / p5launch.py
Created May 7, 2017 16:29
launch a processing sketch from a python script using the `processing-java` tool included with Processing since version 2
#!/usr/bin/env python
import os
import subprocess
P5_ROOT = "~/Documents/Processing3"
def launch_p5( sketchname ):
"""
Launch the specified Processing sketch
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <OSCMessage.h>
#include <Metro.h>
#include <AccelStepper.h>
#include "wifisettings.h"
const int STEPS_PER_WINDING = 200;
const int MAX_SPEED = 2000;
const int dataPin = 13;
const int latchPin = 14;
const int clockPin = 12;
int numOfRegisters = 4;
byte registerState[4];
int pause = 100;
void setup(void)
// NOTE: no coil_write mapping yet
const int dataPin = 13;
const int latchPin = 14;
const int clockPin = 12;
int numOfRegisters = 4;
byte registerState[4];
@dropmeaword
dropmeaword / corsproxy.php
Last active July 16, 2024 01:28
simple CORS proxy in php
<?php
error_reporting( error_reporting() & ~E_NOTICE ); // evil
// config
$enable_jsonp = false;
$enable_native = false;
$valid_url_regex = '/.*/';
// ############################################################################
@dropmeaword
dropmeaword / daylight_w_arduino_ldr.pde
Last active November 16, 2016 13:43
Processing sketch to read light levels from an Arduino LDR sensor and draw a simple landscape that reflects those light levels.
import processing.serial.*;
Serial ser;
float lightLevel; // we use this variable to store our light level, 0 = dark, 1 = full light
GradientRectangle sky;
// daytime gradient is deepblue (top) -> white (bottom)
color deepblue = color(28, 63, 255);
color white = color(255, 255, 255);
@dropmeaword
dropmeaword / heartbeat-clip-sensor.ino
Created September 21, 2016 10:13
Code to read heartbeats from the SeedStudio heartrate clip sensor.
/* Program to measure and display heart beats on two led's (and on serial monitor for debug)
* Green led flashes at approx freq of your heart rate when you are at or below your target,
* if you go above this (eg 65 bpm) the red.
* led flashes at the approx freq of your heart rate
* You can check by feeling your pulse
* in your neck and looking at LED - both should be in sync
* C. Turner 16/01/2013.
* Seeed product wiki http://www.seeedstudio.com/wiki/Grove_-_Heart_rate_ear_clip_kit
* Avaialible in UK here: https://digitalmeans.co.uk/shop/sensors-category/sensors-medical-category/grove-ear_clip_heart_rate_sensor
@dropmeaword
dropmeaword / ky-039-sensor.ino
Last active October 2, 2017 17:37
Using the hearbeat sensor KY 039
// Pulse Monitor Test Script
// got it from https://tkkrlab.nl/wiki/Arduino_KY-039_Detect_the_heartbeat_module
//
int sensorPin = 0;
double alpha = 0.75;
int period = 100;
double change = 0.0;
double minval = 0.0;
void setup ()
{