Skip to content

Instantly share code, notes, and snippets.

@HanEmile
HanEmile / gist:9091ba5bc510c70066fc23b967e5b1a6
Created October 11, 2018 20:04
Pseudocode: Calculate all the forces in a galaxy
starsArray = []Stars
starsArray.ImportData("data.csv")
starsArray.CalcAllForces()
starsArray.Draw("out.png")
@HanEmile
HanEmile / hashing.py
Created January 10, 2019 22:14
HHU AlDat Blatt 11 Aufgabe 1 a)
#!/usr/bin/env python3
import itertools
import math
goallist = [8, 31, 44, 55, 3, 47, 64]
combination = []
def quersumme(x):
@HanEmile
HanEmile / keybase.md
Created July 25, 2019 19:23
keybase prove

Keybase proof

I hereby claim:

  • I am hanemile on github.
  • I am hanemile (https://keybase.io/hanemile) on keybase.
  • I have a public key ASAm9UcS-pUA4F-o7P1T1NOdOYqyrFA8X3lAwd5Ra9kmNwo

To claim this, I am signing this object:

README

You should read this. Actually, you should read all READMEs.

@HanEmile
HanEmile / writeup.md
Last active November 15, 2021 19:20
Labortage CTF 2021 writeup pwn license-one (ghidra edition)
@HanEmile
HanEmile / main.rs
Last active March 27, 2024 15:50
base64 implemented in rust
/// base64 can be generated by taking chunks of 3 bytes from the input and
/// mapping them onto 4 output chunks as shown below:
///
/// ```raw
/// | M | a | n | ascii
/// | 77 | 97 | 110 | decimal
/// | 0x4d | 0x61 | 0x6e | hex
/// | | | |
/// | a | b | c | chunk name
/// | | | |
@HanEmile
HanEmile / mail.nix
Created January 17, 2023 09:00
minimal simple-nixos-mailserver config
{ config, pkgs, ... }:
let
release = "nixos-21.11";
in {
imports = [
(builtins.fetchTarball {
# Pick a commit from the branch you are interested in
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/${release}/nixos-mailserver-${release}.tar.gz";
# And set its hash
sha256 = "1i56llz037x416bw698v8j6arvv622qc0vsycd20lx3yx8n77n44";
@HanEmile
HanEmile / configuration.nix
Created January 17, 2023 09:03
my mail nix configuration
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@HanEmile
HanEmile / main.go
Last active June 10, 2023 17:05
A super simple fuzzer for the easterhegg 2023 workshop
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
"time"
)
@HanEmile
HanEmile / writeup.md
Created June 18, 2023 16:50
writeups for the bsides indor ctf 2023