Skip to content

Instantly share code, notes, and snippets.

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

Jeremy Ikwuje jeremyikwuje

🏠
Working from home
View GitHub Profile
@jeremyikwuje
jeremyikwuje / markdown-to-email
Created January 22, 2024 07:12 — forked from rtulke/markdown-to-email
markdown-to-email A simple script to send beautifully formatted emails that you write in Markdown. The email will have an HTML payload and a plain-text alternative, so you'll make everyone happy, including yourself.
#!/usr/bin/env python
'''
Send an multipart email with HTML and plain text alternatives. The message
should be constructed as a plain-text file of the following format:
From: Your Name <your@email.com>
To: Recipient One <recipient@to.com>
Subject: Your subject line
---
@jeremyikwuje
jeremyikwuje / how-to-run-bitcoin-core-on-ubuntu.md
Last active December 24, 2023 21:00
how-to-run-bitcoin-core.md

How to run Bitcoin Core on Ubuntu 22.04

How to install Bitcoin core on Ubuntu 22.04

Introduction

Bitcoin is a software that transfers digital units known as bitcoins from person to person. It a pure software. And just like any other kind of software, it was written and currently maintained by a community of software engineers around the world.

Today, a few things are honourable as working on the Bitcore Core software. I know, there are several alternatives to Bitcoin with “shining features” that programmers can be working on, but in the end, it's all about Bitcoin. Bitcoin is the basic money for the digital age.

In this guide, you'll set up Bitcoin Core software on an Ubuntu 22.04 server. The focus of this guide is to run tests and perform development work on the Bitcoin Core codebase. The goal is for you to learn the Bitcoin Core development environment through the Bitcoin Test Framework.

@jeremyikwuje
jeremyikwuje / monierate-historical-data-usn-ngn.md
Last active November 20, 2023 05:44
The data structure represents daily exchange rates for multiple currency exchange platforms, organized by date, with each platform having associated buying and selling rates. Powered by Monierate.com

The data represents daily exchange rates for various currency exchange platforms. Each date has associated exchange rates for different platforms, including "chippercash," "coinprofile," "flutterwave," and potentially more. For each platform, both buying and selling rates are provided.

The structure follows a nested format, where each date is a key in the outermost object, and its corresponding value is an object containing exchange rates for each platform. Each platform has an associated object containing "buy" and "sell" rates.

For example, looking at the data for "2023-11-20":

  • chippercash has a buying rate of 1166 and a selling rate of 1126.
  • coinprofile has a buying rate of 1156.3 and a selling rate of 1136.3.
  • flutterwave has a buying rate of 1148.51 and a selling rate of 1103.92.
@jeremyikwuje
jeremyikwuje / twitter-bitcoin-price-bot.py
Created July 22, 2023 14:29
A twitter bot script to tweet the price of Bitcoin. You can find the full article to this code on.
from fastapi import FastAPI
import tweepy
import random
# credentials to access Twitter API
API_KEY="YOUR_API_KEY_HERE"
API_KEY_SECRET="YOUR_API_KEY_SECRET_HERE"
BEARER_TOKEN="YOUR_BEARER_TOKEN_HERE"
@jeremyikwuje
jeremyikwuje / states-and-cities.json
Created February 26, 2023 13:47 — forked from mykeels/states-and-cities.json
Nigerian States and Cities in JSON
[
{
"name": "Abia",
"cities": [
"Aba South",
"Arochukwu",
"Bende",
"Ikwuano",
"Isiala Ngwa North",
"Isiala Ngwa South",
<?php
$url = "https://api.paystack.co/transaction/initialize";
$fields = [
'customer' => "CUS_xxxxxxxxxx",
'plan' => "PLN_xxxxxxxxxx"
];
$fields_string = http_build_query($fields);
//open connection
$ch = curl_init();
<?php
$url = "https://api.paystack.co/transaction/initialize";
$fields = [
'email' => "customer@email.com",
'amount' => "10000",
'plan' => "PLN_ijhi17fybuszv8f"
];
$fields_string = http_build_query($fields);
//open connection
$ch = curl_init();
<?php
// create a plan programitically
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.paystack.co/plan",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,