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
String readString; | |
String secret = "led"; | |
String on = "on"; | |
String off = "off"; | |
int led = 13; | |
void setup() { | |
Serial.begin(9600); | |
Serial.println("Insert the password to blink the led!!"); |
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 | |
import pattern.es | |
dict = {} | |
lista = [] | |
parrafo = "Yo buscaba en el buscador buscando busco" | |
parrafo_split = parrafo.split(" ") |
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
print "hola mundo" |
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
//Measuring AC mains energy use the non-invasive current transformer method | |
//Arduino can receive serial value to open and close relay and set max AC to | |
// permit flows through relay and sensor (1-30A) | |
//Using acs712 (30A), its a invasive sensor (non-inductive) | |
//Based on OpenEnergyMonitor.org, Trystan Lea project | |
//Sketch calculates - Irms and Apparent power based on static voltage. SetV | |
// needs to be set below. | |
//Green IT project licenced under GNU General Public Licence | |
//Author: Mateo Durante |
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
int pinSensor = A5; | |
int valorSensor = 0; | |
int valorLegible = -1; | |
int green = 2; | |
int blue = 3; | |
int red = 4; | |
int actuador = 5 ; | |
int infrared = 6; | |
int prox; |
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
import datetime | |
import random | |
h = datetime.datetime.now() | |
#calculate datitmes in seconds | |
def calculate_times(**kwargs): | |
difference = kwargs["end_datetime"] - kwargs["start_datetime"] | |
seconds = int(difference.total_seconds()) | |
step = int(seconds / kwargs["limit"]) |
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
mfruba's solution worked for me and my TP-Link TL-WN722N v2 (Realtek) in Kali. Here's how I used it: | |
I've downloaded all the code in a zip file from mfruba's repository: https://github.com/mfruba/kernel/archive/master.zip | |
> unzip ~\master.zip | |
> cd ~/master/drivers/TL-WN722N_v2.0-Ralink/rtl8188EUS_linux_v4.3.0.8_13968.20150417 | |
> make |
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
import random | |
cant = random.randint(3,999) | |
ult = random.randint(2,999) | |
nums = [] | |
for i in range(0,cant): | |
num = random.randint(1,1000) | |
nums.append(num) | |
print "Generando numeros ... " + str(num) |
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
import argparse | |
import os ,sys | |
import logging | |
from crontab import CronTab | |
""" | |
Task Scheduler | |
========== | |
This module manages periodic tasks using cron. | |
""" | |
class CronManager: |
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 | |
read -p "[!] Enter Broker IP or URL (f.e. broker.hivemq.com): " broker | |
echo "[!] Testing broker $broker connection with ping . . . " | |
echo "[!] Please wait . . ." | |
brokeron=$(ping -c 4 $broker) | |
if [ $? -gt 0 ]; then |