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 / 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)
@ewpratten
ewpratten / SMW-ultrapowerup.hex
Created February 16, 2018 01:00
My custom WRAM hex code for SuperMario World. It gives "invincibility" (must be reloaded every level)
00 00 DD 2D C0 00 3D A7 B8 01 1E 01 78 01 86 00
01 00 00 5B 45 00 00 00 00 02 00 00 C0 00 00 00
C0 00 00 00 D0 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00
20 00 00 00 02 F8 FF 17 00 F8 FF 17 00 00 00 FF
FF 00 00 FF FF 00 00 F0 00 00 CA 00 00 14 14 01
00 00 00 00 20 B2 8B 06 82 EC 0C 50 FC 7E 50 FC
7F 00 00 00 00 00 01 04 00 00 00 00 00 06 10 00
A0 00 C8 E5 00 00 00 00 00 00 00 00 0A 02 00 00
00 00 08 00 10 00 60 01 80 01 15 00 00 00 00 00