Skip to content

Instantly share code, notes, and snippets.

View maqiv's full-sized avatar

s maqiv

  • Switzerland
View GitHub Profile
@maqiv
maqiv / flag_muh.go
Last active December 22, 2022 08:09
Parsing flags into variables/structs in golang
/*
Call this example as follows:
$ go run flag_muh.go -muh=blahmuh -blh=muhblah
{blahmuh muhblah}
*/
package main
import (
#!/bin/bash
#
# sebastian - 2016-05-29 11:57
# script mount_raid.sh
#
# Little helper-script to mount raid array filesystem
# delayed because of a little systemd/dmraid race
# condition.
#
#
this is a little gisty test
@maqiv
maqiv / .gitignore
Last active September 27, 2017 11:29
my common gitignore file
######## Git ########
#.gitattributes
######## bash-git-prompt ########
.bash-git-rc
@maqiv
maqiv / XorAndCompressCracker.java
Created March 13, 2016 15:06
it-sicherheit lab02 determineKey()
public int[] determineKey(int keylength, int depth) throws IOException {
totalNumberOfKeysToTest = getNumberOfCandidateKeys(keylength, depth);
numberOfKeysTested = 0;
ByteFrequencyTable[] frequencyTable = getFrequencyTableForKeyLength(keylength);
int[] key = null;
//TODO
KeyGenerator gen = new KeyGenerator(frequencyTable, depth, 0);
while ((key = gen.getNextCandidateKey()) != null) {