Skip to content

Instantly share code, notes, and snippets.

View loskutov's full-sized avatar

Ignat Loskutov loskutov

  • Belgrade, Serbia
  • 08:17 (UTC +02:00)
View GitHub Profile
@loskutov
loskutov / SimpleVectorTest.cpp
Last active August 15, 2018 15:40
A simple C++ vector implementation for trivially copyable types, significantly outperforming std::vector
#include <iostream>
#include <vector>
#include <chrono>
#include <algorithm>
#include <type_traits>
#include <stdlib.h>
#include <cmath>
#include <malloc.h>

Keybase proof

I hereby claim:

  • I am loskutov on github.
  • I am loskutov (https://keybase.io/loskutov) on keybase.
  • I have a public key whose fingerprint is 82A3 ECD9 A08A 57BE 13EA BF87 44C7 DEA2 C781 A2DE

To claim this, I am signing this object:

@loskutov
loskutov / SymlinkSteam.sh
Created June 24, 2017 15:04
Making Steam work on macOS
#!/bin/sh
cd ~/Library/Application\ Support/Steam/Steam.AppBundle/Steam/Contents/MacOS
for i in public graphics friends servers steam/cached
do
cd $i
find . -name "*[A-Z]*" -exec sh -c 'ln -s {} `tr "[:upper:]" "[:lower:]" <<< {}`' \;
cd ..
done

Keybase proof

I hereby claim:

  • I am loskutov on github.
  • I am loskutov (https://keybase.io/loskutov) on keybase.
  • I have a public key whose fingerprint is 8E05 6DFA 6B8F 7648 058E FBAB D8E9 0BE9 8B97 BF9A

To claim this, I am signing this object:

@loskutov
loskutov / container.cpp
Created October 31, 2018 16:02
A simple project where IWYU fails
#include "container.h"
IMPLEMENTATION_DEFINED_CONTAINER_TYPE container;
@loskutov
loskutov / warm.md
Created March 31, 2019 16:08
Writeup for VolgaCTF 2019 Quals task warm

We're given an ARM binary. Decompiling it with Ghidra (and adding some names) gives us the following:

undefined4 FUN_000109ec(void)

{
  int iVar1;
  int __c;
  FILE *__stream;
 char password [100];