Skip to content

Instantly share code, notes, and snippets.

View JBaczuk's full-sized avatar

Jordan Baczuk JBaczuk

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jbaczuk on github.
  • I am jbaczuk (https://keybase.io/jbaczuk) on keybase.
  • I have a public key whose fingerprint is 0F50 4092 7774 32A0 8DAF CD49 7C43 B0AD 8517 81D1

To claim this, I am signing this object:

@JBaczuk
JBaczuk / .vimrc
Last active August 1, 2019 17:35 — forked from rocarvaj/.vimrc
My vimrc - C++
" VIM Configuration File
" Description: Optimized for C/C++ development, but useful also for other things.
"
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
@JBaczuk
JBaczuk / linux_env_setup.sh
Last active November 6, 2019 17:38
Linux environment setup script
#!/bin/bash
# Run using: sudo wget <url> -O - | bash
# Update
sudo add-apt-repository main
sudo add-apt-repository universe
sudo add-apt-repository restricted
sudo add-apt-repository multiverse
sudo apt update
@JBaczuk
JBaczuk / addresses_hd_wallets_examples.cpp
Last active August 7, 2018 19:10
libbitcoin Wallet Example
#include <bitcoin/bitcoin.hpp>
#include <string.h>
#include <iostream>
using namespace bc;
using namespace wallet;
void create_address_wif_wallet() {
// ******* part 1 *******
// Begin with a private key
@JBaczuk
JBaczuk / projen++
Last active August 24, 2018 22:45
Automatically generate a c++ program that uses autotools
#!/bin/bash
# Read in user options
read -p "What is the name of your project? " projName
read -p "Bug reporting email/url? " bugAddress
read -p "Boost Unit Tests? yN " boostUnitTests
version=0.1.0
bUT=false;
if [ "$boostUnitTests" = "Y" ] || [ "$boostUnitTests" = "y" ]; then
@JBaczuk
JBaczuk / hash256.sh
Created August 14, 2018 19:36
HASH256 (Double SHA256)
#!/bin/bash
## Command Line parsing
#######################
if [[ $# -lt 1 ]]; then
echo "Usage: $ hash256 <input-hex>"
exit 1
fi
inputHex=$1
@JBaczuk
JBaczuk / ec_sign_hex.sh
Created August 14, 2018 19:39
Sign a hex string using a 32 byte hex string with secp256k1
#!/bin/bash
## Command Line parsing
#######################
if [[ $# -lt 2 ]]; then
echo "Usage: $ ec_sign_hex <input-hex> <priv-key-hex>"
exit 1
fi
inputHex=$1
@JBaczuk
JBaczuk / id_claims.md
Last active August 25, 2018 03:36
Identity Claims

Keybase proof

I hereby claim the following identities:

  • I am jbaczuk on github.
  • I am jbaczuk (https://keybase.io/jbaczuk) on keybase.
  • I have a public key whose fingerprint is 0F50 4092 7774 32A0 8DAF CD49 7C43 B0AD 8517 81D1

To claim this, I am signing this message:

@JBaczuk
JBaczuk / cpp_environment.md
Last active August 25, 2018 20:50
C++ Environment

Boost

Get the version of Boost that you require.

See https://sourceforge.net/projects/boost/files/boost/ for list of versions

wget https://astuteinternet.dl.sourceforge.net/project/boost/boost/1.68.0/boost_1_68_0.tar.gz
tar xzvf boost_1_68_0.tar.gz
cd boost_1_68_0/
@JBaczuk
JBaczuk / .muttrc
Last active September 28, 2018 18:59
.muttrc
# Folder hooks
folder-hook 'account.com.gmail.personal' 'source ~/.mutt/account.com.gmail.personal'
folder-hook 'account.com.gmail.work' 'source ~/.mutt/account.com.gmail.work'
# Default account
source ~/.mutt/account.com.gmail.personal
# Macros for switching accounts
macro index <f2> '<sync-mailbox><enter-command>source ~/.mutt/account.com.gmail.personal<enter><change-folder>!<enter>'
macro index <f3> '<sync-mailbox><enter-command>source ~/.mutt/account.com.gmail.work<enter><change-folder>!<enter>'