Skip to content

Instantly share code, notes, and snippets.

View ByteNacked's full-sized avatar
🚀
feeling cute

Roman Maslennikov ByteNacked

🚀
feeling cute
View GitHub Profile
This file has been truncated, but you can view the full file.
alse forceReport=false redrawNeeded=false myWidth=1560 myHeight=1560 fixedSize=true x = 0 y = 0 mWidth=1560 mHeight=1560 mIsSleepMode=false
2020-07-14 19:41:18.154 4681-4681/? I/ImageWallpaper: onVisibilityChanged true
2020-07-14 19:41:18.154 4681-4681/? I/ImageWallpaper: Wallpaper set default offset
2020-07-14 19:41:18.154 5109-5109/? E/libprocessgroup: set_timerslack_ns write failed: Operation not permitted
2020-07-14 19:41:18.154 5109-5109/? D/PopupDataProvider: onNotificationFullRefresh prev dotInfoSize : 0
2020-07-14 19:41:18.154 5109-5109/? D/ViewRootImpl@e357da9[LauncherActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1
2020-07-14 19:41:18.155 5109-5109/? D/InputMethodManager: prepareNavigationBarInfo() DecorView@6cb2f5a[LauncherActivity]
2020-07-14 19:41:18.155 5109-5109/? D/InputMethodManager: getNavigationBarColor() 0
2020-07-14 19:41:18.155 5109-5109/? D/PageOverlayMover: isMoving : false
2020-07-14 19:41:18.155 25638-25878/? I/WorkerManager: Releasing worker: [searchplate]/[26]/[com.google.android.apps.gsa.
@ByteNacked
ByteNacked / binutilscheatsheet.md
Created May 10, 2019 15:55
binutils cheat sheet

binutils cheat sheet

A cheatsheet containing binutils tips, tricks, best practices and command snippet examples for your day to day workflow. Contributions are welcome!

Table of Contents

#misc

@ByteNacked
ByteNacked / typeErasure.cpp
Created January 29, 2019 23:44
TypeErasure with static storage for bare metal
#include <cstring>
#include <utility>
#include <cassert>
#include <new>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wweak-vtables"
//#pragma GCC diagnostic ignored "-Wpadded"
struct Invoker
@ByteNacked
ByteNacked / CMakeLists.txt
Last active January 29, 2019 23:43
CMakeLists.txt template for gists
cmake_minimum_required(VERSION 3.13)
project(haha)
add_executable(${PROJECT_NAME})
file(GLOB_RECURSE SRCS *.cpp)
file(GLOB_RECURSE HDRS *.h)
target_sources(${PROJECT_NAME}
@ByteNacked
ByteNacked / promises.js
Last active January 20, 2019 01:38
promises_example
'use strict'
const log4js = require('log4js');
const logger = log4js.getLogger('myapp');
logger.level = 'trace';
//logger.trace('Entering cheese testing');
//logger.debug('Got cheese.');
//logger.info('Cheese is Comté.');
//logger.warn('Cheese is quite smelly.');
@ByteNacked
ByteNacked / wireshark_usb_ubuntu16_setup.md
Last active December 16, 2018 03:43
setup wirshark usb sniffing for ubuntu 16.xx -18.xx

HOW TO: Как настроить wireshark для работы с юсб интерфейсом

Внимание! Не нужно запускать wireshark из под root'а!!!
  1. Устанавливаем Wireshark и libpcap:
sudo apt-get install wireshark libpcap0.8
  1. Перенастраиваем wireshark чтобы разрешить non-superusers пользователям снифать пакеты, если этого небыло сделано при установке:
@ByteNacked
ByteNacked / print_array.cpp
Created April 23, 2018 21:13
Compile time arrya size and dimension printing C++11 style, no type_traits
#include <iostream>
using namespace std;
namespace implPrint
{
template<typename T>
struct implPrint
{
static void Next()
#include <iostream>
enum AlgSettings
{
ONE_WAY = 0x01,
ANOTHER_WAY = 0x02,
BOTH_WAYS = 0x03,
};
// TemplateStructure.cpp : Defines the entry point for the console application.
//
#include <cstdint>
#include <iostream>
// SomAlg.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
enum AlgSettings
{
ONE_WAY = 0x01,