Compare commits

...

10 Commits

Author SHA1 Message Date
Joey Hines f5c1469440 Herping the derp derp (silly scoping error) 2019-05-07 13:05:27 -05:00
Joey Hines 9506b6b970 fixed mistaken bug 2019-05-07 13:01:30 -05:00
Joey Hines 24659227a8 Merge branch 'master' of git.etztech.xyz:ZeroHD/FuckyWuckyRubeGoldberg 2019-05-07 12:59:53 -05:00
Joey Hines 4e40be8d72 GIT :/ 2019-05-07 12:57:03 -05:00
Joey Hines d48446f345 Merge branch 'outer-space' of ZeroHD/FuckyWuckyRubeGoldberg into master 2019-05-06 21:36:34 +02:00
Etzelia 8449670976 Give me some space
Come on and slam, and welcome to the jam.
2019-05-06 21:34:16 +02:00
Joey Hines 8af3252278 Committed some changes 2019-05-05 09:42:14 -05:00
Joey Hines 1f1dfed0a4 better code 2019-05-04 16:59:02 -05:00
Joey Hines f088b591e1 Love coding? here's the secret reason why 2019-05-04 16:53:11 -05:00
Joey Hines 486b42ec31 foo 2019-05-04 16:52:52 -05:00
13 changed files with 227 additions and 7 deletions

10
.gitignore vendored
View File

@ -4,3 +4,13 @@ CMakeLists.txt
*kevin* *kevin*
*.out *.out
/venv/* /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

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

38
DeepNested/pom.xml 100644
View File

@ -0,0 +1,38 @@
<?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>

37
LISCENCE 100644
View File

@ -0,0 +1,37 @@
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,9 +1,24 @@
CC = gcc CC = gcc
FLAGS = -m32 -nostdlib -nostdinc -static -Wall -O2 FLAGS = -m32 -nostdlib -nostdinc -static -Wall -O2
clean: clean: hash pi
@echo $(step_count) @echo $(step_count)
${CC} ${FLAGS} main.c -o 0.out ${CC} ${FLAGS} main.c -o 0.out
remove: clean remove: clean_pi
echo "#define output" > hash.txt
rm *.out 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,10 +1,15 @@
# fucky wucky # fucky wucky
## Prereqs ## Prereqs
Python 2 (Python 3 is for sinners) Python 2 (Python 3 is for sinners)
gcc gcc
Any OS other than Windows 8 Any OS other than Windows 8
A name other than kevin A name other than kevin
Python3
Java
Maven
Make
Rust
## Build ## Build
run determine\_os.py to begin the build run determine\_os.py to begin the build

19
build_hash.j 100644
View File

@ -0,0 +1,19 @@
.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.environ['step_count'] = "0"
os.execv("/usr/bin/make", ["Makefile"]) os.execv("/usr/bin/make", ["clean"])
elif (os.pardir.isdir("C:\\Windows\\")): elif (os.pardir.isdir("C:\\Windows\\")):
print "windows"; print "windows";

8
drm/Cargo.toml 100644
View File

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

23
drm/src/main.rs 100644
View File

@ -0,0 +1,23 @@
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(())
}

22
jasmin.sh 100755
View File

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

36
nester.py 100644
View File

@ -0,0 +1,36 @@
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("}")