Skip to content

Instantly share code, notes, and snippets.

View ajawu's full-sized avatar

Ajawu David ajawu

  • Nigeria
View GitHub Profile
class SendchampService(BaseService):
def __init__(self):
self.base_url = "https://api.sendchamp.com/api/v1"
self.headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Authorization": f"Bearer {settings.SENDCHAMP_PUBLIC_KEY}",
}
self.sender_id = settings.SENDCHAMP_SENDER_ID
name: DEPLOY TO PRODUCTION
# Enable Buildkit and let compose use it to speed up image building
env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
on:
push:
branches: ["main"]

Keybase proof

I hereby claim:

  • I am ajawu on github.
  • I am ajawu (https://keybase.io/ajawu) on keybase.
  • I have a public key ASD4mki98IlXOj-g0zzZh84UdYYZj1a_V-A5bGKCNYsTfgo

To claim this, I am signing this object:

@ajawu
ajawu / upload.html
Last active February 20, 2021 11:04
blah
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Omnifood</title>
</head>
<body>
<form method="post" enctype="multipart/form-data" action="">
<input type="text"
id="id_name" name="name">
@ajawu
ajawu / aboki_scraper.py
Created February 8, 2021 17:13
Scrape dollar to naira exchange rate from aboki fx
import requests
from bs4 import BeautifulSoup
import datetime
from decimal import Decimal
from store.models import DollarRate
def format_today():
"""Return date formatted as day/month/year - 20/01/2021"""
@ajawu
ajawu / google_image_scraper.py
Last active September 24, 2020 11:50
Google image scraper
from selenium import webdriver
import secrets
import time
import base64
import uuid
import os
import requests
wd = webdriver.Firefox()