I hereby claim:
- I am jalexandre0 on github.
- I am jalexandre (https://keybase.io/jalexandre) on keybase.
- I have a public key whose fingerprint is DD28 0A67 03C1 3A2B 86E1 5580 7765 A07F F9AB B9A5
To claim this, I am signing this object:
#!/usr/bin/env python | |
import os | |
import sys | |
root_dir = str(sys.argv[1]) | |
total = 0 | |
def look_dirs(root_dir): | |
dir_list = [] |
#!/usr/bin/perl | |
$first = 1; | |
print "{\n"; | |
print "\t\"data\":[\n\n"; | |
#Need fix here. Proc Partitions to rescue | |
for (`/usr/bin/iostat -d 1 1 | grep -v Device | grep -v Linux| awk '{print \$1}' | sed '/^\$/d' `) | |
{ | |
chomp $_ ; | |
print "\t,\n" if not $first; | |
$first = 0; |
#Setting atual date | |
echo $(date +%d/%m/%Y-%H:%M) | |
#One year and month ago in Unix Timestamp | |
ONE_YEAR_AGO=$(expr `date +%s` - 31536000) | |
ONE_MONTH_AGO=$(expr `date +%s` - 2678400) | |
#Queries for one month ago | |
MONTH_TABLES="history history_uint history_str history_text history_log" | |
for table in $MONTH_TABLES |
#!/usr/bin/env python | |
import urllib2 | |
import subprocess | |
import commands | |
debug = 1 | |
def open_url(url): | |
try: |
#!/bin/bash | |
IP=$(curl -s ifconfig.me) | |
LAST_IP=$(cat /tmp/myip ) | |
if [ "$IP" = "$LAST_IP" ] | |
then exit 0 | |
else echo $IP > /tmp/myip ; echo $IP | mail -s "Valid IP for host XPTO" notifications@company.com | |
fi |
#Open File | |
$input_fh, "<users.txt" or die "Can't open the file" ; close $input_fh ; | |
# Insert lines into array | |
while ( $line = <$input_fh> ) { push @array,$line ; } | |
#Parsing CSV | |
foreach(@array) { | |
chomp $_ ; | |
($user, $password) = split /,/, $_ ; |
// I´m arduino user, not a former programmer. If you have a better approach for brewery, do it!! | |
// If you found bugs, fix it and ping me. :) | |
//Libraries | |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#include <PID_v1.h> | |
//Pin 2 for OneWire | |
//Pin 6 for Heat Element |
#include <PID_v1.h> | |
#include <PID_AutoTune_v0.h> | |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
//Pins | |
#define RelayPin 6 | |
#define ONE_WIRE_BUS 2 | |
OneWire oneWire(ONE_WIRE_BUS); | |
DallasTemperature sensors(&oneWire); |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
# | |
# automated ESP8266 programming station | |
# monitors for inserted serial devices and calls esptool to flash them | |
# written to mass flash entire batches of ESP8266 devices quickly | |
# $ pip install esptool pyudev | |
# | |
# 2016.06.16 darell tan | |
# |