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
const std = @import("std"); | |
const assert = std.debug.assert; | |
const cache_line = std.atomic.cache_line; | |
const AtomicUsize = std.atomic.Atomic(usize); | |
const Ordering = std.atomic.Ordering; | |
const Allocator = std.mem.Allocator; | |
// A modified version of Dmitry Vyukov's bounded MPMC queue, | |
// adapted for single-consumer usage: |
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
#include <algorithm> | |
#include <fstream> | |
#include <iostream> | |
#include <ranges> | |
#include <string> | |
void part1() { | |
std::ifstream input{"input.txt"}; | |
auto view = std::ranges::istream_view<int>(input); |
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
# Finds unique signature patterns for selected functions | |
# @author Valentin B. | |
# @category Binary | |
from itertools import chain | |
from ghidra.program.model.lang import OperandType | |
def getSelectedFunction(): |
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
/* decompetition.io tiny-cpp reimplementation */ | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
/* Function prototypes */ | |
bool check(const std::string& hand, const std::string& word); | |
int score(const std::string& word); |
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
/** | |
* Ein Listenelement, welches den Abschluss und damit den | |
* letzten Knoten einer verketteten Liste darstellt. | |
* | |
* @author Valentin B. | |
* @version 01/10/2020 | |
*/ | |
public class Abschluss<T> implements Listenelement<T> { | |
public int restlaengeGeben() { | |
return 0; |
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.Text; | |
namespace AlefCrypto | |
{ | |
/// <summary> | |
/// Table that holds subkey arrays for the Blowfish implementation. | |
/// </summary> | |
static class BlowfishTable | |
{ |
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 | |
# -*- coding: utf-8 -*- | |
""" | |
This is a proof of concept to dumping the contents of mails | |
sent from Gmail's new Confidential Mode. | |
The entire "security" can be defeated by obtaining the cookies | |
for such a confidential mail. Use the network tab of your browser. | |
Intercept network calls while opening such a mail in confidential |
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 | |
# | |
# A bash script for installing Python 3.7.2 on your Debian, Ubuntu or Mint server. | |
# (c) 2019 Valentin B. | |
# | |
# Open your terminal and enter the following command: | |
# wget https://gist.github.com/vbe0201/b85ec47bc198d1c8471acbf016922005/raw/get-python.sh && chmod +x get-python.sh && ./get-python.sh | |
apt update -y | |
apt upgrade |
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 | |
# A bash script for installing Python 3.7.3 on your Raspberry Pi. | |
# (c) 2018 Valentin B. | |
# | |
# Open your terminal and type the following command: | |
# sudo wget https://gist.githubusercontent.com/itsVale/5619215a46d363ece9fc7cdfdfa301c8/raw/raspberry_python.sh && chmod +x raspberry_python.sh && ./raspberry_python.sh | |
sudo apt-get update -y | |
sudo apt-get upgrade |
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 python | |
# -*- coding: utf-8 -*- | |
import sys | |
import time | |
class Ackermann: | |
def __init__(self): | |
self.count = 0 |
NewerOlder