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
#Evan Nishi, 3/9/2024 | |
#pls don't abuse this for anything malicious, this is for CS-148 wireshark assignment ONLY | |
import os | |
import time | |
targets = [] | |
runs = 2 #how many runs for each domain |
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
#Evan Nishi, 3/9/2024 | |
import sys | |
import matplotlib.pyplot as plt | |
vals = [] | |
'''#uncomment if using pipes | |
for ln in sys.stdin: | |
ln = ln.split('time=') | |
vals.append(int(float(ln[1][0:-3]))) #for windows change from 0:-2 |
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 python | |
import time | |
import sys | |
from rgbmatrix import RGBMatrix, RGBMatrixOptions | |
from PIL import Image | |
options = RGBMatrixOptions() | |
options.rows = 32 | |
options.cols = 64 |
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
import requests as reqs | |
from bs4 import BeautifulSoup | |
import re | |
import csv | |
page = reqs.get('https://www.adfontesmedia.com/rankings-by-individual-news-source/') | |
soup = BeautifulSoup(page.text, ('html.parser')) | |
links = soup.find_all('a', href = True) |
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
body{ | |
background: linear-gradient(45deg,rgba(137,255,255,0.5),rgba(161,252,143, 0.25), rgba(255,167,137, 0.5)); | |
background-size: 400% 400%; | |
-webkit-animation: gradientBG 10s ease infinite; | |
animation: gradientBG 10s ease infinite; | |
height: 100vw; | |
overflow: hidden; | |
font-family:sans-serif; | |
} |
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
var url = window.location.href; | |
var changed = false; | |
if(url.charAt(23) != "."){ | |
url = "https://www.youtube.com." + url.substring(23); | |
changed = true; | |
} | |
if(changed){ | |
window.location.href = url; | |
} |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/enishi/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
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
# Colors (Tomorrow Night) | |
colors: | |
# Default colors | |
primary: | |
background: '0x1d1f21' | |
foreground: '0xc5c8c6' | |
# Colors the cursor will use if `custom_cursor_colors` is true | |
cursor: | |
text: '0x1d1f21' | |
cursor: '0xffffff' |
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
const config = { attributes: true, childList: true, subtree: true}; | |
let overlay; | |
let adBox; | |
let payWall; | |
let emailBox; | |
let executed = false; | |
let html = document.getElementsByTagName("html")[0]; | |
let body = document.getElementsByTagName("body")[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
import requests | |
import os | |
import slack | |
script = open("script.txt", "r").read().split() | |
slack_token = os.environ["SLACK_API_TOKEN"] | |
client = slack.WebClient(token = slack_token) |
NewerOlder