Skip to content

Instantly share code, notes, and snippets.

View danielealbano's full-sized avatar

Daniele Salvatore Albano danielealbano

View GitHub Profile
> libcef.dll!error_handler(int reportType) Line 112 C++
libcef.dll!_CrtDbgReport(int reportType, const char * __formal, const char * __formal, const char * __formal, const char * __formal, ...) Line 133 + 0x9 byte C++
libcef.dll!printCallSite(const char * file, int line, const char * function) Line 195 + 0x1a byte C++
libcef.dll!WTFReportAssertionFailure(const char * file, int line, const char * function, const char * assertion) Line 210 + 0x11 byte C++
libcef.dll!WebCore::MemoryCache::update(WebCore::Resource * resource, unsigned int oldSize, unsigned int newSize, bool wasAccessed) Line 495 + 0x2c byte C++
libcef.dll!WebCore::Resource::setDecodedSize(unsigned int decodedSize) Line 581 C++
libcef.dll!WebCore::ImageResource::decodedSizeChanged(const WebCore::Image * image, int delta) Line 422 C++
libcef.dll!WebCore::BitmapImage::destroyMetadataAndNotify(unsigned int frameBytesCleared) Line 135 + 0x2d byte C++
libcef.dll!WebCore::BitmapImage::destroyDecodedData(bool destroyAll) Line 114
[0626/121126:VERBOSE1:pref_proxy_config_tracker_impl.cc(148)] 04CC6B40: set chrome proxy config service to 04CF97E0
[0626/121126:VERBOSE1:pref_proxy_config_tracker_impl.cc(277)] 04CC6B40: Done pushing proxy to UpdateProxyConfig
[0626/121126:VERBOSE1:gl_surface.cc(86)] Using egl GL implementation.
[0626/121126:ERROR:proxy_service_factory.cc(105)] Cannot use V8 Proxy resolver in single process mode.
[0626/121126:VERBOSE1:video_capture_message_filter.cc(76)] VideoCaptureMessageFilter::OnFilterAdded()
[0626/121126:VERBOSE1:socket_dispatcher.cc(75)] P2PSocketDispatcher::OnFilterAdded()
[0626/121126:VERBOSE1:renderer_webkitplatformsupport_impl.cc(231)] Disabling sandbox support for testing.
[0626/121126:VERBOSE1:gl_context_egl.cc(56)] EGL_EXT_create_context_robustness supported.
[0626/121126:VERBOSE1:histogram.cc(232)] Histogram: WebCore.ScriptController.clearWindowShell has bad minimum: 0
[0626/121126:VERBOSE1:histogram.cc(232)] Histogram: Renderer4.AccelContentPaintDurationMS has bad minimum: 0
@danielealbano
danielealbano / bashci.sh
Last active February 4, 2018 20:33
BashCI - A simple CI written in bash for Gitlab (can be easily adapted to any other CI)
#!/bin/bash
JOBS_FOLDER="$(dirname $0)/jobs"
[email protected]
function response_headers() {
local CODE=$1
local REASON=$2
local CONTENT_TYPE=$3
@danielealbano
danielealbano / hle.c
Last active February 5, 2018 00:57
HLE Example - compile with gcc72 -Wall -pthread -O3 -mhle -g -o hle main2.c, define LOCK_MUTEX, LOCK_ATOMIC or LOCK_HLE to compare, define VERBOSE to get verbose info or CSV to get CSV output format
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <stdatomic.h>
#include <immintrin.h>
#include <unistd.h>
#include <time.h>
@danielealbano
danielealbano / scapy-tcp-keepalive-simulator.py
Last active November 10, 2022 11:53
Scapy TCP Keepalive simulator - Proof of Concept / Single Connection
'''
This is a proof of concept that simulates the tcp keepalive probes sent from the SO to
keep alive a connection and check that it is still active.
The simulation is partial, only the ACK packets are sent to the other end, the response
is not checked.
In addition, this script support only one connection automatically identified using
the destination ip and port.
I developed this script to workaround a limitation of an odbc connector used by an
@danielealbano
danielealbano / google-photos-frame.py
Last active November 11, 2024 04:52
Google Photo - Photoframe | Is a simple python3 application to transform any device in a photoframe connected to a google photos account! It's very simple, I am using it on a RPi Zero W with the SDL2 rebuilt to run without Xorg. Works on Linux, Windows, Mac OS X and any other device that has an internet connection and can run python 3 and the SDL.
# To run this application you need to create a project in your google cloud console and enable the Photos library API, then you will need to create the credentials setting the type of client to "Other UI" and enabling the access to the user data.
# At this point you will need to download the client_id.json file, rename it in client_secrets.json and place it in the same folder of the application.
# Upon the first start the application will request you to open a link in a browser, authenticate and then write the code back into the console
# requirements
# - oauth2client
# - pysdl2
# - google-api-python-client
import ntptime
import network
import time
import machine
import utime
import gc
import urequests
import lvgl as lv
import lvesp32
import ILI9341 as ili
## INSTRUCTIONS
##
## compile using
## gcc -O3 -funroll-loops -std=c11 -march=native -mavx2 -msse -msse2 -msse3 -msse4 -o test-ht-cmp-methods.c test-ht-cmp-methods.c
##
## run with
## ./test-ht-cmp-methods.c
##
## Output (comoare method, key idx, ht size rounded up per cache line, cpu cycles, clock ticks)
## simple,7,8,220,2
@danielealbano
danielealbano / test-oop-vs-dod-simple-data-processing.c
Last active December 23, 2019 00:19
Test - OOP vs DOD data processing - C
// compile with
// gcc -O3 -m64 -mavx2 -funroll-loops -march=native -o test-oop-vs-dod-simple-data-processing test-oop-vs-dod-simple-data-processing.c
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
// The compiler will not strip out anything related to this variable because it will assume it can be used by other
@danielealbano
danielealbano / bench.cpp
Last active June 1, 2020 19:39
hash32_find_14 - simple loop vs simd (avx2, avx2 branchless) - google benchmark
/**
* For reference check this stackoverflow thread
* https://stackoverflow.com/questions/62120797/find-element-index-with-avx2-code-optimization
**/
#include <stdint.h>
#include <immintrin.h>
#include <benchmark/benchmark.h>
#define CPU_CORE_LOGICAL_COUNT 12