Keybase proof
I hereby claim:
- I am d4rckh on github.
- I am d4rckh (https://keybase.io/d4rckh) on keybase.
- I have a public key ASBcHMyqpeN_Oq2cjCXk4dt5RUbLEZsp6c23gaBP-QOkkgo
To claim this, I am signing this object:
#define _UNICODE | |
#include <tchar.h> | |
#include <wchar.h> | |
#include <Windows.h> | |
#include <WinInet.h> | |
#include <stdio.h> | |
int http_getrequest(char * host, int port, char * path, DWORD dwFileSize, DWORD * dwBytesRead, char * buffer) { |
I hereby claim:
To claim this, I am signing this object:
const request = require('request') | |
const fs = require('fs') | |
const sr = 'cats' | |
var i = 0 | |
var download = function(uri, filename, callback){ | |
request.head(uri, function(err, res, body){ | |
request(uri).pipe(fs.createWriteStream(filename)).on('close', callback); |
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266WebServer.h> | |
// Replace with your network credentials | |
const char* ssid = "not a free wifi"; | |
const char* password = "pass"; | |
ESP8266WebServer server(80); //instantiate server at port 80 (http port) | |
interface="enp3s0" | |
echo "Interface: $interface" | |
mac=$(eval "ifconfig enp3s0 | grep 'ether' | awk '{ print \$2 }'") | |
RX=$(eval "ifconfig $interface | grep 'RX packets' | awk '{ print \$6 }' | cut -d \"(\" -f 2") | |
TX=$(eval "ifconfig $interface | grep 'TX packets' | awk '{ print \$6 }' | cut -d \"(\" -f 2") | |
echo "RX: $RX MB" | |
echo "TX: $TX MB" | |
echo "MAC Address: $mac" |