Skip to content

Instantly share code, notes, and snippets.

View AgustinParmisano's full-sized avatar
🏠
Working from home

Agustin Parmisano AgustinParmisano

🏠
Working from home
View GitHub Profile
#!/usr/bin/python
import pattern.es
dict = {}
lista = []
parrafo = "Yo buscaba en el buscador buscando busco"
parrafo_split = parrafo.split(" ")
@AgustinParmisano
AgustinParmisano / Hj0S-0.py
Created May 6, 2017 00:19
null created by agustinparmisano - https://repl.it/Hj0S/0
print "hola mundo"
//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
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;
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"])
@AgustinParmisano
AgustinParmisano / combi_xyz.py
Created October 17, 2017 02:14
combinatoria de dos numeros x e y checkeando resultado z
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)
@AgustinParmisano
AgustinParmisano / task_date_scheduler
Last active December 9, 2017 08:00
Easy crontab Python CLI API
import argparse
import os ,sys
import logging
from crontab import CronTab
"""
Task Scheduler
==========
This module manages periodic tasks using cron.
"""
class CronManager:
@AgustinParmisano
AgustinParmisano / auto_mqtt_pub.sh
Last active January 31, 2018 20:38
Bash auto mqtt pub script with cofigurable broker, msg and topic
#!/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
@AgustinParmisano
AgustinParmisano / zipbruteforcer.py
Created February 22, 2018 00:27
zip password brute forcer with python
import zipfile
import optparse
from threading import Thread
def extractFile(zFile, password):
try:
zFile.extractall(pwd=password)
print '[+] Found password ' + password + '\n'
except:
pass
@AgustinParmisano
AgustinParmisano / sources.list.old
Created February 21, 2018 20:15
sources.list.old kali
#
# 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