Skip to content

Instantly share code, notes, and snippets.

View ewpratten's full-sized avatar

Evan Pratten ewpratten

View GitHub Profile
@ewpratten
ewpratten / reverse_beacon_network.css
Created January 23, 2021 19:35
A nice CSS theme for reversebeacon.net
:root {
--fill-color: white;
}
body {
background-color: var(--fill-color);
}
#nav {
background-color: #030;
@ewpratten
ewpratten / ci.sh
Created August 23, 2020 19:59
GitHub CI build scripts for school
#! /bin/bash
"${GITHUB_WORKSPACE}/bin/bazel" clean
"${GITHUB_WORKSPACE}/bin/bazel" build //:all
mkdir -p docs
cp -r -v bazel-bin/* ./docs/
@ewpratten
ewpratten / tasks.json
Created August 23, 2020 19:16
Tasks.JSON for Bazel //:all
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "bazel build //:all",
"problemMatcher": [
@ewpratten
ewpratten / tut.md
Created August 5, 2020 13:05 — forked from rain1024/tut.md
Install pdflatex ubuntu

PdfLatex is a tool that converts Latex sources into PDF. This is specifically very important for researchers, as they use it to publish their findings. It could be installed very easily using Linux terminal, though this seems an annoying task on Windows. Installation commands are given below.

  • Install the TexLive base
sudo apt-get install texlive-latex-base
  • Also install the recommended and extra fonts to avoid running into the error [1], when trying to use pdflatex on latex files with more fonts.
{
"uuid": "529705d8-b703-11ea-88f5-d0c637601c97",
"currency": 874722,
"first_joined": "1980-03-02T04:42:25",
"last_login": "1973-04-13T12:53:28",
"ips": [
"143.200.127.198",
"211.84.53.206",
"84.205.66.246",
"193.172.2.15"
@ewpratten
ewpratten / mcuserinfo.py
Created June 23, 2020 02:28
A little script for pulling people's mojang account history from their current username
import sys
import requests
from base64 import b64decode
import json
import time
if len(sys.argv ) != 2:
print("Usage: mcuserinfo.py <username>")
exit(0)
/**
Arduino CPU Project
by: Evan Pratten
*/
/***********************
Definitions for I/O
***********************/
// ROM Write Input
r=range(15)
for i in range(len(r)*2): print(("."*sum(r[:(i if i <= len(r) else len(r)-i)])))
.
...
......
..........
@ewpratten
ewpratten / microhttp.py
Created February 24, 2020 17:42
A small http server for use on small platforms
# MicroHTTP Source
# (c) Evan Pratten 2020
@ewpratten
ewpratten / bfcc.sh
Created January 21, 2020 03:58
My bash BrainFuck compiler
#! /bin/bash
# Evan Pratten's Bash BrainFuck compiler
# Duplicate input file
cat $1 >inp.bf
# Strip comments
sed -i -e 's/[A-Za-z]*//g' inp.bf
# Incr and decr break the simple sed. Use temps instead