Skip to content

Instantly share code, notes, and snippets.

View abgeana's full-sized avatar
👾

Bogdan-Alexandru Geană abgeana

👾
  • Netherlands
View GitHub Profile
@abgeana
abgeana / hosts
Last active August 1, 2023 15:22
blocked hosts for productivity
0.0.0.0 youtube.com www.youtube.com tv.youtube.com music.youtube.com studio.youtube.com m.youtube.com
0.0.0.0 youtu.be www.youtu.be tv.youtu.be music.youtu.be studio.youtu.be m.youtu.be
0.0.0.0 youtubekids.com www.youtubekids.com tv.youtubekids.com music.youtubekids.com studio.youtubekids.com m.youtubekids.com
0.0.0.0 twitch.com www.twitch.com m.twitch.com
0.0.0.0 twitch.tv www.twitch.tv m.twitch.tv
0.0.0.0 ycombinator.com news.ycombinator.com
0.0.0.0 reddit.com
0.0.0.0 netflix.com
0.0.0.0 spotify.com play.spotify.com
0.0.0.0 marktplaats.nl
@abgeana
abgeana / Dockerfile
Last active August 15, 2022 22:56
LibAFL Windows Dockerfile
# escape=`
FROM mcr.microsoft.com/windows:20H2
# Restore the default Windows shell for correct batch processing
SHELL ["cmd", "/S", "/C"]
RUN curl -SL --output vs_buildtools.exe https://aka.ms/vs/17/release/vs_buildtools.exe
# Install the relevant components via their IDs
@abgeana
abgeana / check_faults.c
Last active April 15, 2022 17:21
AES DFA
bool check_faults(uint8_t *ct, uint8_t *expected_ct) {
bool good_fault;
good_fault = true;
for (int i = 1; i <= 16; i++) {
if (i == 1 || i == 8 || i == 11 || i == 14) {
if (ct[i] == expected_ct[i]) {
good_fault = false;
}
} else {
@abgeana
abgeana / .clang-format
Created April 15, 2022 17:19
clang format
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: LLVM
IndentWidth: 4
ColumnLimit: 120
BinPackArguments: false
BinPackParameters: false
AlignAfterOpenBracket: AlwaysBreak
AllowShortFunctionsOnASingleLine: false