Skip to content

Instantly share code, notes, and snippets.

View ewpratten's full-sized avatar

Evan Pratten ewpratten

View GitHub Profile
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the Uno and
Leonardo, it is attached to digital pin 13. If you're unsure what
pin the on-board LED is connected to on your Arduino model, check
the documentation at http://www.arduino.cc
This example code is in the public domain.
@ewpratten
ewpratten / Arduino Song
Last active November 30, 2017 18:52 — forked from eznj/star_wars.ino
Arduino Star Wars Song for Piezo
/* Arduino Star Wars Song for Piezo */
/* Ewpratten Fork */
const int c = 261;
const int d = 294;
const int e = 329;
const int f = 349;
const int g = 391;
const int gS = 415;
const int a = 440;

Keybase proof

I hereby claim:

  • I am ewpratten on github.
  • I am ewpratten (https://keybase.io/ewpratten) on keybase.
  • I have a public key ASAmekmctehjrHma6kKX8ckZ07-I9xCg9ClmiPcFobXApQo

To claim this, I am signing this object:

@ewpratten
ewpratten / compression.lua
Created December 21, 2017 18:03
A lossy compression algo that I made for fun
-- input data --
ino={13,16,35,46,35,22,37,51,45,48,49,33,34,67,47,45,47,46,36,38,47,47,79,99}
-- Declare variables --
state=2 comp={} og={}
-- Store input data for use by draw("input") --
for i=1, 24 do
og[i]=ino[i]
end
@ewpratten
ewpratten / pagedit.js
Created January 12, 2018 18:51
a simple js script to edit text on a webpage.
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0
@ewpratten
ewpratten / pageedit.md
Last active January 12, 2018 19:01
A simple way to mess with text on a website (tutorial)

PageEdit

A simple way to mess with text on a website

To use this script, just copy the following text into your url / search bar

javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

(this might not work on all browsers)

You can also make a bookmark by saving the script as the link of a bookmark

@ewpratten
ewpratten / hosts-yt-ads
Last active October 25, 2024 16:37
youtube ads hosts file
This project has been moved to a GitHub repository to allow Pull Requests.
See: https://github.com/Ewpratten/youtube_ad_blocklist
@ewpratten
ewpratten / cdnsh.txt
Created January 31, 2018 21:34
Custom DNS Hosts
#
# License: MIT License (MIT)
# File encoding: UTF-8 Dos/Windows 1252
# Original maintainer: CHEF-KOCH
# Notice:
# Version: 0.0.17
# Homepage: http://chef-koch.github.io/NSABlocklist/HOSTS.txt
#
127.0.0.1 localhost #[IPv4 only]
127.0.0.1 localhost.localdomain
@ewpratten
ewpratten / CMD.py
Created February 7, 2018 14:07
A python script that exploits a loophole to allow full shell access on school computers
import os
x=1
os.system("cls")
os.system("title CMD")
print("Shell access hack")
print("By: ewpratten")
while (x < 10) :
st = input(">>")
os.system(st)