Skip to content

Instantly share code, notes, and snippets.

View sleepdefic1t's full-sized avatar

₴Ⱡ33₱ sleepdefic1t

View GitHub Profile
@sleepdefic1t
sleepdefic1t / README.md
Created October 4, 2019 09:03
CMake: Print All Environment Variables

CMake: Print All Environment Variables

get_cmake_property(_variableNames VARIABLES)
list (SORT _variableNames)
foreach (_variableName ${_variableNames})
    message(STATUS "\n${_variableName}=${${_variableName}}\n")
endforeach()
###
include("${CMAKE_SOURCE_DIR}/cmake/CodeCoverage.cmake")
APPEND_COVERAGE_COMPILER_FLAGS()
setup_target_for_coverage_lcov(
NAME ${PROJECT_NAME}_coverage
EXECUTABLE PROJECT_TEST_NAME
/*******************************************************************************
* Ark Wallet
* (c) 2017 Ledger
* (c) ARK Ecosystem
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@sleepdefic1t
sleepdefic1t / ledger_unpack.h
Created September 10, 2019 17:52
Ledger SDK Unpack Big/Little-Endian 8-bytes Uint64's
/*******************************************************************************
* Ark Wallet
* (c) 2017 Ledger
* (c) ARK Ecosystem
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@sleepdefic1t
sleepdefic1t / unpack.h
Last active September 18, 2019 01:48
Unpack Little and Big Endian Unsigned Integers uint16_t, uint32_t, uint64_t
/********************************************************************************
*
* Copyright (c) Simon Downey <[email protected]> <https://github.com/sleepdefic1t>
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
@sleepdefic1t
sleepdefic1t / printf64.h
Created August 30, 2019 12:49
PRINTF uint64_t
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
uint64_t i;
printf("%"PRIu64"\n", i);
@sleepdefic1t
sleepdefic1t / prepare-devenv.sh
Created August 26, 2019 21:27
Ledger Blue/NanoS/NanoX Environment Setup
## Install Development Environment
There are two options for setting up our environment
**Option 1**: Using Ledger Vagrant
- Clone ledger-vagrant
> `git clone https://github.com/fix/ledger-vagrant`
- Connect to the vagrant machine
> `vagrant ssh`
- Move to the app
/*******************************************************************************
* Ark Wallet
* (c) 2017 Ledger
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@sleepdefic1t
sleepdefic1t / README.md
Created August 15, 2019 17:23
Ledger Nano S udev patch