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
build/ | |
test/build/ |
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 sys | |
if __name__ == "__main__": | |
filename = sys.argv[1] if len(sys.argv) == 2 else "main.wasm" | |
print("[*] Reading", filename) | |
with open(filename, "rb") as content_fh: | |
content = content_fh.read() |
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/bash | |
for pdf in *.pdf; do | |
png_name="${pdf%.pdf}.png" | |
echo "converting '$pdf' to '$png_name'" | |
convert -density 300 "$pdf" -background white -alpha remove -alpha off "$png_name" | |
done |
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
from flask import Flask, request | |
from werkzeug import secure_filename | |
app = Flask(__name__) | |
@app.route("/", methods=["GET"]) | |
def index(): | |
return """<!doctype html> | |
<html> | |
<body> |
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
using System; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Threading; | |
namespace ConsoleClicker | |
{ | |
class Program | |
{ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>a</title> | |
</head> | |
<body> | |
<video playsinline autoplay></video> | |
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script> |
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
all: war deploy | |
deploy: | |
cp project/target/*.war deployments/ | |
clean: | |
rm deployments/*.war | |
docker run --rm -v `pwd`/project:/app -v m2:/root/.m2 -w /app maven:alpine mvn clean | |
war: |
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 threading | |
import socket | |
class Relay(threading.Thread): | |
def __init__(self, stop_listening, socket_a, socket_b, direction_indicator): | |
super().__init__() | |
self._stop_listening = stop_listening | |
self._socket_a = socket_a | |
self._socket_b = socket_b |
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 | |
from PIL import Image | |
def diff(image_a, image_b): | |
pixels_a = image_a.load() | |
pixels_b = image_b.load() | |
width_a, height_a = image_a.size | |
width_b, height_b = image_b.size |