Skip to content

Instantly share code, notes, and snippets.

View janisozaur's full-sized avatar

Michał Janiszewski janisozaur

  • Poland
  • 11:35 (UTC +02:00)
View GitHub Profile
Unhandled exception: page fault on write access to 0x00000000 in 32-bit code (0x01163b02).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
EIP:01163b02 ESP:0031fcfc EBP:0031fd44 EFLAGS:00010246( R- -- I Z- -P- )
EAX:00000000 EBX:7ffde000 ECX:00000000 EDX:00000001
ESI:00000000 EDI:00000000
Stack dump:
0x0031fcfc: ffffffff 00000000 00003000 00001000
0x0031fd0c: 00000040 030d1a80 004d0fac 011661f2
0x0031fd1c: ffffffff 004d0fac 0031fd63 00000005
@janisozaur
janisozaur / MBA-M1-results.txt
Last active October 6, 2021 21:54
Benchmark for SDL2's blit1to4 implementation alternative
Unable to determine clock rate from sysctl: hw.cpufrequency: No such file or directory
2021-09-18T13:05:20+02:00
Running ./bench
Run on (8 X 24.1206 MHz CPU s)
CPU Caches:
L1 Data 64 KiB (x8)
L1 Instruction 128 KiB (x8)
L2 Unified 4096 KiB (x8)
Load Average: 1.41, 1.67, 1.79
----------------------------------------------------------------------------------------------
// x86_64-w64-mingw32-g++ BCryptExportKey_RSA_test.cpp -lbcrypt -std=c++
//
// cl BCryptExportKey_RSA_test.cpp bcrypt.lib /std:c++17 /Fe:a.exe
#include <cstdio>
#include <stdexcept>
#include <string>
#include <string_view>
#include <vector>
lol=log --graph --decorate --pretty=oneline --abbrev-commit --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
loll=log --graph --decorate --pretty=oneline --abbrev-commit --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --numstat
lola=log --graph --decorate --pretty=oneline --abbrev-commit --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
sc=svn dcommit --interactive
cp=cherry-pick
st=status
co=checkout
ci=commit
ls=log --pretty=format:%C(yellow)%h%Cred%d\ %Creset%s%Cblue\ [%cn] --decorate
ll=log --pretty=format:%C(yellow)%h%Cred%d\ %Creset%s%Cblue\ [%cn] --decorate --numstat
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
import java.net.HttpURLConnection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit \
--pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) \
%C(bold blue)<%an>%Creset'
loll = log --graph --decorate --pretty=oneline --abbrev-commit \
--pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) \
%C(bold blue)<%an>%Creset' --numstat
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all \
--pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) \
%C(bold blue)<%an>%Creset'