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
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 |
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 zipfile | |
import optparse | |
from threading import Thread | |
def extractFile(zFile, password): | |
try: | |
zFile.extractall(pwd=password) | |
print '[+] Found password ' + password + '\n' | |
except: | |
pass |
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
# | |
# deb cdrom:[Debian GNU/Linux 2017.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170416-02:08]/ kali-rolling contrib main non-free | |
#deb cdrom:[Debian GNU/Linux 2017.1 _Kali-rolling_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170416-02:08]/ kali-rolling contrib main non-free | |
deb http://http.kali.org/kali kali-rolling main non-free contrib | |
# deb-src http://http.kali.org/kali kali-rolling main non-free contrib | |