Skip to content

Instantly share code, notes, and snippets.

View marsmensch's full-sized avatar

Florian Maier marsmensch

  • MaibornWolff GmbH
  • Germany
View GitHub Profile
@marsmensch
marsmensch / gbdc_mac_dev.md
Created January 31, 2021 14:01 — forked from keztricks/gbdc_mac_dev.md
Developing in gbdc on Mac

I've been following GamingMonsters's gbdk Gameboy Dev tutorial (it's rad! https://www.youtube.com/playlist?list=PLeEj4c2zF7PaFv5MPYhNAkBGrkx4iPGJo).

Was doing this for my own reference, but thought I may as well flesh out & share I'm on MacOS, so have put together anywhere I've had to do something different, I'm up to Session 10, so will update if anything further comes along as we progress.

Quick heads up, before you run anything here make sure you know what it's doing, this all worked fine and dandy for me, but I'm not making any promises!

"Hello World" - Part 1

Installing gdbk

Summary of the PegNet 51% attack on 4/21/2020
=============================================
TL;DR: A miner or group of miners with more than 51% of hashpower submitted an
artificially inflated price for JPY, turning ~1,265.79 pJPY (~11.79 USD) into
~6.7mm pUSD, then tried to liquidate as much as they could on exchanges.
Timeline:
Block 241369
The address FA2dZeSVXZMVzGMGMqG5vhgoQ7J6LUjguQjC5RKTf7nRcFk9KvEj
@marsmensch
marsmensch / pass.md
Created August 26, 2019 08:35 — forked from abtrout/pass.md
Using password-store with git repository synching

Password-store keeps your passwords (or any other sensitive information) saved in GnuPG encrypted files organized in ~/.password-store. For more information about GPG, consult the GNU Privacy Handbook.

Getting started

To get started, install pass and generate a keypair.

$ brew install pass
$ gpg --gen-key
$ gpg --list-keys
@marsmensch
marsmensch / install_nodejs_and_yarn_homebrew.md
Created July 24, 2019 13:32 — forked from nijicha/install_nodejs_and_yarn_homebrew.md
Install NVM, Node.js, Yarn via Homebrew

Install NVM, NodeJS, Yarn via Homebrew

Prerequisites

  • Homebrew should be installed (Command line tools for Xcode are included).

Getting start

Install NVM and NodeJS

  1. Install nvm via Homebrew
@marsmensch
marsmensch / Uninstall-pkg.md
Created July 24, 2019 08:37 — forked from githubutilities/Uninstall-pkg.md
Uninstall pkg manually in OS X

Mac Uninstall pkg Manually

  • using pkgutil
# list all your installed packages
pkgutil --pkgs

# show your package info
pkgutil --pkg-info 
@marsmensch
marsmensch / bitcoin-core-hww.md
Created March 22, 2019 13:23 — forked from achow101/bitcoin-core-hww.md
How to Use Bitcoin Core with Hardware Wallets

Using Bitcoin Core with Hardware Wallets

This approach is fairly manual, requires the command line, and requires a patched version of Bitcoin Core.

Note: For this guide, code lines prefixed with $ means that the command is typed in the terminal. Lines without $ are output of the commands.

Disclaimer

I am not liable for any coins that may be lost through this method. The software mentioned may have bugs. Use at your own risk.

@marsmensch
marsmensch / bitcoin-core-hww.md
Created March 22, 2019 13:23 — forked from achow101/bitcoin-core-hww.md
How to Use Bitcoin Core with Hardware Wallets

Using Bitcoin Core with Hardware Wallets

This approach is fairly manual, requires the command line, and requires a patched version of Bitcoin Core.

Note: For this guide, code lines prefixed with $ means that the command is typed in the terminal. Lines without $ are output of the commands.

Disclaimer

I am not liable for any coins that may be lost through this method. The software mentioned may have bugs. Use at your own risk.

//author @TraderX0
//script to plot daily Open high and low
//version 1.1
//last edited 22/11/2018
//title
study(title="TraderX0__O_H_L", shorttitle="TraderX0_O_H_L", overlay=true)
// holds the daily price levels
openPrice = security(tickerid, 'D', open)
@marsmensch
marsmensch / dashd.dockerfile
Created May 20, 2017 12:59 — forked from Zatvobor/dashd.dockerfile
DASHD Dockerfile
FROM ubuntu:14.04
MAINTAINER Zatvobor <http://zatvobor.github.io>
RUN apt-get update \
&& apt-get install -y curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
#RUN echo 'root:screencast' | chpasswd
diff --git a/src/qt/addressbookpage.cpp b/src/qt/addressbookpage.cpp
index 36193fe..5468058 100644
--- a/src/qt/addressbookpage.cpp
+++ b/src/qt/addressbookpage.cpp
@@ -135,7 +135,7 @@ void AddressBookPage::setModel(AddressTableModel *model)
// Set column widths
ui->tableView->horizontalHeader()->resizeSection(
AddressTableModel::Address, 320);
- ui->tableView->horizontalHeader()->setResizeMode(
+ ui->tableView->horizontalHeader()->setSectionResizeMode(