Skip to content

Instantly share code, notes, and snippets.

View Google-CTF-2022-Engraver.md

Engraver - Google CTF 2022

Description

You can see pictures of a robot arm laser engraver attached. Can you figure out what it is engraving?

Note: the flag should be entered all in upper case. It contains underscores but does not contain dashes.

@jdabtieu
jdabtieu / Main.java
Last active Mar 28, 2022
Enables colors in the Windows terminal for Java console programs. Read the comment before blindly copy pasting!
View Main.java
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.net.URL;
import java.net.URLClassLoader;
public class Main {
static void enableColor() {
// https://stackoverflow.com/questions/52767585/how-can-you-use-vt100-escape-codes-in-java-on-windows
try {
// Load classes
@jdabtieu
jdabtieu / IO.java
Last active Jul 18, 2021
Java Fast IO (even faster than BufferedReader). Key differences: no thread safety, doesn't ensure that the input stream is still open, does not create unncessary objects
View IO.java
import java.io.InputStreamReader;
import java.io.IOException;
public class IO {
static InputStreamReader br = new InputStreamReader(System.in);
static char[] ibuf = new char[65536];
static int iptr = 0;
static int imax = 0;
static int readInt() throws IOException {
int x = 0;
@jdabtieu
jdabtieu / fastio.cpp
Last active Aug 8, 2021
C++ Fast IO (read & print signed & unsigned ints)
View fastio.cpp
// IMPORTANT: Call Write(); at the end of your main function to flush the output buffer
#include <bits/stdc++.h>
#include <unistd.h>
#pragma GCC optimize ("Ofast")
int oPtr = 0;
#ifdef WIN64
char sc() {return getchar();}
void pc(char c) {putchar(c);}
@jdabtieu
jdabtieu / template.asm
Last active Apr 9, 2022
64-bit Assembly Competitive Programming template with fast IO (minified version)
View template.asm
section .text
global _start
; int readint()
; byte _read_buf()
; void printint(int num) --> edi
; void newline()
; void printspace()
; void _write_buf(char *buf, int count) --> rdi, esi * max of BUF_SIZE characters (default 65536) at once
@jdabtieu
jdabtieu / Main.java
Last active Jul 30, 2022
Java Competitive Programming template with fast IO
View Main.java
import java.io.*;
import java.util.*;
public class Main {
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
static StringTokenizer in;
public static void main(String[] args) throws IOException {
}