Skip to content

Instantly share code, notes, and snippets.

Federico Franzoni frz-dev

Block or report user

Report or block frz-dev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@frz-dev
frz-dev / Dockerfile
Created May 24, 2019
Dockerfile Example
View Dockerfile
# Comment
FROM ubuntu:latest
# Local ENV
ENV init=init.sh
ENV dir1=./dir1 \
dir2=./dir2
# Install from APT
@frz-dev
frz-dev / Bitcoin-Core-Gitian-Build-Guide_Debian+script.txt
Last active May 20, 2019
HowTo: create a Bitcoin Core Gitian Build (using: Debian VM on VirtualBox + gitian-build.sh)
View Bitcoin-Core-Gitian-Build-Guide_Debian+script.txt
#References:
#https://github.com/bitcoin-core/docs/blob/master/gitian-building.md
#https://github.com/bitcoin/bitcoin/blob/master/doc/release-process.md
#https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md (actually not used in this guide, but useful as a reference)
1) Create a Debian VM as a building environment (it will be accessed via SSH)
------------------------------------------------------------------------------------------------------
Follow the instructions at:
https://github.com/bitcoin-core/docs/blob/master/gitian-building/gitian-building-create-vm-debian.md
@frz-dev
frz-dev / bitcoin-cli --help
Last active Nov 2, 2018
Bitcoin Core Help (v0.17.0)
View bitcoin-cli --help
Bitcoin Core RPC client version v0.17.0.0-ge1ed37edaedc85b8c3468bd9a726046344036243
Usage: bitcoin-cli [options] <command> [params] Send command to Bitcoin Core
or: bitcoin-cli [options] -named <command> [name=value]... Send command to Bitcoin Core (with named arguments)
or: bitcoin-cli [options] help List commands
or: bitcoin-cli [options] help <command> Get help for a command
Options:
-?
@frz-dev
frz-dev / bitcoin-core-build-fedora.sh
Last active Oct 28, 2018
Bitcoin-Core-Build-Fedora
View bitcoin-core-build-fedora.sh
sudo dnf install gcc-c++ libtool make autoconf automake openssl-devel libevent-devel boost-devel libdb4-devel libdb4-cxx-devel python3
git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin/
./autogen.sh
./configure #--without-gui
make
@frz-dev
frz-dev / git-author-rewrite.sh
Last active Sep 26, 2018 — forked from octocat/git-author-rewrite.sh
Added OLD_NAME name replacement
View git-author-rewrite.sh
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="your-old-email@example.com"
OLD_NAME="You Old Name"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="your-correct-email@example.com"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
@frz-dev
frz-dev / btc-core-linux
Last active Jan 15, 2018
Bitcoin Core Cross Compile (Ubuntu)
View btc-core-linux
#Install dependencies
sudo apt-get install curl \
build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 \
libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev \
libzmq3-dev \
libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler \
software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
View bitcoin-core-build-gitian-debian-1.sh
#As root
apt-get update
apt-get install git ruby sudo apt-cacher-ng qemu-utils debootstrap lxc python-cheetah parted kpartx bridge-utils make ubuntu-archive-keyring curl
adduser gitianuser sudo
#
# the version of lxc-start in Debian needs to run as root, so make sure
# that the build script can execute it without providing a password
echo "%sudo ALL=NOPASSWD: /usr/bin/lxc-start" > /etc/sudoers.d/gitian-lxc
echo "%sudo ALL=NOPASSWD: /usr/bin/lxc-execute" >> /etc/sudoers.d/gitian-lxc
@frz-dev
frz-dev / bitcoin-core-build-gitian-2.sh
Last active Oct 19, 2017
Bitcoin Core - Gitian Build on Fedora (Part 2)
View bitcoin-core-build-gitian-2.sh
#Instructions taken from: https://github.com/bitcoin-core/docs/blob/master/gitian-building/gitian-building-setup-gitian-fedora.md
#Create a directory for the building process
su gitianuser
cd /home/gitian/
mkdir bitcoin-core
cd bitcoin-core
#Installing Gitian
wget http://archive.ubuntu.com/ubuntu/pool/universe/v/vm-builder/vm-builder_0.12.4+bzr494.orig.tar.gz
@frz-dev
frz-dev / bitcoin-core-build-gitian-1.sh
Last active Oct 18, 2017
Bitcoin Core - Gitian Build on Fedora (Part 1)
View bitcoin-core-build-gitian-1.sh
sudo su
useradd -m gitianuser
passwd gitianuser
usermod gitianuser -a -G wheel
dnf install git python ruby apt-cacher-ng qemu dpkg debootstrap python-cheetah gnupg tar rsync wget curl lxc libvirt
# Enable the apt-cacher-ng service
systemctl enable apt-cacher-ng.service
@frz-dev
frz-dev / Windows 8.1 x86
Created Feb 15, 2015
Volatility Windows Memory Dump Analysis
View Windows 8.1 x86
# imageinfo
$ ./vol.py --profile=Win8SP1x86 -f win8.1-x86_booted-imagecopy.raw imageinfo
Volatility Foundation Volatility Framework 2.4
Determining profile based on KDBG search...
Suggested Profile(s) : Win8SP1x86, Win8SP0x86
AS Layer1 : IA32PagedMemoryPae (Kernel AS)
AS Layer2 : FileAddressSpace (/media/Data/Tesi/memdumps/vbox/win8/win8.1-x86_booted-imagecopy.raw)
PAE type : PAE
DTB : 0x1a5000L
You can’t perform that action at this time.