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/env bash | |
# 0 23 * * * qbitorrentctl start | |
# 0 8 * * * qbitorrentctl stop | |
url="http://127.0.0.1:8080" | |
passwd="password" | |
user="user" | |
if [ "$#" -ne 1 ]; 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
#! /usr/bin/env python3 | |
import dns.resolver | |
from tabulate import tabulate | |
from multiprocessing.dummy import Pool | |
from random import shuffle | |
import ipaddress, argparse | |
CEND = '\33[0m' |
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
#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 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 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 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 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 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 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 |
NewerOlder