Skip to content

Instantly share code, notes, and snippets.

View janisozaur's full-sized avatar

Michał Janiszewski janisozaur

  • Poland
  • 21:20 (UTC +01:00)
View GitHub Profile
[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'
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;
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
// 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>
@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
----------------------------------------------------------------------------------------------
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
# OpenLoco 20.07
# Wine 5.15
Unhandled exception: page fault on read access to 0x019b0000 in 32-bit code (0x00473d39).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
EIP:00473d39 ESP:0031f9dc EBP:004fe3b7 EFLAGS:00210286( R- -- I S - -P- )
EAX:01828d00 EBX:01820007 ECX:ffe78df0 EDX:00000022
ESI:019b0000 EDI:00000022
Stack dump:
c76c47d8430e440152e7bbff94c39d12232b396b nedesigns.tar.gz.split_aa.gz
7479ac0314a3b263169e48125575ce732cfbda17 nedesigns.tar.gz.split_ab.gz
93c2f649bc567d2ce70b49b2d3f31f48930ce725 nedesigns.tar.gz.split_ac.gz
d473b042a27bbfa2eed5f57ff23199e4cb545e85 nedesigns.tar.gz.split_ad.gz
6de0204bfeef22d2f2df93380b7f1291dfc1dac2 nedesigns.tar.gz.split_ae.gz
2dd2f3c2b3e51cce2287be9ec5068b55ef057c9b nedesigns.tar.gz.split_af.gz
c5048cce55833b4df030f19439b10624ef6aea47 nedesigns.tar.gz.split_ag.gz
cd958c6836cff2ac0366fa78a4b08c58c1a5037c nedesigns.tar.gz.split_ah.gz
ce3b3cf4229c5baba9e88f4f4f96f69e4e26a27a nedesigns.tar.gz.split_ai.gz
203644f11cd05bddc950f473a1f5d4a7da0df8a5 nedesigns.tar.gz.split_aj.gz
@janisozaur
janisozaur / curl.exe
Last active October 21, 2019 21:31
windows arm64 utils

Results of Skia's nanobench for each of available configs.

The RPi4 board was using default clocks and was provided adequate power and cooling. The tests were conducted on fully-updated Raspbian Buster.

Skia was built with https://github.com/google/skia/commit/1e03b6b10e89fc54f379df4b2d705b1c64e2e0d6

I'd love to test with RPi3B and RPi3B+ that I have, but my charger and PSU seem to be too weak, as both boards report "under voltage" condition.