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/python3 | |
# rootVIII | |
# Make turtle recursively | |
# draw a sine wave | |
from turtle import * | |
import time | |
import math | |
def draw_sine(x): |
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/python3 | |
# rootVIII - my DFS | |
class Dfs: | |
def __init__(self, graph, top_node): | |
self.graph = graph | |
self.route_travelled = [] | |
self.__trace_route(top_node) |
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/python3 | |
# rootVIII | |
# merge sort | |
def merge(left, right): | |
combined, left_index, right_index = [], 0, 0 | |
while left_index < len(left) and right_index < len(right): | |
if left[left_index] < right[right_index]: | |
combined.append(left[left_index]) |
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
package main | |
// rootVIII | |
// Netgear router scraper | |
import ( | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"os" |
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/python3 | |
import socket | |
from threading import Thread | |
from argparse import ArgumentParser | |
class PortScanner: | |
def __init__(self, target_ip, show): | |
self.show_ranges = show | |
self.target_ip = target_ip |
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/python3 | |
from os import popen, remove, getcwd | |
from selenium import webdriver | |
from subprocess import call | |
from sys import exit | |
from time import sleep | |
from argparse import ArgumentParser | |
from threading import Thread | |
# rootVIII | |
# sec_browse.py - Auto-configures Firefox network settings |
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
#define _GNU_SOURCE | |
#include <arpa/inet.h> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
#include <ifaddrs.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <linux/if_link.h> | |
#include <string.h> |
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
package main | |
/* | |
#include <limits.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
*/ | |
import "C" | |
import ( | |
"fmt" |
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
package main | |
import ( | |
"fmt" | |
"strconv" | |
) | |
type example struct { | |
container []byte | |
} |
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
{ | |
"[javascript]": { | |
"editor.formatOnSave": true, | |
"editor.defaultFormatter": "biomejs.biome", | |
}, | |
"[shellscript]": { | |
"editor.formatOnSave": true, | |
"editor.defaultFormatter": "timonwong.shellcheck", | |
}, | |
"[python]": { |
OlderNewer