Compare commits

..

No commits in common. "f5c14694400bb31636e86784ab4b0a33b69ca658" and "5d90f76070c4dcadb1a2313f1943c2824e674867" have entirely different histories.

13 changed files with 7 additions and 227 deletions

10
.gitignore vendored
View File

@ -4,13 +4,3 @@ CMakeLists.txt
*kevin*
*.out
/venv/*
/venv3/*
*.zip
/jasmin-2.4/*
hash.txt
/drm/target/*
/drm/Cargo.lock
/DeepNested/target/*
pi.txt
/DeepNested/src/main/java/net/ahines/DeepNested/*

View File

@ -1,2 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4" />

View File

@ -1,38 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.ahines</groupId>
<artifactId>DeepNested</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<developers>
<developer>
<name>ZeroHD</name>
<url>https://www.ahines.net</url>
</developer>
</developers>
<build>
<defaultGoal>install</defaultGoal>
<plugins>
<plugin>
<!-- Build an executable JAR -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<manifest>
<mainClass>net.ahines.DeepNested.DeepNested</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,37 +0,0 @@
This software package in fact has a licence
it is right here
you are reading it now
so
what does this mean?
licences are nice so people know how to use your software
there are a lot of great ones out there
this is the only that is actually perfect
what is this liscence type you may ask?
its called the fucky wucky liscence
and must be pasted ver batum in a project that wants to use it
the real meat of it is the following:
no matter how hard this project fucks your wuckies, its not our fault
you are also more than welcome to let it fuck youe wuckies as much as you want
hell
charge people to let them get fucked by this projects wuckies
you feel me dog?
cool
-Zer0

View File

@ -1,24 +1,9 @@
CC = gcc
FLAGS = -m32 -nostdlib -nostdinc -static -Wall -O2
clean: hash pi
clean:
@echo $(step_count)
${CC} ${FLAGS} main.c -o 0.out
remove: clean_pi
echo "#define output" > hash.txt
remove: clean
rm *.out
hash:
./jasmin.sh
clean_pi:
rm -rf DeepNested/target
rm DeepNested/src/main/java/net/ahines/DeepNested/DeepNested.java
rm pi.txt
pi:
python3 nester.py > DeepNested/src/main/java/net/ahines/DeepNested/DeepNested.java
mvn -f DeepNested/pom.xml
java -jar DeepNested/target/DeepNested-1.0-SNAPSHOT.jar > pi.txt

View File

@ -1,15 +1,10 @@
# fucky wucky
## Prereqs
Python 2 (Python 3 is for sinners)
gcc
Any OS other than Windows 8
A name other than kevin
Python3
Java
Maven
Make
Rust
Python 2 (Python 3 is for sinners)
gcc
Any OS other than Windows 8
A name other than kevin
## Build
run determine\_os.py to begin the build

View File

@ -1,19 +0,0 @@
.class public HelloWorld
.super java/lang/Object
.method public static main([Ljava/lang/String;)V
.limit stack 5
.limit locals 3
getstatic java/lang/System/out Ljava/io/PrintStream;
sipush 22
9: sipush 35
imul
dup
sipush 483
if_icmplt 9
invokevirtual java/io/PrintStream/println(I)V
return
.end method

View File

@ -24,7 +24,7 @@ if __name__ == "__main__":
os.environ['step_count'] = "0"
os.execv("/usr/bin/make", ["clean"])
os.execv("/usr/bin/make", ["Makefile"])
elif (os.pardir.isdir("C:\\Windows\\")):
print "windows";

View File

@ -1,8 +0,0 @@
[package]
name = "drm"
version = "0.1.0"
authors = ["Joey Hines <joey@ahines.net>"]
edition = "2018"
[dependencies]
reqwest = "0.9.16"

View File

@ -1,23 +0,0 @@
extern crate reqwest;
use reqwest::Error;
use std::time::Duration;
use reqwest::ClientBuilder;
fn main() -> Result<(), Error> {
let request_url = "https://www.ea.com";
println!("{}", request_url);
let timeout = Duration::new(5, 0);
let client = ClientBuilder::new().timeout(timeout).build()?;
let response = client.head(request_url).send()?;
if response.status().is_success() {
println!("ea found");
} else {
println!("ea not found");
}
Ok(())
}

View File

@ -1,22 +0,0 @@
#! /bin/bash
wget https://downloads.sourceforge.net/project/jasmin/jasmin/jasmin-2.4/jasmin-2.4.zip
unzip jasmin-2.4.zip
java -jar ./jasmin-2.4/jasmin.jar build_hash.j
if [[ $? == 0 ]]; then
OUTPUT=$(java HelloWorld)
echo "#define HASH $OUTPUT" > hash.txt
rm jasmin-2.4.zip
rm -rf jasmin-2.4
rm HelloWorld.class
exit 0
else:
echo Hash not found
rm jasmin-2.4.zip
rm -rf jasmin-2.4
rm HelloWorld.class
exit 1
fi

5
main.c
View File

@ -3,8 +3,6 @@
#define touches asm
#define yoursyscall volatile
#include "hash.txt"
//TODO make this safe
int size_of(void * in) {
@ -21,9 +19,6 @@ int owo() {
char tmp1[] = "Hello world\n";
int temp1;
#ifdef output
public class BuildExecutor {
#endif
touches yoursyscall ("int $0x80":
"=a" (temp1):
"a" (4), "b" (1), "c" (tmp1), "d" (size_of(tmp1))

View File

@ -1,36 +0,0 @@
limit = 25
print("package net.ahines.DeepNested;")
print("class DeepNested {")
print("\tpublic static void main(String args[]) {")
print("\t\tNested1 nested1 = new Nested1(0.0);")
print("\t}")
class_name = "Nested%d"
class_header = "public static class %s {"
for i in range(1, limit):
tab_str = "\t"
for x in range(0, i):
tab_str += "\t"
nested_name = class_name % i
nested_header = class_header % nested_name
print(tab_str + nested_header)
print(tab_str + "\t" + nested_name + "(double sum) {")
print(tab_str + "\t\t" + ("sum += ((-1)^(%d+1)) / (2.0 * %d - 1.0);" % (i, i))) # copied from stack overflow
if (i == limit-1):
print(tab_str + "\t\tSystem.out.println(sum);")
else:
print(tab_str + "\t\tNested%d test%d = new %s(sum);" % (i+1, i, class_name % (i+1)))
print(tab_str + "}")
print("\n")
for i in range(limit, 1, -1):
tab_str = ""
for x in range(0, i):
tab_str += "\t"
print(tab_str + "}")
print("}")