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
Evan-Nishi / CMPE-148-Automation.py
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
Evan-Nishi / histogram_from_ping.py
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
Evan-Nishi / main.py
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
Evan-Nishi / main.py
Created December 8, 2020 20:01
this is awful
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)
@Evan-Nishi
Evan-Nishi / style.css
Last active September 14, 2020 09:23
styles for my summer scrapbook
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;
}
@Evan-Nishi
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 = "https://www.youtube.com." + url.substring(23);
changed = true;
}
if(changed){
window.location.href = url;
}
@Evan-Nishi
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 https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@Evan-Nishi
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)
colors:
# Default colors
primary:
background: '0x1d1f21'
foreground: '0xc5c8c6'
# Colors the cursor will use if `custom_cursor_colors` is true
cursor:
text: '0x1d1f21'
cursor: '0xffffff'
@Evan-Nishi
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];;
@Evan-Nishi
Evan-Nishi / spam.py
Last active June 17, 2020 07:41
I wrote a quick script to spam someone the bee movie script word by word in slack
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)