This file contains hidden or 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
#include <wiringPi.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdbool.h> | |
#define TRAFFIC_TRESH 64 | |
#define BLINK_DELAY 83 | |
#define TX_LED 7 // GREEN | |
#define RX_LED 0 // RED |
This file contains hidden or 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/sh /etc/rc.common | |
USE_PROCD=1 | |
START=30 | |
TOKEN="ey000...0000" | |
COLO="nyc" | |
stop_service() { | |
echo "Stopping cloudflared tunnel" |
This file contains hidden or 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/env python3 | |
import sys | |
import socket | |
try: | |
target = socket.gethostbyname(sys.argv[1]) | |
port = int(sys.argv[2]) | |
except Exception as e: | |
print("Error: {}".format(e)) |
This file contains hidden or 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
from http.server import HTTPServer, BaseHTTPRequestHandler | |
class handler(BaseHTTPRequestHandler): | |
def _answer(self): | |
content = f"USA\n" | |
self.send_response(200) | |
self.send_header("Content-type", "text/plain") | |
self.end_headers() | |
self.wfile.write(content.encode("utf-8")) | |
def do_GET(self): |
This file contains hidden or 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/env bash | |
DEFAULT_RESOLVER="1.0.0.1" | |
do_dig () { | |
ENTRYTYPES="A AAAA CAA CNAME MX NS PTR SOA SRV TXT DS DNSKEY RRSIG PTR SRV TLSA HINFO NSEC NSEC3 NSEC3PARAM SSHFP type65" | |
for type in $ENTRYTYPES; do | |
out=$(dig +noall +dnssec +answer $1 $2 $type | awk '{gsub("IN\t", "", $0); print}') | |
colorize "$out" | |
done |
This file contains hidden or 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/env bash | |
TOOL_NAME="curly/0.1.2" | |
LIBCURL_VER=$(curl -V | head -n1 | awk '{print $4}') | |
echo -e "curl --compressed --silent --location -vvv --insecure -o /dev/null $@ 2>&1\n" | |
curl \ | |
--compressed --silent --location -vvv --insecure \ | |
--user-agent "$TOOL_NAME $LIBCURL_VER $(uname)/$(uname -r)" \ | |
-o /dev/null "$@" 2>&1 | awk \ | |
-v black="$(tput setaf 0)" \ |
This file contains hidden or 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
#include "ESP8266WiFi.h" | |
extern "C" { | |
#include "user_interface.h" | |
} | |
#define BOARD_LED 16 | |
#define LED_BUILTIN 2 | |
#define MAX_SCANS 2 | |
#define BLINK_TIME_MS 40 |
This file contains hidden or 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 json | |
import jsbeautifier | |
import argparse | |
def get_args(): | |
parser = argparse.ArgumentParser(description="Extract resources from HAR file") | |
parser.add_argument('--har', required=True, help='Har File') | |
parser.add_argument('--filter', required=True, help='What the file needs to include to be downloaded', default=".js") | |
args = parser.parse_args() | |
return args |
This file contains hidden or 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
# https://rafalgolarz.com/blog/2018/01/10/bonding_wifi_and_ethernet_interfaces/ | |
allow-hotplug eth0 | |
auto eth0 | |
iface eth0 inet manual | |
bond-master bond0 | |
bond-primary eth0 wlan0 | |
allow-hotplug wlan0 | |
auto wlan0 |