Skip to content

Instantly share code, notes, and snippets.

View b3h3rkz's full-sized avatar
🏠
Working from home

Bernard Parah b3h3rkz

🏠
Working from home
View GitHub Profile
@b3h3rkz
b3h3rkz / faucets.md
Last active April 19, 2024 22:16
Bitcoin Testnet Faucets
@b3h3rkz
b3h3rkz / GnuPG-2.1.md
Created October 13, 2020 18:29 — forked from mattrude/GnuPG-2.1.md
GnuPG 2.1.18 Build Instructions for Ubuntu 16.04 LTS

GnuPG 2.1.20 Build Instructions

Below you is my build instructions for GnuPG 2.1.20 released on 03-Apr-2017. These instructions are built for a headless Ubuntu 16.04 LTS server.

Or if you wish, you may use the install script to install GnuPG 2.1.20 by entring the following:

curl -sL "https://gist.github.com/mattrude/3883a3801613b048d45b/raw/install-gnupg2.sh" |sh

Install the needed depends

apt-get -y install libgnutls-dev bzip2 make gettext texinfo gnutls-bin \

A description of known problems in Satoshi Nakamoto's paper, "Bitcoin: A Peer-to-Peer Electronic Cash System", as well as notes on terminology changes and how Bitcoin's implementation differs from that described in the paper.

Abstract

The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU power.

@b3h3rkz
b3h3rkz / gist:51a7a4e465310da9a193e2cb7a933093
Created February 5, 2020 05:58
Django email confirmation resend
from rest_framework import generics
from allauth.account.utils import send_email_confirmation
from rest_framework.views import APIView
from rest_framework import status
from rest_framework.response import Response
from rest_framework.permissions import AllowAny
# request a new confirmation email
class EmailConfirmation(APIView):
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDsTF0HYvycAswKLyRJByRYaXmzxeejIlL57z+rAs5hkk+tz7o/yEMrLSDxg/l6G3ptcWjETUjlOxadtHFW67L36qow+c4kLjk9jd/KJ4DGTQlo9ajEj0aAkza/eTMtATSlozJwUwJREOQHFF9qb2Lq1Bf3lDunTebDg5o44qMp+Y7MhVLglbn8fypWcOrr03ENmjItZcAF6MyF4W2KL0sfNQoAiuOabnJKL3zAENet0ZBEyULFYmMjEoe9vwsEHcZKzGzdh5QdRfAMc/EkdMnk8S4+p2Qw6wYLSYViVYJHsqCmjvzx6ZE9XYAmj+XQ5Z6y4RwFGMu9sSEY+sQAtc59 bernardparah@Bernards-MacBook-Pro.local
@b3h3rkz
b3h3rkz / Activate Office 2019 for macOS VoL.md
Created August 9, 2019 07:09 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@b3h3rkz
b3h3rkz / Zipaligns
Created December 6, 2018 13:15
Add Zipalign to global path on Mac OSX
echo "export PATH=\$PATH:~/Library/Android/sdk/build-tools/x.x.x/" >> ~/.bash_profile&& . ~/.bash_profile
@b3h3rkz
b3h3rkz / gist:e64961a324d008a2423abe2b0ed70c1c
Last active November 27, 2020 20:57
Ubuntu Server Dev Setup
#!/bin/bash
sudo apt-get update
sudo apt-get -y upgrade
echo "1. server dependencies updated and upgraded"
echo " "
echo "2. installing build essentials and python-dev"
@b3h3rkz
b3h3rkz / Angular Cache
Last active June 3, 2018 17:40
Prevent angular app from caching
Developing apps with angularjs comes with it's own headaches, one of which is the caching of files in the browser.
As a developer you can make use of plugins like Classic Cache Killer or disable caching in devtools. You can't go around asking all
your users to clear their cache after every new update
After going through several SO posts and blogs, only one solution worked for me(based on my setup).
Using Nginx, I added this directive
location ~* \.(?:manifest|appcache|html?|xml|json)$ {
expires -1;
}
@b3h3rkz
b3h3rkz / virtualenv_mac.md
Last active March 17, 2018 12:53
Setting up virtualenv for python3 on Mac
Requirements
  • Python 3
  • Pip 3
$ brew install python3

Install via pip: