Skip to content

Instantly share code, notes, and snippets.

View Evan-Nishi's full-sized avatar

Evan Nishi Evan-Nishi

View GitHub Profile
Evan-Nishi /
Last active March 11, 2024 05:21
CMPE-148 Wireshark Project automation
#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
Evan-Nishi /
Last active March 11, 2024 04:45
CMPE-148 Histogram from ping statistics (Linux)
#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
Evan-Nishi /
Last active February 17, 2021 00:24
a basic video player the 64x32 led rgb matrix
#!/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
Evan-Nishi /
Created December 24, 2020 01:01
another webscraper using selenium to bypass captchas
#I'm finna get DMCAd so hard
from selenium import webdriver
from import By
import csv
import time
import random
driver = webdriver.Chrome()
rowcount = 0
rownum = 0
Evan-Nishi /
Created December 8, 2020 20:01
this is awful
import requests as reqs
from bs4 import BeautifulSoup
import re
import csv
page = reqs.get('')
soup = BeautifulSoup(page.text, ('html.parser'))
links = soup.find_all('a', href = True)
Evan-Nishi / style.css
Last active September 14, 2020 09:23
styles for my summer scrapbook
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;
Evan-Nishi / main.js
Last active June 20, 2020 05:49
A small chrome extension that disables youtube ads. Unfortunately you cannot sign into your user account while using this but worth it imo.
var url = window.location.href;
var changed = false;
if(url.charAt(23) != "."){
url = "" + url.substring(23);
changed = true;
window.location.href = url;
Evan-Nishi / .zshrc
Last active June 1, 2020 08:51
Just switched to zsh, here is my zshrc!
# 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
Evan-Nishi / alacritty.yml
Created May 31, 2020 22:17
Thanks to @lukec11 for the color scheme! This is my alacritty config.
# Colors (Tomorrow Night)
# Default colors
background: '0x1d1f21'
foreground: '0xc5c8c6'
# Colors the cursor will use if `custom_cursor_colors` is true
text: '0x1d1f21'
cursor: '0xffffff'
Evan-Nishi / main.js
Last active May 29, 2020 03:18
A small chrome extension that enables unlimited free national geographic articles on a free account.
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];;